r12325: - remove the hostcc object files with make clean
authorStefan Metzmacher <metze@samba.org>
Sun, 18 Dec 2005 22:28:41 +0000 (22:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:47:30 +0000 (13:47 -0500)
- move the .SUFFIXES statement before the suffix rules
  this fixes the build with bsd make

metze

source/build/smb_build/makefile.pm
source/main.mk

index 6982e28977193b1be3bea11c8c034fc44fe73179..6aa3e02e5c4281168d33ac02995007a43776ac76 100644 (file)
@@ -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");
index 9c06134f290f71db63d8de3a7011f54f33881ccd..61ea36eaa38afae15c79edd85282cd7f2f4456fe 100644 (file)
@@ -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) $<