-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.am
60 lines (51 loc) · 1.6 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
# Don't require GNU-standard files (Changelog, README, etc.)
AUTOMAKE_OPTIONS = foreign
# Don't loose the autoconf include path
ACLOCAL_AMFLAGS = -I m4
# Subdirectories to build
SUBDIRS = . python
if ENABLE_utils
SUBDIRS += utils
AM_CPPFLAGS += -I$(top_srcdir)/utils
endif
if ENABLE_algs
SUBDIRS += algs
AM_CPPFLAGS += -I$(top_srcdir)/algs
endif
if ENABLE_rgg
SUBDIRS += rgg
AM_CPPFLAGS += -I$(top_srcdir)/rgg
endif
if ENABLE_src
SUBDIRS += src
AM_CPPFLAGS += -I$(top_srcdir)/src
endif
if ENABLE_intassign
AM_CPPFLAGS += -I$(top_srcdir)/src/algs/IntervalAssignment $(IPOPT_CPPFLAGS)
AM_LDFLAGS += $(IPOPT_LDFLAGS)
LIBS += $(IPOPT_LIBS)
endif
#if HAVE_CAMAL
# SUBDIRS += camal
# AM_CPPFLAGS += -I$(top_srcdir)/camal
#endif
SUBDIRS += test doc
# Some variables
AM_CPPFLAGS += -I$(top_builddir) -I$(top_srcdir) $(DEFINES)
check_PROGRAMS =
TESTS = $(check_PROGRAMS)
EXTRA_DIST = MKDefines.h data
# Automake doesn't seem to have a directory defined for
# platform-dependent data (or include) files. So put
# in $(libdir). Define a $(cfgdir) to get around automake's
# check that only libraries are going in $(libdir)
cfgdir = $(libdir)
cfg_DATA = meshkit.make
# By default, meshkit.make will define these to $(srcdir). We
# want to override that during the INSTALL of the file so
# that the correct values are set (e.g. if someone does
# 'make prefix=/foo install', we don't know the correct install
# directory until we're doing the install.
install-data-hook:
echo "MESHKIT_LIBS=-L${libdir}" >> $(DESTDIR)$(cfgdir)/meshkit.make
echo "MESHKIT_INCLUDES=-I${includedir}" >> $(DESTDIR)$(cfgdir)/meshkit.make