help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Recompile files for different parameters


From: Mark Galeck (CW)
Subject: RE: Recompile files for different parameters
Date: Tue, 8 Mar 2011 20:06:35 -0800

>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!  :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]