>To investigate Mark's suggestion, add this at the top of your makefile:
  MAKEFILE := $(lastword $(MAKEFILE_LIST))
  test.out a.o hello.o: $(MAKEFILE)
>However, it now appears that you're not editing the makefile in order to
distinguish normal from debug builds. Instead, you have a debug target
with target-specific $(CFLAGS), and you run either 'make' or 'make debug'
without changing the makefile. In that case, you might want to do each
type of build in a separate directory; see this comprehensive paper:


Absolutely I second Greg here. Microsoft does it this way for VS builds - I 
say, follow the dear leader!  :)

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to