-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
196 lines (165 loc) · 6.73 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
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# Put compiled object files into the same sub-directory as their sources
AUTOMAKE_OPTIONS = subdir-objects
# Point to our macro directory and pick up user flags from the environment
ACLOCAL_AMFLAGS = -I macros ${ACLOCAL_FLAGS}
# Make warnings always fatal at distcheck time, and disable execution
# of tools that change files not installed by the package itself
DISTCHECK_CONFIGURE_FLAGS = --enable-warnings=fatal --disable-update-mime-database
if ENABLE_DOCUMENTATION
doc_subdirs = docs
else
doc_subdirs =
endif
SUBDIRS = $(doc_subdirs)
dist_noinst_SCRIPTS = autogen.sh
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = $(MURRAYC_TUPLE_UTILS_MODULE_NAME).pc
# Put the CMake build files in the tarball created by autotools' "make distcheck".
dist_noinst_DATA = CMakeLists.txt \
cmake_uninstall.cmake.in \
tests/CMakeLists.txt
include $(top_srcdir)/tuple-utils/filelist.am
lib_LTLIBRARIES = libmurrayc-tuple-utils-@[email protected]
libmurrayc_tuple_utils_@MURRAYC_TUPLE_UTILS_API_VERSION@_la_SOURCES = $(cc_sources) $(h_sources_public)
libmurrayc_tuple_utils_@MURRAYC_TUPLE_UTILS_API_VERSION@_la_LDFLAGS = -no-undefined -version-info $(LIBMURRAYC_TUPLE_UTILS_SO_VERSION)
#libmurrayc_tuple_utils_@MURRAYC_TUPLE_UTILS_API_VERSION@_la_LIBADD = $(LIBXMLXX_LIBS)
library_includedir = $(includedir)/$(MURRAYC_TUPLE_UTILS_MODULE_NAME)
nobase_library_include_HEADERS = $(h_sources_public)
# Build googletest:
gtest_top = googletest/googletest
gtest_top_srcdir = $(top_srcdir)/$(gtest_top)
check_LTLIBRARIES = libgtest.la
# TODO: Use the gtest_top variable when we know we are always using automake >= 1.16
# ( See the mention of bug 13928 in https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00008.html )
# Otherwise, the build will fail because it looks for .Plo files in a deps/ directory in a path that mentions
# the actual variable name, not the variable's expanded value.
#
# libgtest_la_SOURCES = $(gtest_top)/src/gtest-all.cc \
# $(gtest_top)/src/gtest_main.cc
libgtest_la_SOURCES = googletest/googletest/src/gtest-all.cc \
googletest/googletest/src/gtest_main.cc
libgtest_la_CPPFLAGS = -I$(gtest_top_srcdir)/include -I$(gtest_top_srcdir) \
$(PROJECT_GTEST_WXXFLAGS)
libgtest_la_LDFLAGS = -pthread
EXTRA_DIST = $(gtest_top_srcdir)/src/gtest-all.cc \
$(gtest_top_srcdir)/src/gtest-filepath.cc \
$(gtest_top_srcdir)/src/gtest-printers.cc \
$(gtest_top_srcdir)/src/gtest.cc \
$(gtest_top_srcdir)/src/gtest_main.cc \
$(gtest_top_srcdir)/src/gtest-matchers.cc \
$(gtest_top_srcdir)/src/gtest-test-part.cc \
$(gtest_top_srcdir)/src/gtest-death-test.cc \
$(gtest_top_srcdir)/src/gtest-port.cc \
$(gtest_top_srcdir)/src/gtest-typed-test.cc \
$(gtest_top_srcdir)/src/gtest-internal-inl.h \
$(gtest_top_srcdir)/include/gtest/gtest-death-test.h \
$(gtest_top_srcdir)/include/gtest/gtest_pred_impl.h \
$(gtest_top_srcdir)/include/gtest/gtest-test-part.h \
$(gtest_top_srcdir)/include/gtest/gtest.h \
$(gtest_top_srcdir)/include/gtest/gtest-printers.h \
$(gtest_top_srcdir)/include/gtest/gtest-typed-test.h \
$(gtest_top_srcdir)/include/gtest/gtest-matchers.h \
$(gtest_top_srcdir)/include/gtest/gtest-message.h \
$(gtest_top_srcdir)/include/gtest/gtest_prod.h \
$(gtest_top_srcdir)/include/gtest/gtest-param-test.h \
$(gtest_top_srcdir)/include/gtest/gtest-spi.h \
$(gtest_top_srcdir)/include/gtest/internal/gtest-death-test-internal.h \
$(gtest_top_srcdir)/include/gtest/internal/gtest-port-arch.h \
$(gtest_top_srcdir)/include/gtest/internal/gtest-filepath.h \
$(gtest_top_srcdir)/include/gtest/internal/gtest-port.h \
$(gtest_top_srcdir)/include/gtest/internal/gtest-internal.h \
$(gtest_top_srcdir)/include/gtest/internal/gtest-string.h \
$(gtest_top_srcdir)/include/gtest/internal/gtest-type-util.h \
$(gtest_top_srcdir)/include/gtest/internal/gtest-param-util.h \
$(gtest_top_srcdir)/include/gtest/internal/custom/gtest.h \
$(gtest_top_srcdir)/include/gtest/internal/custom/gtest-printers.h \
$(gtest_top_srcdir)/include/gtest/internal/custom/gtest-port.h
COMMON_CXXFLAGS = $(PROJECT_CFLAGS) $(PROJECT_WXXFLAGS) $(BOOST_CPPFLAGS)
COMMON_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) \
-isystem $(gtest_top_srcdir)/include
COMMON_LIBS = $(PROJECT_LIBS) libgtest.la
check_PROGRAMS = \
tests/test_tuple_cat \
tests/test_tuple_cdr \
tests/test_tuple_end \
tests/test_tuple_for_each \
tests/test_tuple_interlace \
tests/test_tuple_print \
tests/test_tuple_start \
tests/test_tuple_subset \
tests/test_tuple_transform_each
TESTS = $(check_PROGRAMS)
#List of source files needed to build the executable:
tests_test_tuple_cat_SOURCES = \
tests/test_tuple_cat.cc
tests_test_tuple_cat_CPPFLAGS = \
$(COMMON_CPPFLAGS)
tests_test_tuple_cat_CXXFLAGS = \
$(COMMON_CXXFLAGS)
tests_test_tuple_cat_LDADD = \
$(COMMON_LIBS)
tests_test_tuple_cdr_SOURCES = \
tests/test_tuple_cdr.cc
tests_test_tuple_cdr_CPPFLAGS = \
$(COMMON_CPPFLAGS)
tests_test_tuple_cdr_CXXFLAGS = \
$(COMMON_CXXFLAGS)
tests_test_tuple_cdr_LDADD = \
$(COMMON_LIBS)
tests_test_tuple_end_SOURCES = \
tests/test_tuple_end.cc
tests_test_tuple_end_CPPFLAGS = \
$(COMMON_CPPFLAGS)
tests_test_tuple_end_CXXFLAGS = \
$(COMMON_CXXFLAGS)
tests_test_tuple_end_LDADD = \
$(COMMON_LIBS)
tests_test_tuple_for_each_SOURCES = \
tests/test_tuple_for_each.cc
tests_test_tuple_for_each_CPPFLAGS = \
$(COMMON_CPPFLAGS)
tests_test_tuple_for_each_CXXFLAGS = \
$(COMMON_CXXFLAGS)
tests_test_tuple_for_each_LDADD = \
$(COMMON_LIBS)
tests_test_tuple_interlace_SOURCES = \
tests/test_tuple_interlace.cc
tests_test_tuple_interlace_CPPFLAGS = \
$(COMMON_CPPFLAGS)
tests_test_tuple_interlace_CXXFLAGS = \
$(COMMON_CXXFLAGS)
tests_test_tuple_interlace_LDADD = \
$(COMMON_LIBS)
tests_test_tuple_print_SOURCES = \
tests/test_tuple_print.cc
tests_test_tuple_print_CPPFLAGS = \
$(COMMON_CPPFLAGS)
tests_test_tuple_print_CXXFLAGS = \
$(COMMON_CXXFLAGS)
tests_test_tuple_print_LDADD = \
$(COMMON_LIBS)
tests_test_tuple_start_SOURCES = \
tests/test_tuple_start.cc
tests_test_tuple_start_CPPFLAGS = \
$(COMMON_CPPFLAGS)
tests_test_tuple_start_CXXFLAGS = \
$(COMMON_CXXFLAGS)
tests_test_tuple_start_LDADD = \
$(COMMON_LIBS)
tests_test_tuple_subset_SOURCES = \
tests/test_tuple_subset.cc
tests_test_tuple_subset_CPPFLAGS = \
$(COMMON_CPPFLAGS)
tests_test_tuple_subset_CXXFLAGS = \
$(COMMON_CXXFLAGS)
tests_test_tuple_subset_LDADD = \
$(COMMON_LIBS)
tests_test_tuple_transform_each_SOURCES = \
tests/test_tuple_transform_each.cc
tests_test_tuple_transform_each_CPPFLAGS = \
$(COMMON_CPPFLAGS)
tests_test_tuple_transform_each_CXXFLAGS = \
$(COMMON_CXXFLAGS)
tests_test_tuple_transform_each_LDADD = \
$(COMMON_LIBS)
CLEANFILES = stamp-h2