]> granicus.if.org Git - pdns/commitdiff
we had per-program CPPFLAGS for pdnssec and pdns_server for no good reason (they...
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 10 Nov 2012 19:30:56 +0000 (19:30 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 10 Nov 2012 19:30:56 +0000 (19:30 +0000)
this should speed up the builds measurably, which is good since all our builds and tests together now take 17 minutes

git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2881 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/Makefile.am

index 349742cb1a1053d5c544df42cf1a76e2f0b5123f..044d92cde09562b5024705e1f4d26ccc97dae857 100644 (file)
@@ -5,6 +5,14 @@ AM_CXXFLAGS=-DSYSCONFDIR=\"@sysconfdir@\" -DLIBDIR=\"@libdir@\" -DLOCALSTATEDIR=
 endif
 AM_CPPFLAGS=-Ibackends/bind $(BOOST_CPPFLAGS) @THREADFLAGS@
 
+if BOTAN110
+AM_CPPFLAGS += $(BOTAN110_CFLAGS)
+endif
+
+if BOTAN18
+AM_CPPFLAGS += $(BOTAN18_CFLAGS)
+endif
+
 EXTRA_DIST = dnslabeltext.rl dnslabeltext.cc mtasker.cc inflighter.cc docs/pdns_control.8  \
        docs/pdns_server.8 docs/zone2sql.8 docs/zone2ldap.8 docs/pdnssec.8 \
        dnssec.schema.mysql.sql dnssec.schema.pgsql.sql dnssec.schema.sqlite3.sql \
@@ -61,19 +69,15 @@ ednssubnet.cc ednssubnet.hh cachecleaner.hh
 #
 pdns_server_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@  $(BOOST_SERIALIZATION_LDFLAGS)  -rdynamic
 pdns_server_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_SERIALIZATION_LIBS) $(LUA_LIBS) $(SQLITE3_LIBS)
-pdns_server_CPPFLAGS = $(AM_CPPFLAGS)
-
 
 if BOTAN110
 pdns_server_SOURCES += botan110signers.cc botansigners.cc
 pdns_server_LDADD += $(BOTAN110_LIBS) -lgmp -lrt
-pdns_server_CPPFLAGS += $(BOTAN110_CFLAGS)
 endif
 
 if BOTAN18
 pdns_server_SOURCES += botan18signers.cc botansigners.cc
 pdns_server_LDADD += $(BOTAN18_LIBS) -lgmp
-pdns_server_CPPFLAGS += $(BOTAN18_CFLAGS)
 endif
 
 if CRYPTOPP
@@ -102,18 +106,15 @@ pdnssec_SOURCES=pdnssec.cc dbdnsseckeeper.cc sstuff.hh dnsparser.cc dnsparser.hh
 
 pdnssec_LDFLAGS=@moduleobjects@ @modulelibs@ @DYNLINKFLAGS@ @LIBDL@ @THREADFLAGS@  $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS)
 pdnssec_LDADD= ext/polarssl-1.1.2/library/libpolarssl.a $(BOOST_PROGRAM_OPTIONS_LIBS) $(BOOST_SERIALIZATION_LIBS) $(SQLITE3_LIBS)
-pdnssec_CPPFLAGS = $(AM_CPPFLAGS)
 
 if BOTAN110
 pdnssec_SOURCES += botan110signers.cc botansigners.cc
 pdnssec_LDADD += $(BOTAN110_LIBS) -lgmp -lrt
-pdnssec_CPPFLAGS += $(BOTAN110_CFLAGS)
 endif
 
 if BOTAN18
 pdnssec_SOURCES += botan18signers.cc botansigners.cc
 pdnssec_LDADD += $(BOTAN18_LIBS) -lgmp
-pdnssec_CPPFLAGS += $(BOTAN18_CFLAGS)
 endif
 
 if CRYPTOPP