-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
73 lines (55 loc) · 2.11 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
# Do not create dependencies while compiling
AUTOMAKE_OPTIONS = no-dependencies
EXTRA_DIST = License README.md t config
AM_CFLAGS = -fPIC -Wall -Wextra -Iinclude/ $(XML_CPPFLAGS) $(LIBCURL_CPPFLAGS) -I$(top_srcdir)
fernlibdir = $(libdir)/
fernincdir = $(includedir)/fern
fernlib_LIBRARIES = libfern.a libpile.a
ferninc_HEADERS = array.h request.h event.h station.h \
stationreq.h datareq.h meta.h \
miniseed_sac.h cprint.h fern.h urls.h
bin_PROGRAMS = fern
fern_LDADD = libfern.a libpile.a $(XML_LIBS) $(LIBCURL)
libfern_a_SOURCES = cJSON.c cJSON.h \
datareq.c datareq.h \
event.c event.h \
json.c json.h \
meta.c meta.h \
miniseed_sac.c miniseed_sac.h \
quake_xml.c \
request.c request.h \
response.c response.h \
slurp.c slurp.h \
station.c station.h \
stationreq.c stationreq.h \
strip.c strip.h \
xml.c xml.h \
fern.h urls.h defs.h \
array.h request.h event.h station.h \
stationreq.h datareq.h meta.h \
miniseed_sac.h cprint.h
libpile_a_SOURCES = chash.c chash.h array.c array.h cprint.c cprint.h
TEST_EXTENSIONS = .sh
TESTS = t/test_event.sh t/test_station.sh t/test_station_event.sh \
t/test_avail.sh t/test_miniseed.sh t/test_sac.sh \
t/eventsearch t/stationsearch t/datadownload
check_PROGRAMS = t/eventsearch t/stationsearch t/datadownload
t_eventsearch_SOURCES = t/event_search.c
t_eventsearch_LDADD = libfern.a libpile.a $(XML_LIBS) $(LIBCURL)
t_stationsearch_SOURCES = t/station_search.c
t_stationsearch_LDADD = libfern.a libpile.a $(XML_LIBS) $(LIBCURL)
t_datadownload_SOURCES = t/data_download.c
t_datadownload_LDADD = libfern.a libpile.a $(XML_LIBS) $(LIBCURL)
CLEANFILES = t/*.test t/test_miniseed*mseed
doc:
doxygen docs/Doxyfile
distclean-local:
-rm -rf autom4te.cache
test: check
disttest:
make clean
make
make test
make dist
tar -zxf $(PACKAGE)-$(VERSION).tar.gz
cd $(PACKAGE)-$(VERSION) && ./configure && make && make test