Makefile.am
2.28 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
## Process this file with automake to produce Makefile.in
# we use srcdir/src for "private" includes
# we use srcdir/include for the static global include files
# we use builddir/src for the generated include files to get found
INCLUDES = -I$(top_srcdir)/include \
-I$(top_builddir)/src \
-I$(top_srcdir)/src/support
# Set sub directories
SUBDIRS = base \
support \
linalg \
numerics \
fits \
xml \
vo \
xspec \
sky \
opt \
obs \
model \
app \
test
# Define sources for this directory
sources =
# Darwin support
MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@
@EXPORT_MACOSX_DEPLOYMENT_TARGET@export MACOSX_DEPLOYMENT_TARGET
# Optional instrument specific libraries
if WITH_INST_MWL
INST_MWL = ../inst/mwl/libmwl.la
endif
if WITH_INST_CTA
INST_CTA = ../inst/cta/libcta.la
endif
if WITH_INST_LAT
INST_LAT = ../inst/lat/liblat.la
endif
if WITH_INST_COM
INST_COM = ../inst/com/libcom.la
endif
# Scripts to be distributed
scripts = gammalib-setup \
gammalib-init.sh \
gammalib-init.csh
# Build libtool library
lib_LTLIBRARIES = libgamma.la
libgamma_la_SOURCES = $(sources)
libgamma_la_LIBADD = base/libbase.la \
support/libsupport.la \
linalg/liblinalg.la \
numerics/libnumerics.la \
fits/libfits.la \
xml/libxml.la \
vo/libvo.la \
xspec/libxspec.la \
sky/libsky.la \
opt/libopt.la \
obs/libobs.la \
model/libmodel.la \
app/libapp.la \
test/libtest.la \
$(INST_MWL) \
$(INST_CTA) \
$(INST_LAT) \
$(INST_COM)
libgamma_la_LDFLAGS = -version-info $(GAMMALIB_LT_VERSION) @OPENMP_LIB_LDFLAGS@
# Distribute scripts
EXTRA_DIST = $(scripts)
scriptsdir = $(bindir)
scripts_DATA = $(scripts)
# Add hook rule to make scripts executable
install-data-hook:
@list='$(scripts_DATA)';\
for p in $$list; do \
if test -f "$$p"; then chmod +x "$(DESTDIR)$(scriptsdir)/$$p"; fi; \
done