Makefile.am 1.88 KB
Newer Older
1 2 3 4 5 6 7
ACLOCAL_AMFLAGS = -I m4

AUTOMAKE_OPTIONS = \
	dist-xz \
	dist-bzip2 \
	dist-zip

8 9 10 11
AM_DISTCHECK_CONFIGURE_FLAGS ?= \
	--disable-maintainer-mode \
	--enable-extended-tests

12 13 14
AM_CFLAGS = -g -Wall -O3

## Library versioning (C:R:A == current:revision:age)
15 16 17 18
## 0.999b 0:0:0
## 0.999c 1:0:0
## 0.999e 2:0:0
LIBAPOPHENIA_LT_VERSION = 2:0:0
19

20
SUBDIRS = transform model . cmd eg tests docs
21 22 23 24


include_HEADERS = apop.h

25
pkgconfigdir = $(libdir)/pkgconfig
26 27
pkgconfig_DATA= apophenia.pc

28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
lib_LTLIBRARIES = libapophenia.la

libapophenia_la_LD_VERSION_SCRIPT=
if HAVE_LD_VERSION_SCRIPT
libapophenia_la_LD_VERSION_SCRIPT+= -Wl,--version-script=$(top_srcdir)/apophenia.map
endif

SUBLIBS = \
	libapopkernel.la \
	transform/libapoptransform.la \
	model/libapopmodel.la

libapophenia_la_SOURCES = \
	asprintf.c

noinst_LTLIBRARIES = libapopkernel.la

noinst_HEADERS = apop_internal.h
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
libapopkernel_la_SOURCES = \
	apop_arms.c \
	apop_asst.c \
	apop_bootstrap.c \
	apop_conversions.c \
	apop_data.c \
	apop_db.c \
	apop_fexact.c \
	apop_hist.c \
	apop_linear_algebra.c \
	apop_linear_constraint.c \
	apop_mapply.c \
	apop_mcmc.c \
	apop_missing_data.c \
	apop_mle.c apop_model.c \
	apop_name.c \
	apop_output.c \
	apop_rake.c \
	apop_regression.c \
	apop_settings.c \
	apop_sort.c \
	apop_stats.c \
	apop_tests.c \
	apop_update.c	\
	apop_vtables.c
72

73 74 75
apop_db_INCLUDES = \
	apop_db_mysql.c \
	apop_db_sqlite.c
76

77
apop_db.c: $(apop_db_INCLUDES)
78

79 80 81 82 83 84
libapopkernel_la_CFLAGS = \
	$(PTHREAD_CFLAGS) \
	$(OPENMP_CFLAGS) \
	$(MYSQL_CFLAGS) \
	$(SQLITE3_CFLAGS) \
	$(GSL_CFLAGS)
85

86 87 88
libapophenia_la_LDFLAGS = \
	-version-info $(LIBAPOPHENIA_LT_VERSION) \
	$(libapophenia_la_LD_VERSION_SCRIPT)
89

90 91 92 93 94 95 96
libapophenia_la_LIBADD = \
	$(SUBLIBS) \
	$(MYSQL_LDFLAGS) \
	$(SQLITE3_LDFLAGS) \
	$(GSL_LIBS) \
	$(PTHREAD_LIBS) \
	$(LIBM)
97

98 99 100 101
EXTRA_DIST = \
	rpm.spec \
	apophenia.pc.in \
	apophenia.map
102

103 104
EXTRA_DIST += \
	$(apop_db_INCLUDES)
105

106
## compatibility
107
doc:
108
	-$(MAKE) -C docs doc