-
Notifications
You must be signed in to change notification settings - Fork 59
/
Makefile.am
107 lines (79 loc) · 2.95 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
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
103
104
105
106
## Process this file with automake to produce Makefile.in
dist_bin_SCRIPTS = hds_link hds_link_adam
noinst_PROGRAMS = dat_par_f make-hds-types
# libhdsf is for fortran interface
lib_LTLIBRARIES = libhds.la libhdsf.la
TESTS = hds_test hdsTest
check_PROGRAMS = hds_test hdsTest
libhds_la_SOURCES = \
$(PUBLIC_INCLUDES) \
$(PUBLIC_CINCLUDES) \
$(include_MESSAGES) \
$(PRIVATE_INCLUDES) \
$(C_ROUTINES)
libhds_la_LIBADD = -lhds_v4 -lhds_v5
libhdsf_la_SOURCES = \
$(F_ROUTINES) \
$(F_C_ROUTINES) \
$(BLOCK_DATA_FILES)
libhdsf_la_LIBADD = libhds.la `ems_link` `one_link` `chr_link`
# Make all library code position independent. This is handy for creating
# shareable libraries from the static ones (Java JNI libraries).
if !NOPIC
libhds_la_CFLAGS = $(AM_CFLAGS) -prefer-pic
libhds_la_FCFLAGS = $(AM_FCFLAGS) -prefer-pic
libhdsf_la_CFLAGS = $(AM_CFLAGS) -prefer-pic
libhdsf_la_FCFLAGS = $(AM_FCFLAGS) -prefer-pic
endif
dat_par_f_SOURCES = dat_par_f.c
make_hds_types_SOURCES = make-hds-types.c
# Try to make sure that hds_types.h is built early
# This does not seem to work right in conjunction with BUILT_SOURCES
dat_par_f_DEPENDENCIES = hds_types.h hds1_types.h dat_par.h
hds_test_SOURCES = hds_test.f
hds_test_LDADD = libhdsf.la
hdsTest_SOURCES = hdsTest.c
hdsTest_LDADD = libhds.la
cincludedir = $(includedir)/star
cinclude_HEADERS = $(PUBLIC_CINCLUDES)
include_HEADERS = $(PUBLIC_INCLUDES)
include_MESSAGES = CMP_ERR DAT_ERR dat_err.h
stardocs_DATA = @STAR_LATEX_DOCUMENTATION@
# dat_par.h was previously released so must go in the root include dir
PUBLIC_CINCLUDES = hds.h hds_types.h hds_fortran.h
PUBLIC_INCLUDES = DAT_PAR dat_par.h
PRIVATE_INCLUDES = \
CMP_CCT CMP_CONST DAT1_SYS dat1.h \
$(noinst_MESSAGES)
F_ROUTINES = \
cmp_activ.f cmp_deact.f cmp_erdsn.f cmp_get0x.f cmp_get1x.f \
cmp_getnx.f cmp_getvx.f cmp_len.f cmp_mapn.f cmp_mapv.f \
cmp_mod.f cmp_modc.f cmp_prim.f cmp_put0x.f cmp_put1x.f \
cmp_putnx.f cmp_putvx.f cmp_shape.f cmp_size.f cmp_struc.f \
cmp_type.f cmp_unmap.f \
dat_getnx.f dat_putnx.f \
dat_cut.f hds_split.f \
dat1_pshde.f dat1_pshdf.f dat1_pshdb.f \
hds_find.f
F_C_ROUTINES = hds_run.c fortran_interface.c hdsFind.c
# List of Fortran BLOCK DATA routines.
BLOCK_DATA_FILES = cmp_blk.f
C_ROUTINES = \
dat1CcopyLocXtoY.c dat1CcopyXtoY.c \
dat1CopyPrimXtoY.c dat1CopyStrucXtoY.c dat1CopyXtoY.c \
datExportFloc.c datImportFloc.c dat1_import_floc.c hdsdim.c \
hds_select.c
DAT_PAR: dat_par_f$(EXEEXT)
./dat_par_f > DAT_PAR
hds_types.h: make-hds-types$(EXEEXT)
./make-hds-types
hds1_types.h: make-hds-types$(EXEEXT)
./make-hds-types
# Have to make sure that hds_types appears before DAT_PAR so that
# the include file generation routines are built in the correct order
BUILT_SOURCES = hds_types.h hds1_types.h \
$(include_MESSAGES) $(noinst_MESSAGES) DAT_PAR
CLEANFILES = DAT_PAR dat_par.h hds_machine.txt CMP_ERR DAT_ERR dat_err.h \
hds_types.h hds1_types.h
dist_starnews_DATA = hds.news
EXTRA_DIST = cmp_err.msg dat_err.msg fortran_interface.h