Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!adm!anvil!es!Robert_Toxen@harvard.HARVARD.EDU From: Robert_Toxen@harvard.HARVARD.EDU Newsgroups: comp.unix.questions Subject: feeding CFLAGS to sub-makes Message-ID: <2198@brl-adm.ARPA> Date: Wed, 7-Jan-87 14:07:30 EST Article-I.D.: brl-adm.2198 Posted: Wed Jan 7 14:07:30 1987 Date-Received: Wed, 7-Jan-87 23:08:41 EST Sender: news@brl-adm.ARPA Lines: 28 > 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.)