Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!dimacs.rutgers.edu!seismo!ukma!wuarchive!udel!rochester!kodak!ispd-newsserver!weimer From: weimer@ssd.kodak.com (Gary Weimer) Newsgroups: comp.unix.programmer Subject: Re: make with multiple executables from same source files Message-ID: <1990Nov16.170828.7026@ssd.kodak.com> Date: 16 Nov 90 17:08:28 GMT References: <4196@awdprime.UUCP> Sender: news@ssd.kodak.com Distribution: usa Organization: Eastman Kodak Lines: 12 In article <4196@awdprime.UUCP> tif@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.