1 # Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
2 # Copyright (C) 1998-2003 Internet Software Consortium.
4 # Permission to use, copy, modify, and distribute this software for any
5 # purpose with or without fee is hereby granted, provided that the above
6 # copyright notice and this permission notice appear in all copies.
8 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 # PERFORMANCE OF THIS SOFTWARE.
16 # $Id: Makefile.in,v 1.126.2.3.2.17 2004/12/09 04:07:15 marka Exp $
20 top_srcdir = @top_srcdir@
22 # Attempt to disable parallel processing.
32 CINCLUDES = -I. -Iinclude ${DNS_INCLUDES} \
33 ${ISC_INCLUDES} @DST_OPENSSL_INC@ @DST_GSSAPI_INC@
35 CDEFINES = -DUSE_MD5 @USE_OPENSSL@ @USE_GSSAPI@
38 ISCLIBS = ../../lib/isc/libisc.@A@
40 ISCDEPLIBS = ../../lib/isc/libisc.@A@
46 DSTOBJS = dst_api.@O@ dst_lib.@O@ dst_parse.@O@ dst_result.@O@ \
47 gssapi_link.@O@ gssapictx.@O@ hmac_link.@O@ key.@O@ \
48 openssl_link.@O@ openssldh_link.@O@ openssldsa_link.@O@ \
52 DNSOBJS = acl.@O@ adb.@O@ byaddr.@O@ \
53 cache.@O@ callbacks.@O@ compress.@O@ \
54 db.@O@ dbiterator.@O@ dbtable.@O@ diff.@O@ dispatch.@O@ \
55 dnssec.@O@ ds.@O@ forward.@O@ journal.@O@ keytable.@O@ \
56 lib.@O@ log.@O@ lookup.@O@ \
57 master.@O@ masterdump.@O@ message.@O@ \
58 name.@O@ ncache.@O@ nsec.@O@ order.@O@ peer.@O@ portlist.@O@ \
59 rbt.@O@ rbtdb.@O@ rbtdb64.@O@ rcode.@O@ rdata.@O@ \
61 rdataset.@O@ rdatasetiter.@O@ rdataslab.@O@ request.@O@ \
62 resolver.@O@ result.@O@ rootns.@O@ sdb.@O@ soa.@O@ ssu.@O@ \
63 stats.@O@ tcpmsg.@O@ time.@O@ timer.@O@ tkey.@O@ \
64 tsig.@O@ ttl.@O@ validator.@O@ \
65 version.@O@ view.@O@ xfrin.@O@ zone.@O@ zonekey.@O@ zt.@O@
67 OBJS= ${DNSOBJS} ${OTHEROBJS} ${DSTOBJS}
70 DSTSRCS = dst_api.c dst_lib.c dst_parse.c \
71 dst_result.c gssapi_link.c gssapictx.c \
73 openssl_link.c openssldh_link.c \
74 openssldsa_link.c opensslrsa_link.c
76 SRCS = acl.c adb.c byaddr.c \
77 cache.c callbacks.c compress.c \
78 db.c dbiterator.c dbtable.c diff.c dispatch.c \
79 dnssec.c ds.c forward.c journal.c keytable.c \
80 lib.c log.c lookup.c \
81 master.c masterdump.c message.c \
82 name.c ncache.c nsec.c order.c peer.c portlist.c \
83 rbt.c rbtdb.c rbtdb64.c rcode.c rdata.c \
85 rdataset.c rdatasetiter.c rdataslab.c request.c \
86 resolver.c result.c rootns.c sdb.c soa.c ssu.c \
87 stats.c tcpmsg.c time.c timer.c tkey.c \
88 tsig.c ttl.c validator.c \
89 version.c view.c xfrin.c zone.c zonekey.c zt.c ${OTHERSRCS}
90 SRCS = ${DSTSRCS} ${DNSSRCS}
93 TARGETS = include/dns/enumtype.h include/dns/enumclass.h \
94 include/dns/rdatastruct.h timestamp
96 DEPENDEXTRA = ./gen -F include/dns/rdatastruct.h \
97 -s ${srcdir} -d >> Makefile ;
101 version.@O@: version.c
102 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
103 -DVERSION=\"${VERSION}\" \
104 -DLIBINTERFACE=${LIBINTERFACE} \
105 -DLIBREVISION=${LIBREVISION} \
107 -c ${srcdir}/version.c
110 ${AR} ${ARFLAGS} $@ ${OBJS}
114 ${LIBTOOL_MODE_LINK} \
115 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libdns.la -rpath ${libdir} \
116 -version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
117 ${OBJS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
119 timestamp: libdns.@A@
123 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
125 install:: timestamp installdirs
126 ${LIBTOOL_MODE_INSTALL} ${INSTALL_DATA} libdns.@A@ ${DESTDIR}${libdir}
129 rm -f libdns.@A@ timestamp
130 rm -f gen code.h include/dns/enumtype.h include/dns/enumclass.h
131 rm -f include/dns/rdatastruct.h
134 rm -f code.h include/dns/enumtype.h include/dns/enumclass.h
135 rm -f include/dns/rdatastruct.h
137 include: include/dns/enumtype.h include/dns/enumclass.h \
138 include/dns/rdatastruct.h
142 include/dns/enumtype.h: gen
143 ./gen -s ${srcdir} -t > $@
145 include/dns/enumclass.h: gen
146 ./gen -s ${srcdir} -c > $@
148 include/dns/rdatastruct.h: gen \
149 ${srcdir}/rdata/rdatastructpre.h \
150 ${srcdir}/rdata/rdatastructsuf.h
151 ./gen -s ${srcdir} -i \
152 -P ${srcdir}/rdata/rdatastructpre.h \
153 -S ${srcdir}/rdata/rdatastructsuf.h > $@
156 ./gen -s ${srcdir} > code.h
159 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o $@ ${srcdir}/gen.c ${LIBS}
163 depend: include/dns/enumtype.h include/dns/enumclass.h \
164 include/dns/rdatastruct.h code.h
165 subdirs: include/dns/enumtype.h include/dns/enumclass.h \
166 include/dns/rdatastruct.h code.h
167 ${OBJS}: include/dns/enumtype.h include/dns/enumclass.h \
168 include/dns/rdatastruct.h