forked from libsemigroups/libsemigroups
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
429 lines (352 loc) · 15 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
##############################################################################
# Automake configuration
##############################################################################
AM_CXXFLAGS = -I$(abs_top_srcdir)
AM_CXXFLAGS += -I$(abs_top_srcdir)/include
AM_CXXFLAGS += -I$(abs_top_srcdir)/extern
AM_CXXFLAGS += -std=gnu++11 -g -O3 -Wall -Wextra
AM_CXXFLAGS += $(WARNING_CXXFLAGS)
AM_CXXFLAGS += $(FMT_CFLAGS)
AM_LDFLAGS = -no-undefined -lpthread
if LIBSEMIGROUPS_DEBUG
AM_CPPFLAGS = -DDEBUG
AM_CXXFLAGS += -g3 -O0 -fno-omit-frame-pointer
else
AM_CPPFLAGS = -DNDEBUG
endif
if HPCOMBI_CONSTEXPR_FUN_ARGS
AM_CPPFLAGS += -DHPCOMBI_CONSTEXPR_FUN_ARGS
endif
AM_CPPFLAGS += $(CODE_COVERAGE_CPPFLAGS)
AM_CXXFLAGS += $(CODE_COVERAGE_CXXFLAGS)
AM_CPPFLAGS += -DFMT_HEADER_ONLY
LIBS = $(AM_LDFLAGS)
ACLOCAL_AMFLAGS = -I m4
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libsemigroups.pc
## We include libsemigroups-config.hpp in the distribution even though it is
## autogenerated by configure, for use with, for example, libsemigroups_cppyy
## libsemigroups headers
pkginclude_HEADERS = include/action.hpp
pkginclude_HEADERS += include/adapters.hpp
pkginclude_HEADERS += include/blocks.hpp
pkginclude_HEADERS += include/bmat8.hpp
pkginclude_HEADERS += include/bruidhinn-traits.hpp
pkginclude_HEADERS += include/cong-intf.hpp
pkginclude_HEADERS += include/cong-pair-impl.hpp
pkginclude_HEADERS += include/cong-pair.hpp
pkginclude_HEADERS += include/cong-wrap.hpp
pkginclude_HEADERS += include/cong.hpp
pkginclude_HEADERS += include/constants.hpp
pkginclude_HEADERS += include/containers.hpp
pkginclude_HEADERS += include/coset.hpp
pkginclude_HEADERS += include/digraph.hpp
pkginclude_HEADERS += include/element-helper.hpp
pkginclude_HEADERS += include/element.hpp
pkginclude_HEADERS += include/forest.hpp
pkginclude_HEADERS += include/fpsemi-intf.hpp
pkginclude_HEADERS += include/fpsemi.hpp
pkginclude_HEADERS += include/froidure-pin-base.hpp
pkginclude_HEADERS += include/froidure-pin-impl.hpp
pkginclude_HEADERS += include/froidure-pin.hpp
pkginclude_HEADERS += include/function-ref.hpp
pkginclude_HEADERS += include/hpcombi.hpp
pkginclude_HEADERS += include/int-range.hpp
pkginclude_HEADERS += include/iterator.hpp
pkginclude_HEADERS += include/kbe.hpp
pkginclude_HEADERS += include/knuth-bendix.hpp
pkginclude_HEADERS += include/libsemigroups-config.hpp
pkginclude_HEADERS += include/libsemigroups-debug.hpp
pkginclude_HEADERS += include/libsemigroups-exception.hpp
pkginclude_HEADERS += include/libsemigroups.hpp
pkginclude_HEADERS += include/obvinf.hpp
pkginclude_HEADERS += include/order.hpp
pkginclude_HEADERS += include/race.hpp
pkginclude_HEADERS += include/report.hpp
pkginclude_HEADERS += include/runner.hpp
pkginclude_HEADERS += include/schreier-sims.hpp
pkginclude_HEADERS += include/semiring.hpp
pkginclude_HEADERS += include/stl.hpp
pkginclude_HEADERS += include/string.hpp
pkginclude_HEADERS += include/tce.hpp
pkginclude_HEADERS += include/timer.hpp
pkginclude_HEADERS += include/todd-coxeter.hpp
pkginclude_HEADERS += include/transf.hpp
pkginclude_HEADERS += include/types.hpp
pkginclude_HEADERS += include/uf.hpp
if LIBSEMIGROUPS_HPCOMBI
hpcombiincludedir = $(includedir)/libsemigroups/HPCombi/include
hpcombiinclude_HEADERS = extern/HPCombi/include/bmat8.hpp
hpcombiinclude_HEADERS += extern/HPCombi/include/bmat8_impl.hpp
hpcombiinclude_HEADERS += extern/HPCombi/include/epu.hpp
hpcombiinclude_HEADERS += extern/HPCombi/include/epu_impl.hpp
hpcombiinclude_HEADERS += extern/HPCombi/include/hpcombi.hpp
hpcombiinclude_HEADERS += extern/HPCombi/include/perm16.hpp
hpcombiinclude_HEADERS += extern/HPCombi/include/perm16_impl.hpp
hpcombiinclude_HEADERS += extern/HPCombi/include/perm_generic.hpp
hpcombiinclude_HEADERS += extern/HPCombi/include/perm_generic_impl.hpp
hpcombiinclude_HEADERS += extern/HPCombi/include/power.hpp
hpcombiinclude_HEADERS += extern/HPCombi/include/testtools.hpp
hpcombiinclude_HEADERS += extern/HPCombi/include/vect16.hpp
hpcombiinclude_HEADERS += extern/HPCombi/include/vect_generic.hpp
hpcombifallbackincludedir = $(includedir)/libsemigroups/HPCombi/include/fallback
hpcombifallbackinclude_HEADERS = extern/HPCombi/include/fallback/gcdlcm.hpp
hpcombifallbackinclude_HEADERS += extern/HPCombi/include/fallback/seq.hpp
endif
fmtincludedir = $(includedir)/libsemigroups/fmt
fmtinclude_HEADERS = extern/fmt-5.3.0/include/fmt/chrono.h
fmtinclude_HEADERS += extern/fmt-5.3.0/include/fmt/color.h
fmtinclude_HEADERS += extern/fmt-5.3.0/include/fmt/core.h
fmtinclude_HEADERS += extern/fmt-5.3.0/include/fmt/format-inl.h
fmtinclude_HEADERS += extern/fmt-5.3.0/include/fmt/format.h
fmtinclude_HEADERS += extern/fmt-5.3.0/include/fmt/locale.h
fmtinclude_HEADERS += extern/fmt-5.3.0/include/fmt/ostream.h
fmtinclude_HEADERS += extern/fmt-5.3.0/include/fmt/posix.h
fmtinclude_HEADERS += extern/fmt-5.3.0/include/fmt/printf.h
fmtinclude_HEADERS += extern/fmt-5.3.0/include/fmt/ranges.h
fmtinclude_HEADERS += extern/fmt-5.3.0/include/fmt/time.h
lib_LTLIBRARIES = libsemigroups.la
## libsemigroups sources
libsemigroups_la_SOURCES = src/blocks.cpp
libsemigroups_la_SOURCES += src/bmat8.cpp
libsemigroups_la_SOURCES += src/cong-intf.cpp
libsemigroups_la_SOURCES += src/cong-pair.cpp
libsemigroups_la_SOURCES += src/cong.cpp
libsemigroups_la_SOURCES += src/coset.cpp
libsemigroups_la_SOURCES += src/element.cpp
libsemigroups_la_SOURCES += src/fpsemi-intf.cpp
libsemigroups_la_SOURCES += src/fpsemi.cpp
libsemigroups_la_SOURCES += src/froidure-pin-base.cpp
libsemigroups_la_SOURCES += src/knuth-bendix.cpp
libsemigroups_la_SOURCES += src/order.cpp
libsemigroups_la_SOURCES += src/race.cpp
libsemigroups_la_SOURCES += src/report.cpp
libsemigroups_la_SOURCES += src/runner.cpp
libsemigroups_la_SOURCES += src/tce.cpp
libsemigroups_la_SOURCES += src/todd-coxeter.cpp
libsemigroups_la_SOURCES += src/uf.cpp
libsemigroups_la_CPPFLAGS = $(AM_CPPFLAGS)
libsemigroups_la_CXXFLAGS = $(AM_CXXFLAGS)
## See https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html#Updating-version-info
libsemigroups_la_LDFLAGS = -version-info 1:0:0
## Extra files for the distribution
EXTRA_DIST = .clang-format
EXTRA_DIST += CPPLINT.cfg
EXTRA_DIST += LICENSE
EXTRA_DIST += README.rst
EXTRA_DIST += .VERSION
EXTRA_DIST += docs/
EXTRA_DIST += etc/make-doc-sphinx.sh
EXTRA_DIST += etc/make-doc-yml.sh
EXTRA_DIST += etc/make-format.sh
EXTRA_DIST += etc/make-lint.sh
EXTRA_DIST += extern/fmt-5.3.0
EXTRA_DIST += extern/HPCombi
EXTRA_DIST += extern/.HPCombi_VERSION
EXTRA_DIST += extern/.FMT_VERSION
EXTRA_DIST += src/kbe-impl.hpp
EXTRA_DIST += src/knuth-bendix-impl.hpp
EXTRA_DIST += tests/catch.hpp
EXTRA_DIST += tests/fpsemi-examples.hpp
EXTRA_DIST += tests/test-main.hpp
## For testing . . .
CHECK_PROG = ./test_all$(EXEEXT)
CHECK_FLAGS1 = --use-colour yes --order lex --abort
CHECK_FLAGS2 = [quick]
check_PROGRAMS = test_all
check_PROGRAMS += test_action
check_PROGRAMS += test_blocks
check_PROGRAMS += test_bmat8
check_PROGRAMS += test_cong_pair
check_PROGRAMS += test_cong
check_PROGRAMS += test_cong_intf
check_PROGRAMS += test_constants
check_PROGRAMS += test_containers
check_PROGRAMS += test_digraph
check_PROGRAMS += test_element
check_PROGRAMS += test_forest
check_PROGRAMS += test_fpsemi
check_PROGRAMS += test_fpsemi_intf
check_PROGRAMS += test_froidure_pin_bipart
check_PROGRAMS += test_froidure_pin_bmat8
check_PROGRAMS += test_froidure_pin_boolmat
check_PROGRAMS += test_froidure_pin_element
check_PROGRAMS += test_froidure_pin_integers
check_PROGRAMS += test_froidure_pin_intmat
check_PROGRAMS += test_froidure_pin_intpairs
check_PROGRAMS += test_froidure_pin_pbr
check_PROGRAMS += test_froidure_pin_pperm
check_PROGRAMS += test_froidure_pin_projmaxplus
check_PROGRAMS += test_froidure_pin_transf
check_PROGRAMS += test_froidure_pin_tropmaxplus
check_PROGRAMS += test_hpcombi
check_PROGRAMS += test_iterator
check_PROGRAMS += test_kbe
check_PROGRAMS += test_knuth_bendix
check_PROGRAMS += test_race
check_PROGRAMS += test_runner
check_PROGRAMS += test_schreier_sims
check_PROGRAMS += test_semiring
check_PROGRAMS += test_timer
check_PROGRAMS += test_todd_coxeter
check_PROGRAMS += test_uf
LDADD = libsemigroups.la
## Do not specify CXXFLAGS/CFLAGS/LDFLAGS because this causes a separate
## test-main.o executable to be generated for every test_* executable, which
## takes a serious amount of time.
test_all_SOURCES = tests/fpsemi-examples.cpp
test_all_SOURCES += tests/test-action.cpp
test_all_SOURCES += tests/test-blocks.cpp
test_all_SOURCES += tests/test-bmat8.cpp
test_all_SOURCES += tests/test-cong-intf.cpp
test_all_SOURCES += tests/test-cong-pair.cpp
test_all_SOURCES += tests/test-cong.cpp
test_all_SOURCES += tests/test-constants.cpp
test_all_SOURCES += tests/test-containers.cpp
test_all_SOURCES += tests/test-digraph.cpp
test_all_SOURCES += tests/test-element.cpp
test_all_SOURCES += tests/test-forest.cpp
test_all_SOURCES += tests/test-fpsemi.cpp
test_all_SOURCES += tests/test-fpsemi-intf.cpp
test_all_SOURCES += tests/test-froidure-pin-bipart.cpp
test_all_SOURCES += tests/test-froidure-pin-bmat8.cpp
test_all_SOURCES += tests/test-froidure-pin-boolmat.cpp
test_all_SOURCES += tests/test-froidure-pin-element.cpp
test_all_SOURCES += tests/test-froidure-pin-integers.cpp
test_all_SOURCES += tests/test-froidure-pin-intmat.cpp
test_all_SOURCES += tests/test-froidure-pin-intpairs.cpp
test_all_SOURCES += tests/test-froidure-pin-pbr.cpp
test_all_SOURCES += tests/test-froidure-pin-pperm.cpp
test_all_SOURCES += tests/test-froidure-pin-projmaxplus.cpp
test_all_SOURCES += tests/test-froidure-pin-transf.cpp
test_all_SOURCES += tests/test-froidure-pin-tropmaxplus.cpp
test_all_SOURCES += tests/test-hpcombi.cpp
test_all_SOURCES += tests/test-kbe.cpp
test_all_SOURCES += tests/test-knuth-bendix.cpp
test_all_SOURCES += tests/test-main.cpp
test_all_SOURCES += tests/test-race.cpp
test_all_SOURCES += tests/test-runner.cpp
test_all_SOURCES += tests/test-schreier-sims.cpp
test_all_SOURCES += tests/test-semiring.cpp
test_all_SOURCES += tests/test-timer.cpp
test_all_SOURCES += tests/test-todd-coxeter.cpp
test_all_SOURCES += tests/test-uf.cpp
test_action_SOURCES = tests/test-action.cpp
test_action_SOURCES += tests/test-main.cpp
test_blocks_SOURCES = tests/test-blocks.cpp
test_blocks_SOURCES += tests/test-main.cpp
test_bmat8_SOURCES = tests/test-bmat8.cpp
test_bmat8_SOURCES += tests/test-main.cpp
test_cong_intf_SOURCES = tests/test-cong-intf.cpp
test_cong_intf_SOURCES += tests/test-main.cpp
test_cong_pair_SOURCES = tests/test-cong-pair.cpp
test_cong_pair_SOURCES += tests/test-main.cpp
test_cong_SOURCES = tests/test-cong.cpp
test_cong_SOURCES += tests/fpsemi-examples.cpp
test_cong_SOURCES += tests/test-main.cpp
test_constants_SOURCES = tests/test-constants.cpp
test_constants_SOURCES += tests/test-main.cpp
test_containers_SOURCES = tests/test-containers.cpp
test_containers_SOURCES += tests/test-main.cpp
test_digraph_SOURCES = tests/test-digraph.cpp
test_digraph_SOURCES += tests/test-main.cpp
test_element_SOURCES = tests/test-element.cpp
test_element_SOURCES += tests/test-main.cpp
test_forest_SOURCES = tests/test-forest.cpp
test_forest_SOURCES += tests/test-main.cpp
test_fpsemi_SOURCES = tests/test-fpsemi.cpp
test_fpsemi_SOURCES += tests/fpsemi-examples.cpp
test_fpsemi_SOURCES += tests/test-main.cpp
test_fpsemi_intf_SOURCES = tests/test-fpsemi-intf.cpp
test_fpsemi_intf_SOURCES += tests/test-main.cpp
test_froidure_pin_bipart_SOURCES = tests/test-froidure-pin-bipart.cpp
test_froidure_pin_bipart_SOURCES += tests/test-main.cpp
test_froidure_pin_bmat8_SOURCES = tests/test-froidure-pin-bmat8.cpp
test_froidure_pin_bmat8_SOURCES += tests/test-main.cpp
test_froidure_pin_boolmat_SOURCES = tests/test-froidure-pin-boolmat.cpp
test_froidure_pin_boolmat_SOURCES += tests/test-main.cpp
test_froidure_pin_element_SOURCES = tests/test-froidure-pin-element.cpp
test_froidure_pin_element_SOURCES += tests/test-main.cpp
test_froidure_pin_integers_SOURCES = tests/test-froidure-pin-integers.cpp
test_froidure_pin_integers_SOURCES += tests/test-main.cpp
test_froidure_pin_intmat_SOURCES = tests/test-froidure-pin-intmat.cpp
test_froidure_pin_intmat_SOURCES += tests/test-main.cpp
test_froidure_pin_intpairs_SOURCES = tests/test-froidure-pin-intpairs.cpp
test_froidure_pin_intpairs_SOURCES += tests/test-main.cpp
test_froidure_pin_pbr_SOURCES = tests/test-froidure-pin-pbr.cpp
test_froidure_pin_pbr_SOURCES += tests/test-main.cpp
test_froidure_pin_pperm_SOURCES = tests/test-froidure-pin-pperm.cpp
test_froidure_pin_pperm_SOURCES += tests/test-main.cpp
test_froidure_pin_projmaxplus_SOURCES = tests/test-froidure-pin-projmaxplus.cpp
test_froidure_pin_projmaxplus_SOURCES += tests/test-main.cpp
test_froidure_pin_transf_SOURCES = tests/test-froidure-pin-transf.cpp
test_froidure_pin_transf_SOURCES += tests/test-main.cpp
test_froidure_pin_tropmaxplus_SOURCES = tests/test-froidure-pin-tropmaxplus.cpp
test_froidure_pin_tropmaxplus_SOURCES += tests/test-main.cpp
test_hpcombi_SOURCES = tests/test-hpcombi.cpp
test_hpcombi_SOURCES += tests/test-main.cpp
test_iterator_SOURCES = tests/test-iterator.cpp
test_iterator_SOURCES += tests/test-main.cpp
test_kbe_SOURCES = tests/test-kbe.cpp
test_kbe_SOURCES += tests/test-main.cpp
test_knuth_bendix_SOURCES = tests/test-knuth-bendix.cpp
test_knuth_bendix_SOURCES += tests/test-main.cpp
test_race_SOURCES = tests/test-race.cpp
test_race_SOURCES += tests/test-main.cpp
test_runner_SOURCES = tests/test-runner.cpp
test_runner_SOURCES += tests/test-main.cpp
test_schreier_sims_SOURCES = tests/test-schreier-sims.cpp
test_schreier_sims_SOURCES += tests/test-main.cpp
test_semiring_SOURCES = tests/test-semiring.cpp
test_semiring_SOURCES += tests/test-main.cpp
test_timer_SOURCES = tests/test-timer.cpp
test_timer_SOURCES += tests/test-main.cpp
test_todd_coxeter_SOURCES = tests/fpsemi-examples.cpp
test_todd_coxeter_SOURCES += tests/test-todd-coxeter.cpp
test_todd_coxeter_SOURCES += tests/test-main.cpp
test_uf_SOURCES = tests/test-uf.cpp
test_uf_SOURCES += tests/test-main.cpp
## Make targets
@CODE_COVERAGE_RULES@
all-local: libsemigroups.la
if LIBSEMIGROUPS_DEBUG
@echo "********************************************************************"
@echo "************************ Debug mode enabled ************************"
@echo "********************************************************************"
endif
clean-local:
rm -rf docs/build
rm -rf docs/source/_generated
rm -rf coverage/
clean-local-check:
rm -rf $(check_PROGRAMS)
rm -rf benchmark/src/build
rm -f benchmark/gbench/*.pyc
rm -f benchmark/gbench/__py_cache__/*.pyc
.PHONY: clean-local-check
distclean-local: distclean-local-check
rm -f include/libsemigroups-config.hpp
.PHONY: distclean-local-check
superclean: distclean
git clean -xdf --exclude *.swp --exclude *.swo
.PHONY: superclean
check:
$(CHECK_PROG) $(CHECK_FLAGS1) $(CHECK_FLAGS2)
check-standard: CHECK_FLAGS2 = [quick],[standard]
check-standard: check
check-all: CHECK_FLAGS2 =
check-all: check
.PHONY: check-standard, check-all
format:
@echo "Running clang-format . . .";
@etc/make-format.sh
lint:
@echo "Running cpplint . . .";
@etc/make-lint.sh
doc-yml:
@etc/make-doc-yml.sh
doc-sphinx:
@etc/make-doc-sphinx.sh
doc:
$(MAKE) doc-yml
$(MAKE) doc-sphinx