summaryrefslogtreecommitdiffstats
path: root/src/libknot/Makefile.inc
blob: f62d836268424c81d908f0f05c82ac5f684bed5b (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
lib_LTLIBRARIES += libknot.la
pkgconfig_DATA  += libknot.pc

libknot_la_CPPFLAGS = $(embedded_libngtcp2_CFLAGS) \
                      $(AM_CPPFLAGS) $(CFLAG_VISIBILITY) $(lmdb_CFLAGS) \
                      ${fuzzer_CFLAGS}
libknot_la_LDFLAGS  = $(AM_LDFLAGS) $(libknot_VERSION_INFO) $(LDFLAG_EXCLUDE_LIBS) \
                      ${fuzzer_LDFLAGS}
libknot_la_LIBADD   = libdnssec.la $(libcontrib_LIBS) $(lmdb_LIBS) $(math_LIBS)

if EMBEDDED_LIBNGTCP2
libknot_la_LIBADD += $(libembngtcp2_LIBS)
endif EMBEDDED_LIBNGTCP2

include_libknotdir = $(includedir)
nobase_include_libknot_HEADERS = \
	libknot/attribute.h			\
	libknot/codes.h				\
	libknot/consts.h			\
	libknot/control/control.h		\
	libknot/cookies.h			\
	libknot/descriptor.h			\
	libknot/dname.h				\
	libknot/dynarray.h			\
	libknot/endian.h			\
	libknot/errcode.h			\
	libknot/error.h				\
	libknot/libknot.h			\
	libknot/lookup.h			\
	libknot/mm_ctx.h			\
	libknot/db/db.h				\
	libknot/db/db_lmdb.h			\
	libknot/db/db_trie.h			\
	libknot/packet/compr.h			\
	libknot/packet/pkt.h			\
	libknot/packet/rrset-wire.h		\
	libknot/packet/wire.h			\
	libknot/probe/data.h			\
	libknot/probe/probe.h			\
	libknot/rdata.h				\
	libknot/rdataset.h			\
	libknot/rrset-dump.h			\
	libknot/rrset.h				\
	libknot/rrtype/dnskey.h			\
	libknot/rrtype/ds.h			\
	libknot/rrtype/naptr.h			\
	libknot/rrtype/nsec.h			\
	libknot/rrtype/nsec3.h			\
	libknot/rrtype/nsec3param.h		\
	libknot/rrtype/opt.h			\
	libknot/rrtype/rdname.h			\
	libknot/rrtype/rrsig.h			\
	libknot/rrtype/soa.h			\
	libknot/rrtype/svcb.h			\
	libknot/rrtype/tsig.h			\
	libknot/rrtype/zonemd.h			\
	libknot/tsig-op.h			\
	libknot/tsig.h				\
	libknot/wire.h				\
	libknot/yparser/yparser.h		\
	libknot/yparser/ypformat.h		\
	libknot/yparser/ypschema.h		\
	libknot/yparser/yptrafo.h		\
	libknot/version.h			\
	libknot/xdp/tcp_iobuf.h			\
	libknot/xdp.h

libknot_la_SOURCES = \
	libknot/codes.c				\
	libknot/control/control.c		\
	libknot/cookies.c			\
	libknot/descriptor.c			\
	libknot/dname.c				\
	libknot/error.c				\
	libknot/db/db_lmdb.c			\
	libknot/db/db_trie.c			\
	libknot/packet/pkt.c			\
	libknot/packet/rrset-wire.c		\
	libknot/probe/data.c			\
	libknot/probe/probe.c			\
	libknot/rdataset.c			\
	libknot/rrset-dump.c			\
	libknot/rrset.c				\
	libknot/rrtype/naptr.c			\
	libknot/rrtype/opt.c			\
	libknot/rrtype/tsig.c			\
	libknot/tsig-op.c			\
	libknot/tsig.c				\
	libknot/yparser/yparser.c		\
	libknot/yparser/ypbody.c		\
	libknot/yparser/ypformat.c		\
	libknot/yparser/ypschema.c		\
	libknot/yparser/yptrafo.c		\
	libknot/xdp/tcp_iobuf.c

if ENABLE_XDP
libknot_la_CPPFLAGS += $(libbpf_CFLAGS)
libknot_la_LIBADD   += $(libbpf_LIBS)

nobase_include_libknot_HEADERS += \
	libknot/xdp/bpf-consts.h		\
	libknot/xdp/eth.h			\
	libknot/xdp/msg.h			\
	libknot/xdp/tcp.h			\
	libknot/xdp/xdp.h

libknot_la_SOURCES  += \
	libknot/xdp/bpf-kernel-obj.c		\
	libknot/xdp/bpf-kernel-obj.h		\
	libknot/xdp/bpf-user.c			\
	libknot/xdp/bpf-user.h			\
	libknot/xdp/eth.c			\
	libknot/xdp/msg_init.h			\
	libknot/xdp/protocols.h			\
	libknot/xdp/tcp.c			\
	libknot/xdp/xdp.c

endif ENABLE_XDP
if ENABLE_QUIC

libknot_la_CPPFLAGS += $(libngtcp2_CFLAGS) $(gnutls_CFLAGS)
libknot_la_LIBADD   += $(libngtcp2_LIBS) $(gnutls_LIBS)

nobase_include_libknot_HEADERS += \
	libknot/quic/quic.h			\
	libknot/quic/quic_conn.h

libknot_la_SOURCES  += \
	libknot/quic/quic.c			\
	libknot/quic/quic_conn.c

endif ENABLE_QUIC

DIST_SUBDIRS = libknot/xdp