-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile.am
96 lines (79 loc) · 2.2 KB
/
Makefile.am
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
BUILT_SOURCES =
EXTRA_DIST = COPYRIGHT LICENSE
CLEANFILES =
TESTS =
check_PROGRAMS =
AM_CPPFLAGS = \
-include $(top_builddir)/config.h
AM_CFLAGS = \
$(my_CFLAGS) \
$(libnmsg_CFLAGS) \
$(libprotobuf_c_CFLAGS) \
$(libwdns_CFLAGS)
MSG_LIBTOOL_FLAGS = -module -avoid-version
SUFFIXES = .proto .pb-c.c .pb-c.h
.proto.pb-c.c:
$(AM_V_GEN)@PROTOC_C@ "--c_out=`pwd`" -I$(top_srcdir) $<
.proto.pb-c.h:
$(AM_V_GEN)@PROTOC_C@ "--c_out=`pwd`" -I$(top_srcdir) $<
moduledir = $(libdir)/nmsg
nmsgsieincludedir = $(includedir)/nmsg/sie
nobase_nmsgsieinclude_HEADERS = \
defs.h
nobase_nodist_nmsgsieinclude_HEADERS = \
delay.pb-c.h \
dnsdedupe.pb-c.h \
dnsnx.pb-c.h \
qr.pb-c.h \
reputation.pb-c.h \
newdomain.pb-c.h
# NOTE: if the nmsg msgmod version (nmsg_msgX) changes, it must be
# updated both here and in check_libnmsg.m4.
module_LTLIBRARIES = nmsg_msg9_sie.la
nmsg_msg9_sie_la_LDFLAGS = \
$(AM_LDFLAGS) \
$(MSG_LIBTOOL_FLAGS)
nmsg_msg9_sie_la_LIBADD = \
$(libnmsg_LIBS) \
$(libwdns_LIBS)
nmsg_msg9_sie_la_SOURCES = nmsg_msg_sie.c
nodist_nmsg_msg9_sie_la_SOURCES = \
delay.pb-c.c delay.pb-c.h \
dnsdedupe.pb-c.c dnsdedupe.pb-c.h \
dnsnx.pb-c.c dnsnx.pb-c.h \
qr.pb-c.c qr.pb-c.h \
reputation.pb-c.c reputation.pb-c.h \
newdomain.pb-c.c newdomain.pb-c.h
BUILT_SOURCES += $(nodist_nmsg_msg9_sie_la_SOURCES)
CLEANFILES += $(nodist_nmsg_msg9_sie_la_SOURCES)
EXTRA_DIST += \
delay.c \
delay.proto \
dnsdedupe.c \
dnsdedupe.proto \
dnsnx.c \
dnsnx.proto \
qr.c \
qr.proto \
reputation.c \
reputation.proto \
newdomain.c \
newdomain.proto
# Tests
TESTS_ENVIRONMENT = NMSG_MSGMOD_DIR=$(top_builddir)/.libs
EXTRA_DIST += tests/errors.h
EXTRA_DIST += tests/generic-tests/dedupe.nmsg
EXTRA_DIST += tests/generic-tests/newdomain.nmsg
TESTS += tests/test-parse
check_PROGRAMS += tests/test-parse
tests_test_parse_LDADD = $(libnmsg_LIBS)
tests_test_parse_SOURCES = tests/test-parse.c
TESTS += tests/test-misc
check_PROGRAMS += tests/test-misc
tests_test_misc_LDADD = $(libnmsg_LIBS)
tests_test_misc_SOURCES = tests/test-misc.c
TESTS += tests/test-io
check_PROGRAMS += tests/test-io
tests_test_io_CPPFLAGS = -DSRCDIR="\"$(abs_srcdir)\"" $(AM_CPPFLAGS)
tests_test_io_LDADD = $(libnmsg_LIBS)
tests_test_io_SOURCES = tests/test-io.c