-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
71 lines (50 loc) · 2.1 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
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = -g -Wall -Wmissing-prototypes -Werror
AM_CPPFLAGS = -DSYSCONFDIR='"$(sysconfdir)"' \
-I$(srcdir)/src/util -I$(srcdir)/src/sd -I$(srcdir)/src/proto \
-I$(builddir)/src/daemon
check_PROGRAMS = tpafd tpaftest
TEST_CPPFLAGS=-I$(srcdir)/test -I$(srcdir)/test/utest
UTIL_SOURCES = src/util/util.c src/util/log.c src/util/plist.c \
src/util/pqueue.c src/util/slist.c src/util/pmap.c src/util/sbuf.c
SD_SOURCES = src/sd/flist.c src/sd/filter.c src/sd/props.c \
src/sd/pvalue.c src/sd/generation.c src/sd/service.c \
src/sd/sub.c src/sd/db.c src/sd/conn.c src/sd/client.c \
src/sd/sd_err.c src/sd/sd.c
TEST_SOURCES = test/utest/utest.c test/utest/utestreport.c \
test/utest/utesthumanreport.c test/testutil.c
UTIL_TC_SOURCES = test/util/pqueue_testcases.c test/util/pmap_testcases.c
SD_TC_SOURCES = test/sd/value_testcases.c test/sd/props_testcases.c \
test/sd/filter_testcases.c test/sd/sd_testcases.c
PROTO_SOURCES = src/proto/msg.c src/proto/proto_ta.c src/proto/proto_conn.c \
src/proto/server.c
DAEMON_SOURCES = src/daemon/main.c
tpaftest_SOURCES = $(UTIL_SOURCES) $(SD_SOURCES) $(PROTO_SOURCES) \
$(TEST_SOURCES) $(UTIL_TC_SOURCES) $(SD_TC_SOURCES)
tpaftest_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
tpaftest_LDFLAGS = -no-install
tpafd_SOURCES = $(UTIL_SOURCES) $(SD_SOURCES) $(PROTO_SOURCES) \
$(DAEMON_SOURCES)
tpafd_CPPFLAGS = $(AM_CPPFLAGS)
sbin_PROGRAMS = tpafd
distclean-local:
rm -rf autom4te.cache m4
rm -f Makefile.in aclocal.m4 compile config.guess include/stamp-h1 \
config.sub configure depcomp install-sh ltmain.sh missing \
common/config.h.in
find . -name \*~ -print0 | xargs -0 rm -f
tpaftest-run: tpaftest
./tpaftest -v -c $(TESTS)
tpaftest-run-valgrind: tpaftest
IN_VALGRIND=1 valgrind --tool=memcheck --leak-check=full -q \
--suppressions=./test/lttng.supp --num-callers=20 \
--error-exitcode=3 ./tpaftest -v -c $(TESTS)
BASIC_TEST_TARGETS=tpaftest-run
if VALGRIND
TEST_TARGETS=tpaftest-run-valgrind $(BASIC_TEST_TARGETS)
else
TEST_TARGETS=$(BASIC_TEST_TARGETS)
endif
check-local: $(TEST_TARGETS)
count:
@wc -l `git ls-files src | grep -E '\.[ch]{1}$$'`