forked from digraphs/Digraphs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
68 lines (54 loc) · 1.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
#
# digraphs:
#
# This file is part of the build system of a GAP kernel extension.
# Requires automake.
#
ACLOCAL_AMFLAGS = -I m4
BINARCHDIR = bin/$(GAPARCH)
GAPINSTALLLIB = $(abs_top_srcdir)/$(BINARCHDIR)/digraphs.so
lib_LTLIBRARIES = digraphs.la
digraphs_la_SOURCES = src/digraphs.c src/homos.c src/perms.c src/schreier-sims.c
digraphs_la_SOURCES += src/bliss-0.73/defs.cc src/bliss-0.73/graph.cc
digraphs_la_SOURCES += src/bliss-0.73/partition.cc src/bliss-0.73/orbit.cc
digraphs_la_SOURCES += src/bliss-0.73/uintseqhash.cc src/bliss-0.73/heap.cc
digraphs_la_SOURCES += src/bliss-0.73/timer.cc src/bliss-0.73/utils.cc
digraphs_la_SOURCES += src/bliss-0.73/bliss_C.cc
digraphs_la_CXXFLAGS = -O3 -march=native -mpopcnt
digraphs_la_CFLAGS = -O3 -march=native -mpopcnt
digraphs_la_CPPFLAGS = $(GAP_CPPFLAGS) -DCONFIG_H
# Note that the latter is only for GAP 4.4.12
digraphs_la_LDFLAGS = -module -avoid-version
if SYS_IS_CYGWIN
digraphs_la_LDFLAGS += -no-undefined -version-info 0:0:0 -Wl,$(GAPROOT)/bin/$(GAPARCH)/gap.dll
endif
all-local: digraphs.la
$(mkdir_p) $(top_srcdir)/$(BINARCHDIR)
if SYS_IS_CYGWIN
cp .libs/digraphs.dll $(GAPINSTALLLIB)
else
cp .libs/digraphs.so $(GAPINSTALLLIB)
endif
if KERNEL_DEBUG
@echo "SUCCESS (debug mode enabled)!"
else
@echo "SUCCESS!"
endif
distclean-local:
rm -rf bin/*
doc: doc/manual.six
doc/manual.six: doc/*.xml PackageInfo.g
($(GAPROOT)/bin/gap.sh -A makedoc.g)
gaplint:
gaplint *.g gap/*
gaplint doc/*.xml
gaplint tst/testinstall.tst tst/standard/*.tst tst/extreme/*.tst tst/workspaces/*.tst
cpplint:
cpplint src/*.[ch]
lint: gaplint cpplint
format:
clang-format -i src/*.[hc]
.PHONY: debug, lint, format
superclean: distclean
git clean -xdf --exclude *.swp --exclude *.swo
.PHONY: superclean