From 7cd72ad38093e584cb143ac6e4b1453dee5f7ac7 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 28 May 2003 21:05:12 +0000 Subject: 2003-05-11 Andreas Schwab * Makerules: Always use -MP together with -MD. (sed-remove-dotot): Substitute $(..) also at start of line. ($(stdio_lim:h=st)): Use -MD instead of SUNPRO_DEPENDENCIES. Generated defines with a single compiler call. Use $(sed-remove-dotdot). * mach/Makefile ($(objpfx)mach-syscalls.mk): Use -MD instead of DEPENDENCIES_OUTPUT, and use $(sed-remove-objpfx). * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h): Use -MD instead of SUNPRO_DEPENDENCIES, and use $(sed-remove-objpfx). * sysdeps/unix/sysv/linux/mips/Makefile ($(objpfx)syscall-%.h): Likewise. --- mach/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'mach') diff --git a/mach/Makefile b/mach/Makefile index 563c792078..314f2efcd9 100644 --- a/mach/Makefile +++ b/mach/Makefile @@ -79,12 +79,17 @@ $(objpfx)mach-syscalls.mk: syscalls.awk Makefile $(make-target-directory) # We must use $(CFLAGS) to get -O flags that affect #if's in header files. echo '#include ' | \ - DEPENDENCIES_OUTPUT='$@-dep $@' \ - $(CC) $(CFLAGS) $(CPPFLAGS) -E -x c-header - \ + $(CC) $(CFLAGS) $(CPPFLAGS) -E -MD -MP -MF $@-dep -MT $@ \ + -x c-header - \ -D_MACH_`echo $(mach-machine) | tr a-z A-Z`_SYSCALL_SW_H_=1 | \ sed -n -e 's/^kernel_trap(\(.*\),\([-0-9]*\),\([0-9]*\))$$/\1 \2 \3/p'\ | $(AWK) -f $< > $@-new - cat $@-dep >> $@-new; rm -f $@-dep +ifneq (,$(objpfx)) + sed $(sed-remove-objpfx) $@-dep >> $@-new +else + cat $@-dep >> $@-new +endif + rm -f $@-dep mv -f $@-new $@ generated += mach-syscalls.mk -- cgit v1.2.1