dnscrypto-proxy: Update to release 1.3.0
[tomato.git] / release / src / router / dnscrypt / src / proxy / Makefile.am
blobba52dcc5a0a6be8a80de63a68aa08fe0a0b73860
2 sbin_PROGRAMS = \
3         dnscrypt-proxy
5 dnscrypt_proxy_SOURCES = \
6         app.c \
7         app.h \
8         cert.c \
9         cert.h \
10         cert_p.h \
11         dnscrypt.c \
12         dnscrypt.h \
13         dnscrypt_client.c \
14         dnscrypt_client.h \
15         dnscrypt_proxy.h \
16         edns.c \
17         edns.h \
18         getpwnam.h \
19         logger.c \
20         logger.h \
21         options.c \
22         options.h \
23         pathnames.h \
24         pid_file.c \
25         pid_file.h \
26         probes_dnscrypt_proxy.d \
27         probes_no_dtrace.h \
28         safe_rw.c \
29         safe_rw.h \
30         sandboxes.c \
31         sandboxes.h \
32         stack_trace.c \
33         stack_trace.h \
34         tcp_request.c \
35         tcp_request.h \
36         tcp_request_p.h \
37         udp_request.c \
38         udp_request.h \
39         udp_request_p.h \
40         utils.c \
41         utils.h \
42         windows_service.c \
43         windows_service.h
45 AM_CFLAGS = @CWFLAGS@
47 AM_CPPFLAGS = \
48         -I../ext \
49         -I../libevent-modified/include
51 dnscrypt_proxy_LDADD = \
52         ../libevent-modified/libevent_extra.la \
53         ../libevent-modified/libevent_core.la
55 dnscrypt_proxy_DEPENDENCIES = \
56         ../libevent-modified/libevent_extra.la \
57         ../libevent-modified/libevent_core.la
59 if USE_BUILTIN_LIBSODIUM
60 AM_CPPFLAGS += \
61         -I../libsodium/src/libsodium/include
63 dnscrypt_proxy_LDADD += \
64         ../libsodium/src/libsodium/libsodium.la
66 dnscrypt_proxy_DEPENDENCIES += \
67         ../libsodium/src/libsodium/libsodium.la
68 endif
70 BUILT_SOURCES = \
71         probes.h
73 probes.h: @PROBES_SOURCE@
74         cat @PROBES_SOURCE@ > $@
76 probes_dnscrypt_proxy.h: probes_dnscrypt_proxy.d
77         @DTRACE@ -o $@ -h -s probes_dnscrypt_proxy.d
79 CLEANFILES = \
80         probes.h \
81         probes_dnscrypt_proxy.h
83 if PLUGINS
85 AM_CPPFLAGS += \
86         $(LTDLINCL) \
87         -I../include \
88         -DPLUGINS_ROOT=\"$(pkglibdir)/\"
90 dnscrypt_proxy_LDADD += $(LIBLTDL)
91 dnscrypt_proxy_DEPENDENCIES += $(LTDLDEPS)
93 dnscrypt_proxy_SOURCES += \
94         plugin_options.c \
95         plugin_options.h \
96         plugin_support.c \
97         plugin_support.h \
98         plugin_support_p.h
100 endif