1 --- ../../../kernel/linux-mips-cvs/Makefile 2005-01-20 03:19:21.000000000 +0100
2 +++ linux-2.4.29.new/Makefile 2005-03-15 01:15:27.441095231 +0100
4 FINDHPATH = $(HPATH)/asm $(HPATH)/linux $(HPATH)/scsi $(HPATH)/net $(HPATH)/math-emu
7 -HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
8 +HOSTCFLAGS = -Wall -Wstrict-prototypes -Os -fomit-frame-pointer
14 # Include the make variables (CC, etc...)
17 CPPFLAGS := -D__KERNEL__ -I$(HPATH)
19 -CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
20 +CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -Os \
21 -fno-strict-aliasing -fno-common
24 +# Turn on -pg to instrument the kernel with calls to mcount().
25 +# Unfortunately, gcc won't allow -pg without frame pointers.
28 + CFLAGS_KERNEL += -pg
29 + CONFIG_FRAME_POINTER = 1
32 ifndef CONFIG_FRAME_POINTER
33 CFLAGS += -fomit-frame-pointer
36 ifdef CONFIG_MODVERSIONS
37 $(MAKE) update-modverfile
39 - scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
40 + (find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print | xargs -r scripts/mkdep -- ) > .hdepend
41 scripts/mkdep -- init/*.c > .depend
43 ifdef CONFIG_MODVERSIONS