Rework the make rule for patched *.c files.
authorYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Fri, 19 Jan 2007 19:18:09 +0000 (19:18 +0000)
committerYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Fri, 19 Jan 2007 19:18:09 +0000 (19:18 +0000)
commitc34dd8ac5f430f3cdba718cbe8f2db309dd7ae63
treeab6a9004f7cd7e09ccc30747ba14038152767d32
parentb5f2d77cd7db81c001567e9faa485101f915310f
Rework the make rule for patched *.c files.
Previously ${SRCS} contained the file name with and without
the directory part(hardware/hwsleep.c vs hwsleep.c), and
the object files from the latter are trimmed off of ${OBJS}.
This resulted in compiling both patched and unpatched version
and the object files get created under ${.OBJDIR}.
Also make a patched *.c file depend on the patch, so as the
*.c file is re-generated when the patch is updated.
sys/dev/acpica5/Makefile