]>
Commit | Line | Data |
---|---|---|
4649d67b | 1 | AM_CPPFLAGS += $(LUA_CFLAGS) $(LIBEDIT_CFLAGS) $(YAHTTP_CFLAGS) $(SANITIZER_FLAGS) -DSYSCONFDIR=\"${sysconfdir}\" |
50bed881 | 2 | |
91487eb9 PL |
3 | ACLOCAL_AMFLAGS = -I m4 |
4 | ||
f8204e9e | 5 | SUBDIRS=ext/yahttp |
bbfefc98 | 6 | |
7 | dnslabeltext.cc: dnslabeltext.rl | |
30bfe7f6 | 8 | $(AM_V_GEN)$(RAGEL) $< -o dnslabeltext.cc |
4676400a | 9 | |
a1f81e3b | 10 | BUILT_SOURCES=htmlfiles.h |
11 | ||
50bed881 | 12 | htmlfiles.h: html/* |
13 | ./incfiles > $@ | |
bbfefc98 | 14 | |
7cc65f8a SH |
15 | SRC_JS_FILES := $(wildcard src_js/*.js) |
16 | MIN_JS_FILES := $(patsubst src_js/%.js,html/js/%.min.js,$(SRC_JS_FILES)) | |
17 | ||
18 | html/js/%.min.js: src_js/%.js | |
19 | uglifyjs $< > $@ | |
20 | ||
21 | min_js: $(MIN_JS_FILES) | |
22 | ||
4ed8dfeb | 23 | if HAVE_RE2 |
24 | AM_CPPFLAGS += $(RE2_CFLAGS) | |
25 | endif | |
26 | ||
27 | ||
994c0ab3 PL |
28 | EXTRA_DIST=dnslabeltext.rl \ |
29 | dnsdistconf.lua \ | |
30 | README.md \ | |
25553371 | 31 | delaypipe.cc delaypipe.hh \ |
994c0ab3 | 32 | html \ |
b8681462 | 33 | dnsdist.1.md \ |
5242cc51 | 34 | .version \ |
b3bcfb63 | 35 | contrib \ |
1caf101b | 36 | build-aux/gen-version \ |
babc4bab SH |
37 | ext/incbin/UNLICENSE \ |
38 | incfiles \ | |
39 | src_js | |
bbfefc98 | 40 | |
ca404e94 RG |
41 | if UNIT_TESTS |
42 | bin_PROGRAMS = dnsdist testrunner | |
43 | else | |
bbfefc98 | 44 | bin_PROGRAMS = dnsdist |
ca404e94 RG |
45 | endif |
46 | ||
bbfefc98 | 47 | dnsdist_SOURCES = \ |
1489accc | 48 | base64.hh \ |
77f8ae1a | 49 | dns.cc dns.hh \ |
11e1e08b | 50 | dnscrypt.cc dnscrypt.hh \ |
bbfefc98 | 51 | dnsdist.cc dnsdist.hh \ |
886e2cf2 | 52 | dnsdist-cache.cc dnsdist-cache.hh \ |
96b092a7 | 53 | dnsdist-carbon.cc \ |
ffb07158 | 54 | dnsdist-console.cc \ |
11e1e08b | 55 | dnsdist-dnscrypt.cc \ |
ca404e94 | 56 | dnsdist-ecs.cc dnsdist-ecs.hh \ |
bbfefc98 | 57 | dnsdist-lua.cc \ |
80a216c9 | 58 | dnsdist-lua2.cc \ |
f092a5c7 | 59 | dnsdist-rings.cc \ |
8a5d5053 | 60 | dnsdist-tcp.cc \ |
50bed881 | 61 | dnsdist-web.cc \ |
bbfefc98 | 62 | dnslabeltext.cc \ |
63 | dnsname.cc dnsname.hh \ | |
ca404e94 | 64 | dnsparser.hh dnsparser.cc \ |
0940e4eb | 65 | dnsrulactions.hh \ |
bbfefc98 | 66 | dnswriter.cc dnswriter.hh \ |
67 | dolog.hh \ | |
5c3b5e7f | 68 | ednsoptions.cc ednsoptions.hh \ |
ca404e94 | 69 | ednssubnet.cc ednssubnet.hh \ |
bbfefc98 | 70 | iputils.cc iputils.hh \ |
0e41337b | 71 | lock.hh \ |
bbfefc98 | 72 | misc.cc misc.hh \ |
ed1f29ef | 73 | htmlfiles.h \ |
bbfefc98 | 74 | namespaces.hh \ |
75 | pdnsexception.hh \ | |
76 | qtype.cc qtype.hh \ | |
ecbe9133 | 77 | sholder.hh \ |
bbfefc98 | 78 | sodcrypto.cc sodcrypto.hh \ |
f8204e9e PL |
79 | sstuff.hh \ |
80 | ext/luawrapper/include/LuaContext.hpp \ | |
81 | ext/json11/json11.cpp \ | |
82 | ext/json11/json11.hpp \ | |
6a699049 | 83 | ext/incbin/incbin.h |
bbfefc98 | 84 | |
85 | dnsdist_LDFLAGS = \ | |
86 | $(AM_LDFLAGS) \ | |
bfb7cc84 | 87 | $(PROGRAM_LDFLAGS) \ |
50bed881 | 88 | -pthread |
bbfefc98 | 89 | |
90 | dnsdist_LDADD = \ | |
a6158e7a | 91 | $(LUA_LIBS) \ |
d9de8b61 | 92 | $(LIBEDIT_LIBS) \ |
a6158e7a RK |
93 | $(RT_LIBS) \ |
94 | $(YAHTTP_LIBS) \ | |
e85e4d88 RG |
95 | $(LIBSODIUM_LIBS) \ |
96 | $(SANITIZER_FLAGS) | |
bbfefc98 | 97 | |
4ed8dfeb | 98 | if HAVE_RE2 |
99 | dnsdist_LDADD += $(RE2_LIBS) | |
100 | endif | |
101 | ||
ca404e94 RG |
102 | |
103 | testrunner_SOURCES = \ | |
11e1e08b RG |
104 | base64.hh \ |
105 | dns.hh \ | |
e27e17c3 | 106 | test-base64_cc.cc \ |
11e1e08b | 107 | test-dnsdist_cc.cc \ |
886e2cf2 | 108 | test-dnsdistpacketcache_cc.cc \ |
11e1e08b RG |
109 | test-dnscrypt_cc.cc \ |
110 | dnsdist.hh \ | |
886e2cf2 | 111 | dnsdist-cache.cc dnsdist-cache.hh \ |
ca404e94 | 112 | dnsdist-ecs.cc dnsdist-ecs.hh \ |
11e1e08b | 113 | dnscrypt.cc dnscrypt.hh \ |
ca404e94 RG |
114 | dnslabeltext.cc \ |
115 | dnsname.cc dnsname.hh \ | |
116 | dnsparser.hh dnsparser.cc \ | |
117 | dnswriter.cc dnswriter.hh \ | |
118 | dolog.hh \ | |
5c3b5e7f | 119 | ednsoptions.cc ednsoptions.hh \ |
ca404e94 RG |
120 | ednssubnet.cc ednssubnet.hh \ |
121 | iputils.cc iputils.hh \ | |
122 | misc.cc misc.hh \ | |
123 | namespaces.hh \ | |
124 | pdnsexception.hh \ | |
125 | qtype.cc qtype.hh \ | |
126 | sholder.hh \ | |
e27e17c3 | 127 | sodcrypto.cc \ |
ca404e94 RG |
128 | sstuff.hh \ |
129 | testrunner.cc | |
130 | ||
131 | testrunner_LDFLAGS = \ | |
132 | $(AM_LDFLAGS) \ | |
133 | $(PROGRAM_LDFLAGS) \ | |
134 | $(BOOST_UNIT_TEST_FRAMEWORK_LDFLAGS) \ | |
135 | -pthread | |
136 | ||
137 | testrunner_LDADD = \ | |
138 | $(BOOST_UNIT_TEST_FRAMEWORK_LIBS) \ | |
11e1e08b | 139 | $(LIBSODIUM_LIBS) \ |
8d06661a RG |
140 | $(RT_LIBS) \ |
141 | $(SANITIZER_FLAGS) | |
ca404e94 | 142 | |
f68a9074 PL |
143 | MANPAGES=dnsdist.1 |
144 | ||
145 | dist_man_MANS=$(MANPAGES) | |
146 | ||
147 | if HAVE_PANDOC | |
148 | $(MANPAGES): %: %.md | |
149 | $(AM_V_GEN)$(PANDOC) -s -t man $< -o $@ | |
150 | else | |
151 | if HAVE_MANPAGES | |
152 | #nothing | |
153 | else | |
154 | $(MANPAGES): | |
155 | echo "You need pandoc to generate the manpages" | |
156 | exit 1 | |
157 | endif | |
158 | endif |