-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
69 lines (51 loc) · 1.56 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
# Do not create dependencies while compiling
AUTOMAKE_OPTIONS = no-dependencies
EXTRA_DIST = License README.md t config docs
AM_CFLAGS = -fPIC -Wall -Wextra
saciolibdir = $(libdir)/
sacioincdir = $(includedir)/sacio
saciolib_LIBRARIES = libsacio_bsd.a
sacioinc_HEADERS = sacio.h timespec.h
libsacio_bsd_a_SOURCES = sacio.c geodesic.c timespec.c \
time64.c strip.c compat.c \
header_map.c defs.h \
time64.h geodesic.h strip.h \
time64_limits.h \
sacio.h timespec.h \
header_map.txt \
enums.txt enums.c
# TESTS
LDADD = libsacio_bsd.a -lm
TESTS = t/iotest t/compat t/dur t/time t/ver t/cut t/cutim t/alpha t/snippets
check_PROGRAMS = t/extract t/iotest t/compat t/dur t/time t/ver t/cut t/cutim t/alpha t/snippets
t_iotest_SOURCES = t/iotest.c
t_compat_SOURCES = t/compat.c
t_dur_SOURCES = t/dur.c
t_time_SOURCES = t/time.c
t_ver_SOURCES = t/ver.c
t_cut_SOURCES = t/cut.c
t_cutim_SOURCES = t/cutim.c
t_alpha_SOURCES = t/alpha.c
t_snippets_SOURCES = t/snippets.c
t_extract_SOURCES = t/extract.c
t/snippets.c: t/extract$(EXEEXT)
./t/extract$(EXEEXT) t/snippets.c sacio.c timespec.c compat.c
CLEANFILES = t/test*.tmp
doc:
doxygen docs/Doxyfile
distclean-local:
-rm -rf autom4te.cache
-rm -rf t/*.dSYM
-rm -f t/snippets.c
header_map.c: header_map.txt
gperf $< > $@
enums.c: enums.txt
gperf $< > $@
test: check
disttest:
make clean
make
make test
make dist
tar -zxf $(PACKAGE)-$(VERSION).tar.gz
cd $(PACKAGE)-$(VERSION) && ./configure && make && make test