forked from gap-packages/datastructures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
41 lines (32 loc) · 1018 Bytes
/
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
ACLOCAL_AMFLAGS = -I m4
BINARCHDIR = bin/$(GAPARCH)
GAPINSTALLLIB = $(abs_top_srcdir)/$(BINARCHDIR)/datastructures.so
lib_LTLIBRARIES = datastructures.la
datastructures_la_SOURCES = \
src/binaryheap.c \
src/binaryheap.h \
src/hashmap.c \
src/hashmap.h \
src/datastructures.c \
src/hashfunctions.c
datastructures_la_CPPFLAGS = $(GAP_CPPFLAGS) -DCONFIG_H
# Note that the latter is only for GAP 4.4.12
datastructures_la_LDFLAGS = -module -avoid-version -Bsymbolic
if SYS_IS_CYGWIN
datastructures_la_LDFLAGS += -no-undefined -version-info 0:0:0 -Wl,$(GAPROOT)/bin/$(GAPARCH)/gap.dll
endif
all-local: datastructures.la
$(mkdir_p) $(top_srcdir)/$(BINARCHDIR)
if SYS_IS_CYGWIN
cp .libs/datastructures.dll $(GAPINSTALLLIB)
else
cp .libs/datastructures.so $(GAPINSTALLLIB)
endif
@echo "SUCCESS!"
distclean-local:
rm -rf bin/*
(cd doc ; ./clean)
doc: doc/manual.six
doc/manual.six: doc/*.xml gap/*.g* src/*.* PackageInfo.g
($(GAPROOT)/bin/gap.sh -A --quitonbreak < makedoc.g)
.PHONY: doc