summaryrefslogtreecommitdiffstats
path: root/bin/named/Makefile.am
blob: 57a023b9faf2b4b830be714b794b252a787dc7b3 (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
include $(top_srcdir)/Makefile.top

AM_CPPFLAGS +=				\
	-I$(top_builddir)/include	\
	$(LIBISC_CFLAGS)		\
	$(LIBDNS_CFLAGS)		\
	$(LIBNS_CFLAGS)			\
	$(LIBISCCC_CFLAGS)		\
	$(LIBISCCFG_CFLAGS)		\
	$(LIBBIND9_CFLAGS)		\
	$(OPENSSL_CFLAGS)		\
	$(LIBCAP_CFLAGS)		\
	$(LMDB_CFLAGS)			\
	$(MAXMINDDB_CFLAGS)		\
	$(DNSTAP_CFLAGS)		\
	$(LIBUV_CFLAGS)			\
	$(ZLIB_CFLAGS)

if HAVE_JSON_C
AM_CPPFLAGS +=				\
	$(JSON_C_CFLAGS)
endif HAVE_JSON_C

if HAVE_LIBNGHTTP2
AM_CPPFLAGS +=				\
	$(LIBNGHTTP2_CFLAGS)
endif HAVE_LIBNGHTTP2

if HAVE_LIBXML2
AM_CPPFLAGS +=				\
	$(LIBXML2_CFLAGS)
endif HAVE_LIBXML2

AM_CPPFLAGS +=						\
	-DNAMED_LOCALSTATEDIR=\"${localstatedir}\"	\
	-DNAMED_SYSCONFDIR=\"${sysconfdir}\"

sbin_PROGRAMS = named

nodist_named_SOURCES = xsl.c
BUILT_SOURCES = xsl.c
CLEANFILES = xsl.c

EXTRA_DIST = bind9.xsl

xsl.c: bind9.xsl Makefile
	(echo 'const char xslmsg[] =' &&	\
	 $(SED)	-e 's,\",\\\",g'		\
		-e 's,^,\",'			\
		-e 's,$$,\\n\",' &&		\
	 echo ";")				\
	< "${srcdir}/bind9.xsl" > $@

named_SOURCES =				\
	builtin.c			\
	config.c			\
	control.c			\
	controlconf.c			\
	dlz_dlopen_driver.c		\
	fuzz.c				\
	log.c				\
	logconf.c			\
	main.c				\
	os.c				\
	server.c			\
	statschannel.c			\
	tkeyconf.c			\
	transportconf.c			\
	tsigconf.c			\
	zoneconf.c			\
	include/dlz/dlz_dlopen_driver.h	\
	include/named/builtin.h		\
	include/named/config.h		\
	include/named/control.h		\
	include/named/fuzz.h		\
	include/named/geoip.h		\
	include/named/globals.h		\
	include/named/log.h		\
	include/named/logconf.h		\
	include/named/main.h		\
	include/named/os.h		\
	include/named/server.h		\
	include/named/smf_globals.h	\
	include/named/statschannel.h	\
	include/named/tkeyconf.h	\
	include/named/transportconf.h	\
	include/named/tsigconf.h	\
	include/named/types.h		\
	include/named/zoneconf.h	\
	xsl_p.h

if HAVE_GEOIP2
AM_CPPFLAGS +=					\
	-DMAXMINDDB_PREFIX=\"@MAXMINDDB_PREFIX@\"
named_SOURCES +=	\
	geoip.c
endif

named_LDADD =					\
	$(LIBISC_LIBS)				\
	$(LIBDNS_LIBS)				\
	$(LIBNS_LIBS)				\
	$(LIBISCCC_LIBS)			\
	$(LIBISCCFG_LIBS)			\
	$(LIBBIND9_LIBS)			\
	$(OPENSSL_LIBS)				\
	$(LIBCAP_LIBS)				\
	$(LMDB_LIBS)				\
	$(MAXMINDDB_LIBS)			\
	$(DNSTAP_LIBS)				\
	$(LIBUV_LIBS)				\
	$(LIBXML2_LIBS)				\
	$(ZLIB_LIBS)

if HAVE_JSON_C
named_LDADD +=					\
	$(JSON_C_LIBS)
endif HAVE_JSON_C

if HAVE_LIBNGHTTP2
named_LDADD +=					\
	$(LIBNGHTTP2_LIBS)
endif HAVE_LIBNGHTTP2