summaryrefslogtreecommitdiff
path: root/usr.sbin/bind/lib/dns/Makefile.in
blob: 00a9373f18ca1b26859cd3f05992352d8f612995 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.

srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

# Attempt to disable parallel processing.
.NOTPARALLEL:
.NO_PARALLEL:

@BIND9_MAJOR@

@LIBDNS_MAPAPI@

@LIBDNS_API@

@BIND9_MAKE_INCLUDES@

CINCLUDES =	-I. -I${top_srcdir}/lib/dns -Iinclude ${DNS_INCLUDES} \
		${ISC_INCLUDES} @DST_OPENSSL_INC@

CDEFINES =	-DUSE_MD5 @CRYPTO@

CWARNINGS =

ISCLIBS =	../../lib/isc/libisc.@A@

ISCDEPLIBS =	../../lib/isc/libisc.@A@

LIBS =		@LIBS@

# Alphabetically

OPENSSLGOSTLINKOBJS = opensslgost_link.@O@
OPENSSLECDSALINKOBJS = opensslecdsa_link.@O@
OPENSSLEDDSALINKOBJS = openssleddsa_link.@O@
OPENSSLLINKOBJS = openssl_link.@O@ openssldh_link.@O@ openssldsa_link.@O@ \
		  @OPENSSLECDSALINKOBJS@ @OPENSSLEDDSALINKOBJS@ \
		  @OPENSSLGOSTLINKOBJS@ opensslrsa_link.@O@

DSTOBJS =	@DST_EXTRA_OBJS@ @OPENSSLLINKOBJS@  \
		dst_api.@O@ dst_parse.@O@ dst_result.@O@ \
		hmac_link.@O@ key.@O@

# Alphabetically
DNSOBJS =	byaddr.@O@ \
		callbacks.@O@ compress.@O@ \
		dnssec.@O@ ds.@O@ \
		keydata.@O@ \
		lib.@O@ log.@O@ \
		master.@O@ masterdump.@O@ message.@O@ \
		name.@O@ ncache.@O@ nsec.@O@ nsec3.@O@ \
		rcode.@O@ rdata.@O@ \
		rdatalist.@O@ rdataset.@O@ \
		result.@O@ \
		soa.@O@ \
		time.@O@ \
		tsig.@O@ ttl.@O@

OBJS=		${DNSOBJS} ${OTHEROBJS} ${DSTOBJS}


# Alphabetically
OPENSSLGOSTLINKSRCS = opensslgost_link.c
OPENSSLECDSALINKSRCS = opensslecdsa_link.c
OPENSSLEDDSALINKSRCS = openssleddsa_link.c
OPENSSLLINKSRCS = openssl_link.c openssldh_link.c openssldsa_link.c \
		  @OPENSSLECDSALINKSRCS@ @OPENSSLEDDSALINKSRCS@ \
		  @OPENSSLGOSTLINKSRCS@ opensslrsa_link.c

DSTSRCS =	@DST_EXTRA_SRCS@ @OPENSSLLINKSRCS@ \
		dst_api.c dst_parse.c \
		dst_result.c \
		hmac_link.c key.c

DNSSRCS =	byaddr.c \
		callbacks.c compress.c \
		dnssec.c ds.c \
		keydata.c lib.c log.c \
		master.c masterdump.c message.c \
		name.c ncache.c nsec.c nsec3.c \
		rcode.c rdata.c rdatalist.c \
		rdataset.c \
		result.c \
		soa.c \
		time.c \
		tsig.c ttl.c \
		${OTHERSRCS}

SRCS = ${DSTSRCS} ${DNSSRCS}

SUBDIRS =	include
TARGETS =	timestamp
TESTDIRS =	@UNITTESTS@

DEPENDEXTRA =	./gen -F include/dns/rdatastruct.h \
		-s ${srcdir} -d >> Makefile ;

@BIND9_MAKE_RULES@

libdns.@SA@: ${OBJS}
	${AR} ${ARFLAGS} $@ ${OBJS}
	${RANLIB} $@

libdns.la: ${OBJS}
	${LIBTOOL_MODE_LINK} \
		${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libdns.la -rpath ${libdir} \
		-version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
		${OBJS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}

include: gen
	${MAKE} include/dns/enumtype.h
	${MAKE} include/dns/enumclass.h
	${MAKE} include/dns/rdatastruct.h
	${MAKE} code.h

include/dns/enumtype.h: gen
	./gen -s ${srcdir} -t > $@ || { rm -f $@ ; exit 1; }

include/dns/enumclass.h: gen
	./gen -s ${srcdir} -c > $@ || { rm -f $@ ; exit 1; }

include/dns/rdatastruct.h: gen \
		${srcdir}/rdata/rdatastructpre.h \
		${srcdir}/rdata/rdatastructsuf.h
	./gen -s ${srcdir} -i \
		-P ${srcdir}/rdata/rdatastructpre.h \
		-S ${srcdir}/rdata/rdatastructsuf.h > $@ || \
	{ rm -f $@ ; exit 1; }

code.h:	gen
	./gen -s ${srcdir} > code.h || { rm -f $@ ; exit 1; }

gen: gen.c
	${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
	${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c ${BUILD_LIBS}

timestamp: include libdns.@A@
	touch timestamp

testdirs: libdns.@A@

installdirs:
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}

install:: timestamp installdirs
	${LIBTOOL_MODE_INSTALL} ${INSTALL_LIBRARY} libdns.@A@ ${DESTDIR}${libdir}

uninstall::
	${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${libdir}/libdns.@A@

clean distclean::
	rm -f libdns.@A@ timestamp
	rm -f gen code.h include/dns/enumtype.h include/dns/enumclass.h
	rm -f include/dns/rdatastruct.h

newrr::
	rm -f code.h include/dns/enumtype.h include/dns/enumclass.h
	rm -f include/dns/rdatastruct.h

include: include/dns/enumtype.h include/dns/enumclass.h \
	include/dns/rdatastruct.h

rdata.@O@: include

depend: include
subdirs: include
${OBJS}: include