5d52a1fe1b8ea396fb5ae7f6f1567c8383445113Tinderbox User# Copyright (C) 1998-2017 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# file, You can obtain one at http://mozilla.org/MPL/2.0/.
f41f183f628a148860a6d1f0070208cddd45b0c6Bob Halleysrcdir = @srcdir@
f41f183f628a148860a6d1f0070208cddd45b0c6Bob HalleyVPATH = @srcdir@
f41f183f628a148860a6d1f0070208cddd45b0c6Bob Halleytop_srcdir = @top_srcdir@
9a2127f8335bad323451d7825119cd9f72e32464Mark Andrews# Attempt to disable parallel processing.
9a2127f8335bad323451d7825119cd9f72e32464Mark Andrews.NOTPARALLEL:
9a2127f8335bad323451d7825119cd9f72e32464Mark Andrews.NO_PARALLEL:
e13d04fda918c0c14c2247475bb99e0760d9a6a4Evan HuntVERSION=@BIND9_VERSION@
7829fad4093f2c1985b1efb7cea00287ff015d2bckb@BIND9_MAJOR@
c9611b45736af157e2993c6ef852e55e8e24ca83Evan Hunt@LIBDNS_MAPAPI@
c2bc56dc65b4b103a5600565680eb5f33fa4c90bMark Andrews@BIND9_MAKE_INCLUDES@
c6b3c1984caa362359862e063e7b70dfb306db7eMark AndrewsUSE_ISC_SPNEGO = @USE_ISC_SPNEGO@
e71905610c72f474a2943934a48f43121c79c939Evan HuntCINCLUDES = -I. -I${top_srcdir}/lib/dns -Iinclude ${DNS_INCLUDES} \
e71905610c72f474a2943934a48f43121c79c939Evan Hunt ${ISC_INCLUDES} @DST_OPENSSL_INC@ @DST_GSSAPI_INC@
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntCDEFINES = -DUSE_MD5 @CRYPTO@ @USE_GSSAPI@ ${USE_ISC_SPNEGO}
b6d52ee5bea1b9d9074698e693b49ce96edff47bMark AndrewsISCLIBS = ../../lib/isc/libisc.@A@
b6d52ee5bea1b9d9074698e693b49ce96edff47bMark AndrewsISCDEPLIBS = ../../lib/isc/libisc.@A@
a685d9c3b608eb768d237f20e8e8b1c5d3902146David Lawrence# Alphabetically
7e9ccec63889f2aabee59b94307be492a77fa93bMark AndrewsOPENSSLGOSTLINKOBJS = opensslgost_link.@O@
2d82ed9456e72dc4373bea19d63411afe1c48962Mark AndrewsOPENSSLECDSALINKOBJS = opensslecdsa_link.@O@
78608b0a454246d0e1e0169f1d671b8427e48199Francis DupontOPENSSLEDDSALINKOBJS = openssleddsa_link.@O@
76117ff568dc788ed24937cfea916a18db285960Mark AndrewsOPENSSLLINKOBJS = openssl_link.@O@ openssldh_link.@O@ openssldsa_link.@O@ \
2d82ed9456e72dc4373bea19d63411afe1c48962Mark Andrews @OPENSSLECDSALINKOBJS@ @OPENSSLEDDSALINKOBJS@ \
78608b0a454246d0e1e0169f1d671b8427e48199Francis Dupont @OPENSSLGOSTLINKOBJS@ opensslrsa_link.@O@
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntPKCS11LINKOBJS = pkcs11dh_link.@O@ pkcs11dsa_link.@O@ pkcs11rsa_link.@O@ \
78608b0a454246d0e1e0169f1d671b8427e48199Francis Dupont pkcs11ecdsa_link.@O@ pkcs11eddsa_link.@O@ \
78608b0a454246d0e1e0169f1d671b8427e48199Francis Dupont pkcs11gost_link.@O@ pkcs11.@O@
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntDSTOBJS = @DST_EXTRA_OBJS@ @OPENSSLLINKOBJS@ @PKCS11LINKOBJS@ \
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews dst_api.@O@ dst_lib.@O@ dst_parse.@O@ dst_result.@O@ \
79f0eedd657d75889009226aa7ce23eeac28df5cMark Andrews gssapi_link.@O@ gssapictx.@O@ hmac_link.@O@ key.@O@
8a896bc645a6236e9a47e33fb57510a451009a90Mark AndrewsGEOIPLINKOBJS = geoip.@O@
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntDNSTAPOBJS = dnstap.@O@ dnstap.pb-c.@O@
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence# Alphabetically
a8783019814daa36dd57afe3f527462822834c3bEvan HuntDNSOBJS = acache.@O@ acl.@O@ adb.@O@ badcache.@O@ byaddr.@O@ \
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki cache.@O@ callbacks.@O@ catz.@O@ clientinfo.@O@ compress.@O@ \
911ed0d3bee586b3bec42cb6c376d5cc6c0e1e24Brian Wellington db.@O@ dbiterator.@O@ dbtable.@O@ diff.@O@ dispatch.@O@ \
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt dlz.@O@ dns64.@O@ dnssec.@O@ ds.@O@ dyndb.@O@ forward.@O@ \
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki ipkeylist.@O@ iptable.@O@ journal.@O@ keydata.@O@ \
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki keytable.@O@ lib.@O@ log.@O@ lookup.@O@ \
911ed0d3bee586b3bec42cb6c376d5cc6c0e1e24Brian Wellington master.@O@ masterdump.@O@ message.@O@ \
0cfb24736841b3e98bb25853229a0efabab88bddEvan Hunt name.@O@ ncache.@O@ nsec.@O@ nsec3.@O@ nta.@O@ \
0cfb24736841b3e98bb25853229a0efabab88bddEvan Hunt order.@O@ peer.@O@ portlist.@O@ private.@O@ \
28b863e609ff2d97b78663b46894494cfa2ea411Mark Andrews rbt.@O@ rbtdb.@O@ rbtdb64.@O@ rcode.@O@ rdata.@O@ \
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews rdatalist.@O@ rdataset.@O@ rdatasetiter.@O@ rdataslab.@O@ \
55e5c51e661e23e24573db84114a3837817745c9Evan Hunt request.@O@ resolver.@O@ result.@O@ rootns.@O@ \
55e5c51e661e23e24573db84114a3837817745c9Evan Hunt rpz.@O@ rrl.@O@ rriterator.@O@ sdb.@O@ \
3916872f379457fe344afb02398a009701c5016aEvan Hunt sdlz.@O@ soa.@O@ ssu.@O@ ssu_external.@O@ \
ce1f5b8d0ae5936fd187c1f414ff12a7e3b0aa37Andreas Gustafsson stats.@O@ tcpmsg.@O@ time.@O@ timer.@O@ tkey.@O@ \
a69070d8fab55dbc63ba9f96c9d3e34f0ea9119aMark Andrews tsec.@O@ tsig.@O@ ttl.@O@ update.@O@ validator.@O@ \
5c6762838c9e423753723ec2a963164e3d66ac32Mark Andrews version.@O@ view.@O@ xfrin.@O@ zone.@O@ zonekey.@O@ zt.@O@
b99bfa184bc9375421b5df915eea7dfac6a68a99Evan HuntPORTDNSOBJS = client.@O@ ecdb.@O@
7d262a3647a517a86d6d83058aedd18b7a6b06dfMark AndrewsOBJS= @DNSTAPOBJS@ ${DNSOBJS} ${OTHEROBJS} ${DSTOBJS} \
7d262a3647a517a86d6d83058aedd18b7a6b06dfMark Andrews ${PORTDNSOBJS} @GEOIPLINKOBJS@
fc80027fb54b501cdd88461bf879d078259e0226David Lawrence# Alphabetically
7e9ccec63889f2aabee59b94307be492a77fa93bMark AndrewsOPENSSLGOSTLINKSRCS = opensslgost_link.c
2d82ed9456e72dc4373bea19d63411afe1c48962Mark AndrewsOPENSSLECDSALINKSRCS = opensslecdsa_link.c
2d82ed9456e72dc4373bea19d63411afe1c48962Mark AndrewsOPENSSLEDDSALINKSRCS = openssleddsa_link.c
37dee1ff94960a61243f611c0f87f8c316815c53Mark AndrewsOPENSSLLINKSRCS = openssl_link.c openssldh_link.c openssldsa_link.c \
2d82ed9456e72dc4373bea19d63411afe1c48962Mark Andrews @OPENSSLECDSALINKSRCS@ @OPENSSLEDDSALINKSRCS@ \
78608b0a454246d0e1e0169f1d671b8427e48199Francis Dupont @OPENSSLGOSTLINKSRCS@ opensslrsa_link.c
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntPKCS11LINKSRCS = pkcs11dh_link.c pkcs11dsa_link.c pkcs11rsa_link.c \
ba751492fcc4f161a18b983d4f018a1a52938cb9Evan HuntDSTSRCS = @DST_EXTRA_SRCS@ @OPENSSLLINKSRCS@ @PKCS11LINKSRCS@ \
84dc4b3e7eea3e9c8fafa5f4fd632a51ee8b356fMukund SivaramanGEOIPLINKSRCS = geoip.c
a8783019814daa36dd57afe3f527462822834c3bEvan HuntDNSSRCS = acache.c acl.c adb.c badcache. byaddr.c \
911ed0d3bee586b3bec42cb6c376d5cc6c0e1e24Brian Wellington db.c dbiterator.c dbtable.c diff.c dispatch.c \
ffafab1328b8d6a6d2e9476d35e7de07e70b6c9dMark Andrews dlz.c dns64.c dnssec.c ds.c dyndb.c forward.c \
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki ipkeylist.c iptable.c journal.c keydata.c keytable.c lib.c \
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki log.c lookup.c master.c masterdump.c message.c \
87708bde16713bc02ff2598f4a82f98c699a2f2dMark Andrews rbt.c rbtdb.c rbtdb64.c rcode.c rdata.c rdatalist.c \
3cd88f71b01833d5c2474638854dfa5c4244a22aBrian Wellington rdataset.c rdatasetiter.c rdataslab.c request.c \
55e5c51e661e23e24573db84114a3837817745c9Evan Hunt resolver.c result.c rootns.c rpz.c rrl.c rriterator.c \
18d110413cf6416eb339c169b99159d09f690da1Brian Wellington version.c view.c xfrin.c zone.c zonekey.c zt.c ${OTHERSRCS}
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntSRCS = ${DSTSRCS} ${DNSSRCS} ${PORTDNSSRCS} @DNSTAPSRCS@ @GEOIPLINKSRCS@
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntSUBDIRS = include
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan HuntTARGETS = timestamp
ef421f66f47224a42073deaf087378c5d0c9952eEvan HuntTESTDIRS = @UNITTESTS@
d2b5fe92a4755ce67f2dd6050955782b4fd6b3f3Mark AndrewsDEPENDEXTRA = ./gen -F include/dns/rdatastruct.h \
d2b5fe92a4755ce67f2dd6050955782b4fd6b3f3Mark Andrews -s ${srcdir} -d >> Makefile ;
a5d43b72413db3edd6b36a58f9bdf2cf6ff692f2Bob Halley@BIND9_MAKE_RULES@
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntPROTOC_C = @PROTOC_C@
74cb99072c4b0ebd2ccafcfa284288fa760f7a1aMark Andrews ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley -DVERSION=\"${VERSION}\" \
7829fad4093f2c1985b1efb7cea00287ff015d2bckb -DMAJOR=\"${MAJOR}\" \
c9611b45736af157e2993c6ef852e55e8e24ca83Evan Hunt -DMAPAPI=\"${MAPAPI}\" \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley -DLIBINTERFACE=${LIBINTERFACE} \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley -DLIBREVISION=${LIBREVISION} \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley -DLIBAGE=${LIBAGE} \
193738b819e3c699f9edd18864a6810fcfcec855Andreas Gustafssonlibdns.@SA@: ${OBJS}
fd35453765c6494d077edca44f4d998af5fd4cfaDavid Lawrence ${AR} ${ARFLAGS} $@ ${OBJS}
74cb99072c4b0ebd2ccafcfa284288fa760f7a1aMark Andrews ${LIBTOOL_MODE_LINK} \
9f7d51ee3290e2a064d71016a6bd555b47134a7cMark Andrews ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libdns.la -rpath ${libdir} \
64e41159a919b0711321fe688ca5da4f4d1b7d80Bob Halley -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
dbb012765c735ee0d82dedb116cdc7cf18957814Evan Hunt ${OBJS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
641dede12a42e48074208c9c4816b65ea1a9ccc7Mark Andrews ./gen -s ${srcdir} -t > $@ || { rm -f $@ ; exit 1; }
641dede12a42e48074208c9c4816b65ea1a9ccc7Mark Andrews ./gen -s ${srcdir} -c > $@ || { rm -f $@ ; exit 1; }
94a3bcd132e515b4baa0884ba9dd0f361d2e17bcMark Andrews ./gen -s ${srcdir} -i \
641dede12a42e48074208c9c4816b65ea1a9ccc7Mark Andrews -S ${srcdir}/rdata/rdatastructsuf.h > $@ || \
641dede12a42e48074208c9c4816b65ea1a9ccc7Mark Andrews { rm -f $@ ; exit 1; }
641dede12a42e48074208c9c4816b65ea1a9ccc7Mark Andrews ./gen -s ${srcdir} > code.h || { rm -f $@ ; exit 1; }
118394ef2ec7cef253c55359a3d70d202ddc2fa0Mark Andrews ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
118394ef2ec7cef253c55359a3d70d202ddc2fa0Mark Andrews ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c ${BUILD_LIBS}
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Hunttimestamp: include libdns.@A@
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Hunt touch timestamp
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Hunttestdirs: libdns.@A@
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Hunt $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Huntinstall:: timestamp installdirs
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Hunt ${LIBTOOL_MODE_INSTALL} ${INSTALL_LIBRARY} libdns.@A@ ${DESTDIR}${libdir}
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Hunt ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${libdir}/libdns.@A@
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Huntclean distclean::
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Hunt rm -f libdns.@A@ timestamp
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Hunt rm -f gen code.h include/dns/enumtype.h include/dns/enumclass.h
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Hunt rm -f dnstap.pb-c.c dnstap.pb-c.h include/dns/dnstap.pb-c.h
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Hunt rm -f code.h include/dns/enumtype.h include/dns/enumclass.h
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Huntrdata.@O@: include
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Huntdepend: include
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Huntsubdirs: include
0d24df5c0b2f9546f403113df8ac4457223bc92fEvan Hunt${OBJS}: include
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Huntdnstap.pb-c.c dnstap.pb-c.h include/dns/dnstap.pb-c.h: dnstap.proto
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt $(PROTOC_C) --c_out=. dnstap.proto