[comp.unix.questions] Can stuff such as "CFLAGS=-g" be passed to sub-makes?

ado@elsie.UUCP (Arthur David Olson) (12/22/86)

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@seismo.ARPA
	DEC, VAX, Elsie & Ado are Digital, Borden & Ampex trademarks.