summaryrefslogtreecommitdiff
path: root/modules/data_structures/Makefile.am
blob: a755430501b693e0a761117315e67d14eec5e903 (plain)
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
# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
# Copyright (C) 2006 - INRIA - Sylvestre LEDRU
#
# This file is distributed under the same license as the Scilab package.
 

DATA_STRUCTURES_C_SOURCES = src/c/stcreate.c \
src/c/hmops.c \
src/c/strpos.c

DATA_STRUCTURES_FORTRAN_SOURCES = src/fortran/extractfields.f \
src/fortran/forcerhs.f \
src/fortran/intl_i.f \
src/fortran/lsstyp.f \
src/fortran/udptr.f \
src/fortran/followpath.f \
src/fortran/rattyp.f \
src/fortran/lstops.f \
src/fortran/gratyp.f \
src/fortran/mlist.f \
src/fortran/insertfield.f

GATEWAY_C_SOURCES = sci_gateway/c/sci_lsslist.c \
sci_gateway/c/sci_glist.c \
sci_gateway/c/sci_mlist.c \
sci_gateway/c/sci_definedfields.c \
sci_gateway/c/sci_getfield.c \
sci_gateway/c/sci_setfield.c \
sci_gateway/c/sci_lstcat.c \
sci_gateway/c/sci_list.c \
sci_gateway/c/gw_data_structures1.c \
sci_gateway/c/gw_data_structures2.c \
sci_gateway/c/sci_lstsize.c \
sci_gateway/c/sci_rlist.c \
sci_gateway/c/sci_tlist.c

GATEWAY_FORTRAN_SOURCES =  sci_gateway/fortran/sci_f_definedfields.f \
sci_gateway/fortran/sci_f_lstsize.f \
sci_gateway/fortran/sci_f_setfield.f \
sci_gateway/fortran/sci_f_getfield.f \
sci_gateway/fortran/sci_f_lstcat.f \
sci_gateway/fortran/sci_f_list.f

libscidata_structures_la_CPPFLAGS = -I$(srcdir)/includes/ \
-I$(top_srcdir)/modules/localization/includes/ \
-I$(top_srcdir)/modules/output_stream/includes/ \
-I$(top_srcdir)/modules/api_scilab/includes/ \
-I$(top_srcdir)/modules/string/includes/ \
$(AM_CPPFLAGS)

# FIXME: why disabling optimisation ? Any bug reference ?
# Disable optimisation of the file intl_e.f
noinst_LTLIBRARIES = libdummy-data_structures.la

libdummy_data_structures_la_SOURCES = src/fortran/intl_e.f
libdummy_data_structures_la_FFLAGS = $(AM_FFLAGS) $(FFLAGS) -O0


if MAINTAINER_MODE
pkglib_LTLIBRARIES = libscidata_structures.la
noinst_LTLIBRARIES += libscidata_structures-algo.la
else
noinst_LTLIBRARIES += libscidata_structures-algo.la libscidata_structures.la
endif


libscidata_structures_algo_la_SOURCES = $(DATA_STRUCTURES_C_SOURCES) $(DATA_STRUCTURES_FORTRAN_SOURCES)
libscidata_structures_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
libscidata_structures_algo_la_CPPFLAGS = $(libscidata_structures_la_CPPFLAGS)

# For the code check (splint)
CHECK_SRC= $(DATA_STRUCTURES_C_SOURCES) $(GATEWAY_C_SOURCES)
INCLUDE_FLAGS = $(libscidata_structures_la_CFLAGS)

libscidata_structures_la_LIBADD = libscidata_structures-algo.la libdummy-data_structures.la


libdummy_data_structures_la-intl_e.lo: src/fortran/intl_e.f
	$(LIBTOOL) --tag=F77 --mode=compile $(F77) $(libdummy_data_structures_la_FFLAGS) -c -o libdummy_data_structures_la-intl_e.lo `test -f 'src/fortran/intl_e.f' || echo '$(srcdir)/'`src/fortran/intl_e.f


#### Target ######
modulename=data_structures


#### data_structures : Conf files ####
libscidata_structures_la_rootdir = $(mydatadir)
libscidata_structures_la_root_DATA =  license.txt 


#### data_structures : init scripts ####
libscidata_structures_la_etcdir = $(mydatadir)/etc
libscidata_structures_la_etc_DATA = etc/data_structures.quit etc/data_structures.start

#### data_structures : gateway declaration ####
libscidata_structures_la_sci_gatewaydir = $(mydatadir)/sci_gateway
libscidata_structures_la_sci_gateway_DATA = sci_gateway/data_structures_gateway.xml

include $(top_srcdir)/Makefile.incl.am