From: Robert S. <rst...@re...> - 2002-10-25 16:47:26
|
On Fri, 25 Oct 2002 12:00:08 -0500 Jeff Dike <jd...@ka...> wrote: JD> bu...@uc... said: JD> > Is there any sane way to get appropriate CFLAGS setting? JD> JD> make -f .../linux/Makefile script SCRIPT='@echo $(CFLAGS)' ARCH=um JD> should do the trick. Neat... to actually use this inside your makefile: KERNEL_CFLAGS= $(shell $(MAKE) -C $(KERNEL_SOURCE) -s -f Makefile \ script SCRIPT='@echo $$(CFLAGS)' MAKEFLAGS= ) MODULE_CFLAGS= $(shell $(MAKE) -C $(KERNEL_SOURCE) -s -f Makefile \ script SCRIPT='@echo $$(MODFLAGS)' MAKEFLAGS= ) |