make with multiple executables from same source files
Gary Weimer
weimer at ssd.kodak.com
Sat Nov 17 04:08:28 AEST 1990
In article <4196 at awdprime.UUCP> tif at doorstop (Paul Chamberlain) writes:
>I have two executables that depend on the same source files but are
>compiled with different CFLAGS. Anybody have a good way to make a
>makefile understand this?
With SunOS's make, you can simply add this line to your Makefile:
.KEEP_STATE:
This causes make to remember the exact command used to compile each object.
Since the flags are changed, make sees this as a different compile which
has not yet been done.
More information about the Comp.unix.programmer
mailing list