Robert_Toxen@harvard.HARVARD.EDU (01/07/87)
> Subject: Summary of answers: feeding CFLAGS of "make CFLAGS=-g" to sub-makes > > Thanks to everyone who replied to my question about how to ensure that > "arguments" such as "CFLAGS=-g" in a command line such as > > make CFLAGS=-g whatever ... > > get fed to recursively-invoked makes. > -- > UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA In each makefile when you invoke subservient makes instead of: foo: $(FRC) make foo do: foo: $(FRC) make CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' foo This can be used to reliably import other make variables. FYI: FRC means Force ReCompilation. Bob Toxen Stratus Computer, Marlboro, Mass. {ucbvax!ihnp4}!anvil!bob (Please use THIS address to reply.) "unix is a subset of inextinguishable" (Concept stolen from Roy Smith.)