Makefile.am 8.21 KB
Newer Older
1
ACLOCAL_AMFLAGS = -I $(top_srcdir)/m4
2
SUBDIRS = zscanner .
3

4
sbin_PROGRAMS = knotc knotd
5
bin_PROGRAMS = kdig khost knsupdate knsec3hash
6
noinst_LTLIBRARIES = libknot.la libknotd.la libknots.la
Ondřej Surý's avatar
Ondřej Surý committed
7 8

# $(YACC) will generate header file
9
AM_CPPFLAGS = -DCONFIG_DIR='"${config_dir}"' -DSTORAGE_DIR='"${storage_dir}"' \
10
	      -DRUN_DIR='"${run_dir}"'
Ondřej Surý's avatar
Ondřej Surý committed
11
AM_YFLAGS = -d
12 13
libknotd_la_YFLAGS = -pcf_ -d
libknotd_la_LFLAGS = # TODO: reentrant parser, prefix
Ondřej Surý's avatar
Ondřej Surý committed
14

15
BUILT_SOURCES =					\
16 17
	knot/conf/libknotd_la-cf-lex.c		\
	knot/conf/libknotd_la-cf-parse.c	\
18
	knot/conf/libknotd_la-cf-parse.h
Jan Kadlec's avatar
Jan Kadlec committed
19

20
CLEANFILES =					\
21 22 23
	knot/conf/libknotd_la-cf-lex.c		\
	knot/conf/libknotd_la-cf-parse.c	\
	knot/conf/libknotd_la-cf-parse.h
24

25 26 27
knotc_SOURCES =					\
	knot/ctl/knotc_main.c

28 29 30
knotd_SOURCES =					\
	knot/main.c

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
kdig_SOURCES =					\
	utils/common/msg.h			\
	utils/common/msg.c			\
	utils/common/exec.c			\
	utils/common/exec.h			\
	utils/common/params.c			\
	utils/common/params.h			\
	utils/common/resolv.c			\
	utils/common/resolv.h			\
	utils/common/netio.c			\
	utils/common/netio.h			\
	utils/common/token.c			\
	utils/common/token.h			\
	utils/dig/dig_main.c			\
	utils/dig/dig_params.c			\
	utils/dig/dig_params.h			\
	utils/dig/dig_exec.c			\
	utils/dig/dig_exec.h

khost_SOURCES =					\
	utils/common/msg.h			\
	utils/common/msg.c			\
	utils/common/exec.c			\
	utils/common/exec.h			\
	utils/common/params.c			\
	utils/common/params.h			\
	utils/common/resolv.c			\
	utils/common/resolv.h			\
	utils/common/netio.c			\
	utils/common/netio.h			\
	utils/common/token.c			\
	utils/common/token.h			\
	utils/host/host_main.c			\
	utils/dig/dig_params.c			\
	utils/dig/dig_params.h			\
	utils/host/host_params.c		\
	utils/host/host_params.h		\
	utils/dig/dig_exec.c			\
	utils/dig/dig_exec.h

knsupdate_SOURCES =				\
	utils/common/msg.h			\
	utils/common/msg.c			\
	utils/common/params.c			\
	utils/common/params.h			\
	utils/common/resolv.c			\
	utils/common/resolv.h			\
	utils/common/netio.c			\
	utils/common/netio.h			\
	utils/common/token.c			\
	utils/common/token.h			\
	utils/common/exec.c			\
	utils/common/exec.h			\
	utils/nsupdate/nsupdate_main.c		\
	utils/nsupdate/nsupdate_params.h	\
86 87 88
	utils/nsupdate/nsupdate_params.c	\
	utils/nsupdate/nsupdate_exec.h		\
	utils/nsupdate/nsupdate_exec.c
89

90
knsec3hash_SOURCES =				\
Daniel Salzman's avatar
Daniel Salzman committed
91 92 93 94 95 96 97 98
	utils/common/msg.h			\
	utils/common/msg.c			\
	utils/common/netio.h			\
	utils/common/netio.c			\
	utils/common/resolv.h			\
	utils/common/resolv.c			\
	utils/common/params.h			\
	utils/common/params.c			\
99 100
	utils/nsec3hash/nsec3hash_main.c

101
libknot_la_SOURCES =				\
102
	libknot/common.h			\
103 104
	libknot/consts.h			\
	libknot/consts.c			\
105 106 107 108 109
	libknot/util/utils.c			\
	libknot/util/debug.h			\
	libknot/util/utils.h			\
	libknot/util/tolower.h			\
	libknot/util/tolower.c			\
110
	libknot/util/endian.h			\
Marek Vavrusa's avatar
Marek Vavrusa committed
111 112 113 114 115
	libknot/packet/pkt.c			\
	libknot/packet/pkt.h			\
	libknot/packet/compr.c			\
	libknot/packet/compr.h			\
	libknot/packet/wire.h			\
116 117
	libknot/processing/process.c	\
	libknot/processing/process.h	\
Daniel Salzman's avatar
Daniel Salzman committed
118
	libknot/dname.c				\
119
	libknot/consts.h			\
120
	libknot/edns.h				\
Daniel Salzman's avatar
Daniel Salzman committed
121
	libknot/edns.c				\
122
	libknot/libknot.h			\
123
	libknot/dname.h				\
Lubos Slovak's avatar
Lubos Slovak committed
124
	libknot/rdata.h				\
Daniel Salzman's avatar
Daniel Salzman committed
125 126 127 128
	libknot/rrset.h				\
	libknot/rrset.c				\
	libknot/rrset-dump.h			\
	libknot/rrset-dump.c			\
129 130 131
	libknot/tsig.h				\
	libknot/tsig.c				\
	libknot/tsig-op.h			\
132
	libknot/tsig-op.c			\
133 134
	libknot/binary.h			\
	libknot/binary.c			\
135
	libknot/dnssec/config.h			\
136 137
	libknot/dnssec/crypto.c			\
	libknot/dnssec/crypto.h			\
138 139
	libknot/dnssec/key.c			\
	libknot/dnssec/key.h			\
140
	libknot/dnssec/nsec-bitmap.h		\
141 142
	libknot/dnssec/nsec3.c			\
	libknot/dnssec/nsec3.h			\
143
	libknot/dnssec/policy.c			\
144
	libknot/dnssec/policy.h			\
145
	libknot/dnssec/random.h			\
146 147
	libknot/dnssec/rrset-sign.c		\
	libknot/dnssec/rrset-sign.h		\
148 149 150
	libknot/dnssec/sig0.c			\
	libknot/dnssec/sig0.h			\
	libknot/dnssec/sign.c			\
151
	libknot/dnssec/sign.h
152 153 154

libknots_la_SOURCES =				\
	common/slab/slab.c			\
155
	common/slab/slab.h			\
156
	common/slab/alloc-common.h		\
157
	common/array-sort.h			\
158
	common/atomic.h				\
159
	common/binsearch.h			\
160
	common/memdup.h				\
161 162
	common/mempattern.h			\
	common/mempattern.c			\
163 164
	common/descriptor.h			\
	common/descriptor.c			\
165
	common/lists.c				\
166 167
	common/base64.c				\
	common/base64.h				\
168
	common/lists.h				\
169 170
	common/heap.h				\
	common/heap.c				\
Lubos Slovak's avatar
Lubos Slovak committed
171 172
	common/print.c				\
	common/print.h				\
173
	common/base32hex.c			\
174
	common/base32hex.h			\
175 176 177 178
	common/evqueue.h			\
	common/evqueue.c			\
	common/evsched.h			\
	common/evsched.c			\
179 180
	common/acl.h				\
	common/acl.c				\
181 182
	common/sockaddr.h			\
	common/sockaddr.c			\
183
	common/crc.h				\
184 185
	common/ref.h				\
	common/ref.c				\
186
	common/errors.h				\
187
	common/errors.c				\
Marek Vavrusa's avatar
Marek Vavrusa committed
188 189
	common/errcode.h			\
	common/errcode.c			\
190 191
	common/fdset.h				\
	common/fdset.c				\
192 193
	common/getline.h			\
	common/getline.c			\
194 195
	common/log.c				\
	common/log.h				\
196 197
	common/mempool.c			\
	common/mempool.h			\
198 199
	common/hhash.c				\
	common/hhash.h				\
200 201 202
	common/hattrie/hat-trie.c		\
	common/hattrie/hat-trie.h		\
	common/hattrie/murmurhash3.c		\
203 204
	common/hattrie/murmurhash3.h		\
	common/hex.c				\
205 206
	common/hex.h				\
	common/strtonum.h
207 208 209

libknotd_la_SOURCES =				\
	knot/conf/cf-lex.l			\
210
	knot/conf/cf-parse.y			\
211
	knot/conf/conf.c			\
212 213 214 215 216
	knot/conf/conf.h			\
	knot/conf/extra.c			\
	knot/conf/extra.h			\
	knot/conf/includes.c			\
	knot/conf/includes.h			\
217 218 219 220 221 222
	knot/conf/logconf.c			\
	knot/conf/logconf.h			\
	knot/ctl/process.c			\
	knot/ctl/process.h			\
	knot/ctl/remote.c			\
	knot/ctl/remote.h			\
223 224 225 226 227 228 229 230 231 232 233 234
	knot/dnssec/nsec-chain.c		\
	knot/dnssec/nsec-chain.h		\
	knot/dnssec/nsec3-chain.c		\
	knot/dnssec/nsec3-chain.h		\
	knot/dnssec/zone-events.c		\
	knot/dnssec/zone-events.h		\
	knot/dnssec/zone-keys.c			\
	knot/dnssec/zone-keys.h			\
	knot/dnssec/zone-nsec.c			\
	knot/dnssec/zone-nsec.h			\
	knot/dnssec/zone-sign.c			\
	knot/dnssec/zone-sign.h			\
235 236 237 238 239 240 241 242 243 244
	knot/nameserver/axfr.c			\
	knot/nameserver/axfr.h			\
	knot/nameserver/chaos.c			\
	knot/nameserver/chaos.h			\
	knot/nameserver/internet.c		\
	knot/nameserver/internet.h		\
	knot/nameserver/ixfr.c			\
	knot/nameserver/ixfr.h			\
	knot/nameserver/name-server.c		\
	knot/nameserver/name-server.h		\
245 246
	knot/nameserver/process_query.c		\
	knot/nameserver/process_query.h		\
247 248 249 250
	knot/nameserver/nsec_proofs.c		\
	knot/nameserver/nsec_proofs.h		\
	knot/nameserver/update.c		\
	knot/nameserver/update.h		\
251 252
	knot/knot.h				\
	knot/other/debug.h			\
253
	knot/server/dthreads.c			\
254
	knot/server/dthreads.h			\
Jan Kadlec's avatar
Jan Kadlec committed
255
	knot/server/journal.c			\
256 257 258 259 260
	knot/server/journal.h			\
	knot/server/notify.c			\
	knot/server/notify.h			\
	knot/server/rrl.c			\
	knot/server/rrl.h			\
261
	knot/server/server.c			\
262 263
	knot/server/server.h			\
	knot/server/socket.c			\
264
	knot/server/socket.h			\
265
	knot/server/tcp-handler.c		\
266
	knot/server/tcp-handler.h		\
267 268 269
	knot/server/udp-handler.c		\
	knot/server/udp-handler.h		\
	knot/server/xfr-handler.c		\
270
	knot/server/xfr-handler.h		\
271 272 273
	knot/server/zone-load.c			\
	knot/server/zone-load.h			\
	knot/server/zones.c			\
274
	knot/server/zones.h			\
275 276 277 278 279
	knot/stat/gatherer.c			\
	knot/stat/gatherer.h			\
	knot/stat/stat-common.h			\
	knot/stat/stat.c			\
	knot/stat/stat.h			\
280 281 282 283 284 285
	knot/updates/changesets.h		\
	knot/updates/changesets.c		\
	knot/updates/xfr-in.h			\
	knot/updates/xfr-in.c			\
	knot/updates/ddns.h			\
	knot/updates/ddns.c			\
286 287
	knot/zone/estimator.c			\
	knot/zone/estimator.h			\
288 289
	knot/zone/semantic-check.c		\
	knot/zone/semantic-check.h		\
Daniel Salzman's avatar
Daniel Salzman committed
290
	knot/zone/zone-dump.c			\
291
	knot/zone/zone-dump.h			\
292
	knot/zone/zone-load.c			\
293 294 295 296 297
	knot/zone/zone-load.h			\
	knot/zone/node.c			\
	knot/zone/node.h			\
	knot/zone/zone-contents.c		\
	knot/zone/zone-contents.h		\
298 299 300 301
	knot/zone/zone-diff.c			\
	knot/zone/zone-diff.h			\
	knot/zone/zone-tree.c			\
	knot/zone/zone-tree.h			\
302 303 304 305
	knot/zone/zone.c			\
	knot/zone/zone.h			\
	knot/zone/zonedb.c			\
	knot/zone/zonedb.h
306 307

libknotd_la_LIBADD = libknot.la libknots.la @LIBOBJS@
308
libknots_la_LIBADD = zscanner/libzscanner.la @LIBOBJS@
309 310
knotd_LDADD = libknotd.la libknot.la libknots.la @LIBOBJS@
knotc_LDADD = libknotd.la libknot.la libknots.la @LIBOBJS@
311 312
kdig_LDADD = libknotd.la libknot.la libknots.la @LIBOBJS@
khost_LDADD = libknotd.la libknot.la libknots.la @LIBOBJS@
313
knsupdate_LDADD = libknotd.la libknot.la libknots.la zscanner/libzscanner.la @LIBOBJS@
314
knsec3hash_LDADD = libknot.la libknots.la @LIBOBJS@
315 316 317

# Create storage and run-time directories
install-data-hook:
318
	$(INSTALL) -d $(DESTDIR)/@config_dir@
319 320
	$(INSTALL) -d $(DESTDIR)/@run_dir@
	$(INSTALL) -d $(DESTDIR)/@storage_dir@