added support for "make pch" to build a precompiled header. Note that
authorAndrew Tridgell <tridge@samba.org>
Wed, 12 Nov 2003 01:01:47 +0000 (01:01 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 12 Nov 2003 01:01:47 +0000 (01:01 +0000)
this is not called by default and I don't think it should be - I think
the programmer should specifically ask for pch generation when they
want it.
(This used to be commit ef01aedfb4e97af9283b0d54dd362aad809016af)

source3/Makefile.in

index 83f266955b72b2ad046b83b42b36bfce0c2fc709..4aa34020d6cd4c603112c51a4931d76c7c4cc92a 100644 (file)
@@ -714,6 +714,12 @@ MAKEDIR = || exec false; \
          -o $@ 
 @BROKEN_CC@    -mv `echo $@ | sed 's%^.*/%%g'` $@
 
+# this adds support for precompiled headers. To use it, install a snapshot
+# of gcc-3.4 and run 'make pch' before you do the main build. 
+pch:
+       rm -f $(srcdir)/include/includes.h.gch
+       $(CC) -I. -I$(srcdir) $(FLAGS) -c $(srcdir)/include/includes.h -o $(srcdir)/include/includes.h.gch
+
 # These dependencies are only approximately correct: we want to make
 # sure Samba's paths are updated if ./configure is re-run.  Really it
 # would be nice if "make prefix=/opt/samba all" also rebuilt things,