summaryrefslogtreecommitdiff
path: root/test/Makefile.am
blob: ff5819893f7e862dd3aae3e4a0a5d60253da4579 (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
AUTOMAKE_OPTIONS = foreign

if DEBUG
AM_CFLAGS = $(DEPS_CFLAGS) $(CHECK_CFLAGS) -g -Og
#AM_CFLAGS = -fprofile-arcs -ftest-coverage  $(DEPS_CFLAGS) $(CHECK_CFLAGS) -g
else
AM_CFLAGS = $(DEPS_CFLAGS) $(CHECK_CFLAGS)
#AM_CFLAGS = -fprofile-arcs -ftest-coverage $(DEPS_CFLAGS) $(CHECK_CFLAGS)
endif

noinst_PROGRAMS = persistence_client_library_test \
                  persistence_client_library_test_file \
                  persistence_client_library_dbus_test  \
                  persistence_client_library_benchmark

persistence_client_library_dbus_test_SOURCES = persistence_client_library_dbus_test.c
persistence_client_library_dbus_test_LDADD = $(DEPS_LIBS)  \
   $(top_builddir)/src/libpersistence_client_library.la

persistence_client_library_test_SOURCES = persistence_client_library_test.c persistence_env_checker.c
persistence_client_library_test_LDADD = $(DEPS_LIBS) $(CHECK_LIBS) \
   $(top_builddir)/src/libpersistence_client_library.la

persistence_client_library_test_file_SOURCES = persistence_client_library_test_file.c  persistence_env_checker.c
persistence_client_library_test_file_LDADD = $(DEPS_LIBS) $(CHECK_LIBS) \
   $(top_builddir)/src/libpersistence_client_library.la

persistence_client_library_benchmark_SOURCES = persistence_client_library_benchmark.c
persistence_client_library_benchmark_LDADD = $(DEPS_LIBS) $(CHECK_LIBS) \
   $(top_builddir)/src/libpersistence_client_library.la
   
TESTS=persistence_client_library_test persistence_client_library_test_file



lib_LTLIBRARIES = libearlyperscustom.la 
libearlyperscustom_la_SOURCES = persistence_test_customlib.c
libearlyperscustom_la_LDFLAGS = -avoid-version -module -shared -export-dynamic $(LDFLAGS)
libearlyperscustom_la_CFLAGS = -DLIBIDENT='"early"'

lib_LTLIBRARIES += libsecureperscustom.la 
libsecureperscustom_la_SOURCES = persistence_test_customlib.c
libsecureperscustom_la_LDFLAGS = -avoid-version -module -shared -export-dynamic $(LDFLAGS)
libsecureperscustom_la_CFLAGS = -DLIBIDENT='"secure"'


lib_LTLIBRARIES += libhwinfoperscustom.la
libhwinfoperscustom_la_SOURCES = persistence_test_customlib.c
libhwinfoperscustom_la_LDFLAGS = -avoid-version -module -shared -export-dynamic $(LDFLAGS)
libhwinfoperscustom_la_CFLAGS = -DLIBIDENT='"hwinfo"' 

lib_LTLIBRARIES += libcustom1perscustom.la 
libcustom1perscustom_la_SOURCES = persistence_test_customlib.c
libcustom1perscustom_la_LDFLAGS = -avoid-version -module -shared -export-dynamic $(LDFLAGS)
libcustom1perscustom_la_CFLAGS = -DLIBIDENT='"custom1"' 

lib_LTLIBRARIES += libemergencyperscustom.la 
libemergencyperscustom_la_SOURCES = persistence_test_customlib.c
libemergencyperscustom_la_LDFLAGS = -avoid-version -module -shared -export-dynamic $(LDFLAGS)
libemergencyperscustom_la_CFLAGS = -DLIBIDENT='"emergency"' 

lib_LTLIBRARIES += libcustom2perscustom.la 
libcustom2perscustom_la_SOURCES = persistence_test_customlib.c
libcustom2perscustom_la_LDFLAGS = -avoid-version -module -shared -export-dynamic $(LDFLAGS)
libcustom2perscustom_la_CFLAGS = -DLIBIDENT='"custom2"'

lib_LTLIBRARIES += libcustom3perscustom.la 
libcustom3perscustom_la_SOURCES = persistence_test_customlib.c
libcustom3perscustom_la_LDFLAGS = -avoid-version -module -shared -export-dynamic $(LDFLAGS) 
libcustom3perscustom_la_CFLAGS = -DLIBIDENT='"custom3"'