diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-12-18 22:28:41 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2005-12-18 22:28:41 +0000 |
commit | 19d3db10aaab670d2eea3b67dcf0d8ca547a5a16 (patch) | |
tree | c368015b2bc4bab6b79cf912f00b59c6f1c1794d /source | |
parent | 6e3cbcb25b59b17c3a18cdf949d0183eabeb7a1e (diff) | |
download | samba-19d3db10aaab670d2eea3b67dcf0d8ca547a5a16.tar.gz samba-19d3db10aaab670d2eea3b67dcf0d8ca547a5a16.tar.xz samba-19d3db10aaab670d2eea3b67dcf0d8ca547a5a16.zip |
r12325: - remove the hostcc object files with make clean
- move the .SUFFIXES statement before the suffix rules
this fixes the build with bsd make
metze
Diffstat (limited to 'source')
-rw-r--r-- | source/build/smb_build/makefile.pm | 1 | ||||
-rw-r--r-- | source/main.mk | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/build/smb_build/makefile.pm b/source/build/smb_build/makefile.pm index 6982e289771..6aa3e02e5c4 100644 --- a/source/build/smb_build/makefile.pm +++ b/source/build/smb_build/makefile.pm @@ -38,6 +38,7 @@ sub new($$$) $self->_prepare_path_vars(); $self->_prepare_compiler_linker(); + $self->output(".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 .ho\n"); $self->_prepare_hostcc_rule(); $self->_prepare_std_CC_rule("c","o",'$(PICFLAG)',"Compiling","Rule for std objectfiles"); $self->_prepare_std_CC_rule("h","h.gch",'$(PICFLAG)',"Precompiling","Rule for precompiled headerfiles"); diff --git a/source/main.mk b/source/main.mk index 9c06134f290..61ea36eaa38 100644 --- a/source/main.mk +++ b/source/main.mk @@ -218,6 +218,8 @@ clean: heimdal_clean @-rm -f include/proto.h @echo Removing objects @-find . -name '*.o' -exec rm -f '{}' \; + @echo Removing hostcc objects + @-find . -name '*.ho' -exec rm -f '{}' \; @echo Removing binaries @-rm -f $(BIN_PROGS) $(SBIN_PROGS) @echo Removing libraries @@ -268,8 +270,6 @@ bin/.dummy: # 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 .ho - .c.d: @echo "Generating dependencies for $<" @$(CC) -MM -MG -MT $(<:.c=.o) -MF $@ $(CFLAGS) $< |