Makefile.am
3.92 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#############################################################################
# Makefile.am for source module #
# ------------------------------------------------------------------------- #
# Copyright (C) 2016-2017 Juergen Knoedlseder #
# ------------------------------------------------------------------------- #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
# #
#############################################################################
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 \
template \
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 = $(top_builddir)/inst/mwl/libmwl.la
endif
if WITH_INST_CTA
INST_CTA = $(top_builddir)/inst/cta/libcta.la
endif
if WITH_INST_LAT
INST_LAT = $(top_builddir)/inst/lat/liblat.la
endif
if WITH_INST_COM
INST_COM = $(top_builddir)/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 = $(top_builddir)/src/base/libbase.la \
$(top_builddir)/src/support/libsupport.la \
$(top_builddir)/src/linalg/liblinalg.la \
$(top_builddir)/src/numerics/libnumerics.la \
$(top_builddir)/src/fits/libfits.la \
$(top_builddir)/src/xml/libxml.la \
$(top_builddir)/src/vo/libvo.la \
$(top_builddir)/src/xspec/libxspec.la \
$(top_builddir)/src/sky/libsky.la \
$(top_builddir)/src/opt/libopt.la \
$(top_builddir)/src/obs/libobs.la \
$(top_builddir)/src/model/libmodel.la \
$(top_builddir)/src/app/libapp.la \
$(top_builddir)/src/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