diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-11-12 01:01:47 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-11-12 01:01:47 +0000 |
commit | 009c143efd4f4a4b08838b1bc3edee4bc1b2f232 (patch) | |
tree | 308cd2172ca9cf680ca149ba9747a5129424937b /source3 | |
parent | b64c6355b04f1c199a5883821653b937f9198c9d (diff) | |
download | samba-009c143efd4f4a4b08838b1bc3edee4bc1b2f232.tar.gz samba-009c143efd4f4a4b08838b1bc3edee4bc1b2f232.tar.bz2 samba-009c143efd4f4a4b08838b1bc3edee4bc1b2f232.zip |
added support for "make pch" to build a precompiled header. Note that
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/Makefile.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in index 83f266955b..4aa34020d6 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -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, |