From 7b01c9e0c464c37ee878ada65fef2c67f1f55e53 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 19 Mar 2006 03:14:56 +0000 Subject: r14556: Fix some dependencies (This used to be commit b5802770322678d3f9c2044039cc254024612f9b) --- source4/main.mk | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source4/main.mk') diff --git a/source4/main.mk b/source4/main.mk index 592d6c50e1..e9ff907ada 100644 --- a/source4/main.mk +++ b/source4/main.mk @@ -312,19 +312,23 @@ unused_macros: # File types ############################################################################### -.SUFFIXES: .x .c .et .y .l .d .o .h .h.gch .a .so .1 .1.xml .3 .3.xml .5 .5.xml .7 .7.xml .8 .8.xml .ho .hin .idl +.SUFFIXES: .x .c .et .y .l .d .o .h .h.gch .a .so .1 .1.xml .3 .3.xml .5 .5.xml .7 .7.xml .8 .8.xml .ho .hin .idl .hd .hin.h: @cp $< $@ .c.ho: @echo "Compiling $< with host compiler" - @$(HOSTCC) `script/cflags.pl $@` $(CFLAGS) -c $*.c -o $@ + @$(HOSTCC) `script/cflags.pl $@` $(CFLAGS) -c $< -o $@ .c.d: @echo "Generating dependencies for $<" @$(CC) -M -MG -MT $(<:.c=.o) `script/cflags.pl $@` $(CFLAGS) $< -o $@ +.c.hd: + @echo "Generating dependencies for $<" + @$(CC) -M -MG -MT $(<:.c=.ho) `script/cflags.pl $@` $(CFLAGS) $< -o $@ + include/includes.d: include/includes.h @echo "Generating dependencies for $<" @$(CC) -M -MG -MT include/includes.h.gch $(CFLAGS) $< -o $@ @@ -366,7 +370,7 @@ DOCBOOK_MANPAGE_URL = http://docbook.sourceforge.net/release/xsl/current/manpage .8.xml.8: $(XSLTPROC) -o $@ $(DOCBOOK_MANPAGE_URL) $< -DEP_FILES = $(patsubst %.ho,%.d,$(patsubst %.o,%.d,$(ALL_OBJS))) \ +DEP_FILES = $(patsubst %.ho,%.hd,$(patsubst %.o,%.d,$(ALL_OBJS))) \ include/includes.d clean-deps: -- cgit