Can stuff such as "CFLAGS=-g" be passed to sub-makes?

Arthur David Olson ado at elsie.UUCP
Tue Dec 23 06:00:55 AEST 1986


If I'm doing recursive makes, with a "makefile" rule such as
	whatever whateverelse:
		-cd subdir1 ; $(MAKE) -$(MAKEFLAGS) $@
		-cd subdir2 ; $(MAKE) -$(MAKEFLAGS) $@
is there some way I can arrange things so that if I use the command
	make whatever CFLAGS=-g
the "CFLAGS=-g" will be passed to the sub-makes?

Please mail me any replies, rather than posting an article.  Thanks.
--
UNIX is a registered trademark of AT&T.
--
	UUCP: ..decvax!seismo!elsie!ado   ARPA: elsie!ado at seismo.ARPA
	DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.



More information about the Comp.unix.questions mailing list