summaryrefslogtreecommitdiffstats
path: root/test/Makefile.am
blob: d48109a268f667c2e11e2260fc95eaf05fe6c02e (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
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

bin_PROGRAMS = \
	interface_test interface_test_unit \
	fileop_test_utils \
	fileop_test_set_get_remove \
	fileop_test_unit \
	file_util_test

interface_test_SOURCES = \
	interface_test.cpp \
	../lib/static-configurator.c \
	../lib/file-util.c \
	../lib/fileop.c

interface_test_unit_SOURCES = \
	interface_test_unit.cpp \
	../lib/static-configurator.c \
	../lib/file-util.c \
	../lib/fileop.c

fileop_test_utils_SOURCES = \
	fileop_test_utils.cpp \
	../lib/static-configurator.c \
	../lib/file-util.c

fileop_test_set_get_remove_SOURCES = \
	fileop_test_set_get_remove.cpp \
	../lib/static-configurator.c \
	../lib/file-util.c


fileop_test_unit_SOURCES = \
	fileop_test_unit.cpp \
	../lib/static-configurator.c

file_util_test_SOURCES = \
	file_util_test.cpp

# options
# Additional library
LDADD = \
	-lrt -lpthread \
	@GTEST_MAIN_LIBS@ \
	@GMOCK_MAIN_LIBS@

interface_test_LDADD = \
	${LDADD}

# C compiler options
CFLAGS = \
	-g \
	-fpermissive \
	-fsanitize=address -coverage \
	-I$(top_srcdir)/lib \
	-I$(top_srcdir)/include \
	-D_GNU_SOURCE

# C++ compiler options
CXXFLAGS = \
	-g \
	-fpermissive \
	-std=c++11 -fno-exceptions \
	-fsanitize=address -coverage \
	-I$(top_srcdir)/lib \
	-I$(top_srcdir)/include \
	-D_GNU_SOURCE

# Linker options
LDFLAGS =


CLEANFILES = *.gcda *.gcno