File: Makefile.am

package info (click to toggle)
mmlib 1.4.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,716 kB
  • sloc: ansic: 18,071; makefile: 431; sh: 135; python: 63
file content (159 lines) | stat: -rw-r--r-- 2,995 bytes parent folder | download
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
eol=

SUBDIRS = handmaid

clean-local:
	$(RM) *.gcno *.gcda

AM_CPPFLAGS = \
	-I$(top_srcdir)/src \
	-DLOCALEDIR=\"$(localedir)\" \
	-DBUILDDIR=\"$(abs_builddir)\" \
	-DEXEEXT=\"$(EXEEXT)\" \
	-DTOP_BUILDDIR=\"$(abs_top_builddir)\" \
	-DSRCDIR=\"$(abs_srcdir)\" \
	$(CHECK_CPPFLAGS) \
	$(eol)
AM_CFLAGS = $(CHECK_CFLAGS) $(MM_WARNFLAGS)
MMLIB = $(top_builddir)/src/libmmlib.la

TEST_EXTENSIONS = .test .tap

#if check support TAP output, make use of it
if TAP_SUPPORT_IN_CHECK
AM_CPPFLAGS += -DCHECK_SUPPORT_TAP
TAP_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
                 $(top_srcdir)/build-aux/tap-driver.sh
else
TAP_LOG_DRIVER = $(LOG_DRIVER)
endif #TAP_SUPPORT_IN_CHECK

TESTS = \
	testlog \
	testerrno \
	testprofile \
	$(eol)

if BUILD_CHECK_TESTS
TESTS += \
	testinternals.tap \
	testapi.tap \
	$(eol)
endif

check_LTLIBRARIES = dynlib-test.la

check_PROGRAMS = \
	$(TESTS) \
	child-proc \
	perflock \
	tests-child-proc \
	$(eol)

testlog_SOURCES = testlog.c
testlog_LDADD = $(MMLIB)

testerrno_SOURCES = testerrno.c
testerrno_LDADD = $(MMLIB)

testprofile_SOURCES = testprofile.c
testprofile_LDADD = $(MMLIB)

child_proc_SOURCES = child-proc.c
child_proc_LDADD = $(MMLIB)

perflock_SOURCES = perflock.c
perflock_LDADD = $(MMLIB)

dynlib_test_la_SOURCES = \
	dynlib-api.h \
	dynlib-test.c \
	$(eol)
dynlib_test_la_LDFLAGS= \
	-module \
	-avoid-version \
	-no-undefined \
	-rpath /nowhere \
	$(eol)

testinternals_tap_SOURCES = \
	internals-testcases.h \
	testinternals.c \
	log-internals.c \
	$(eol)
testinternals_tap_LDADD = \
	$(CHECK_LIBS) \
	@LTLIBINTL@ \
	../src/libmmlib-internal-wrapper.la \
	$(eol)
testinternals_tap_CPPFLAGS = $(AM_CPPFLAGS)

if OS_TYPE_WIN32

testinternals_tap_SOURCES += \
	startup-win32-internals.c \
	$(eol)

testinternals_tap_CPPFLAGS += \
	-DMMLIB_API=API_EXPORTED \
	-DWIN32_LEAN_AND_MEAN \
	-D_WIN32_WINNT=_WIN32_WINNT_WIN8 \
	$(eol)

endif

testapi_tap_SOURCES = \
	testapi.c \
	api-testcases.h \
	tests-child-proc.h \
	tests-run-func.c \
	alloc-api-tests.c \
	time-api-tests.c \
	thread-api-tests.c \
	threaddata-manipulation.h \
	threaddata-manipulation.c \
	file-api-tests.c \
	socket-api-tests.c \
	socket-testlib.h \
	socket-testlib.c \
	ipc-api-tests.c \
	ipc-api-tests-exported.c \
	ipc-api-tests-exported.h \
	shm-api-tests.c \
	dirtests.c \
	dlfcn-api-tests.c \
	process-api-tests.c \
	process-testlib.c \
	process-testlib.h \
	argparse-api-tests.c \
	utils-api-tests.c \
	file_advanced_tests.c \
	$(eol)

testapi_tap_LDADD = \
	$(CHECK_LIBS) \
	$(MMLIB) \
	$(eol)

tests_child_proc_SOURCES = \
	tests-child-proc.c \
	tests-child-proc.h \
	process-testlib.c \
	process-testlib.h \
	threaddata-manipulation.h \
	threaddata-manipulation.c \
	socket-testlib.h \
	socket-testlib.c \
	ipc-api-tests-exported.c \
	ipc-api-tests-exported.h \
	$(eol)
tests_child_proc_LDADD = $(MMLIB)
tests_child_proc_LDFLAGS = \
	-export-dynamic \
	$(eol)

tests_child_proc_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	-DMMLOG_MODULE_NAME=\"tests_child_proc\" \
	$(eol)