diff options
Diffstat (limited to 'source4/main.mk')
-rw-r--r-- | source4/main.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/main.mk b/source4/main.mk index 5ffdc58e47..87537a5e5e 100644 --- a/source4/main.mk +++ b/source4/main.mk @@ -333,10 +333,24 @@ 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 + +.c.ho: + @echo Compiling $*.c with host compiler + @$(HOSTCC) `script/cflags.pl $@` $(CFLAGS) -c $*.c -o $@ + .c.d: @echo "Generating dependencies for $<" @$(CC) -MM -MG -MT $(<:.c=.o) -MF $@ $(CFLAGS) $< +.c.o: + @echo Compiling $< + @$(CC) `script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ + +.h.h.gch: + @echo Precompiling $< + @$(CC) `script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ + .y.c: @echo "Building $< with $(YACC)" @-$(srcdir)/script/yacc_compile.sh "$(YACC)" "$<" "$@" |