Take new Debian layout for HDF5 package into account (since hdf5-1.8.13).
[scilab.git] / scilab / modules / hdf5 / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2009 - DIGITEO - Allan CORNET
3 #
4 # This file must be used under the terms of the CeCILL.
5 # This source file is licensed as described in the file COPYING, which
6 # you should have received as part of this distribution.  The terms
7 # are also available at
8 # http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
9
10 if GUI
11 if XCOS
12 # No GUI. Disable the Java build
13 USEANT=1
14 endif
15 endif
16
17
18 HDF5_SOURCES = src/c/h5_fileManagement.c \
19 src/c/h5_writeDataToFile.c \
20 src/c/h5_readDataFromFile.c \
21 src/c/h5_readDataFromFile_v1.c \
22 src/cpp/import_from_hdf5_v1.cpp \
23 src/cpp/listvar_in_hdf5_v1.cpp
24
25 HDF5_CXX_SOURCES = src/cpp/H5Attribute.cpp \
26                    src/cpp/H5AttributesList.cpp \
27                    src/cpp/H5DataConverter.cpp \
28                    src/cpp/H5Dataset.cpp \
29                    src/cpp/H5Dataspace.cpp \
30                    src/cpp/H5File.cpp \
31                    src/cpp/H5Group.cpp \
32                    src/cpp/H5Object.cpp \
33                    src/cpp/H5Type.cpp \
34                    src/cpp/H5DataFactory.cpp \
35                    src/cpp/H5VariableScope.cpp \
36                    src/cpp/H5SoftLink.cpp \
37                    src/cpp/H5ExternalLink.cpp \
38                    src/cpp/H5HardLink.cpp \
39                    src/cpp/H5Link.cpp \
40                    src/cpp/HDF5Scilab.cpp \
41                    src/cpp/H5StringData.cpp \
42                    src/cpp/H5ReferenceData.cpp \
43                    src/cpp/H5CompoundData.cpp \
44                    src/cpp/H5ArrayData.cpp \
45                    src/cpp/H5VlenData.cpp \
46                    src/cpp/H5Options.cpp
47
48 GATEWAY_C_SOURCES = sci_gateway/c/gw_hdf5.c
49
50 GATEWAY_CXX_SOURCES = sci_gateway/cpp/sci_export_to_hdf5.cpp \
51 sci_gateway/cpp/sci_import_from_hdf5.cpp \
52 sci_gateway/cpp/sci_is_hdf5_file.cpp \
53 sci_gateway/cpp/sci_listvar_in_hdf5.cpp \
54 sci_gateway/cpp/sci_h5dump.cpp \
55 sci_gateway/cpp/sci_h5open.cpp \
56 sci_gateway/cpp/sci_h5close.cpp \
57 sci_gateway/cpp/sci_h5read.cpp \
58 sci_gateway/cpp/sci_h5ls.cpp \
59 sci_gateway/cpp/sci_percent_H5Object_p.cpp \
60 sci_gateway/cpp/sci_percent_H5Object_e.cpp \
61 sci_gateway/cpp/sci_h5group.cpp \
62 sci_gateway/cpp/sci_h5rm.cpp \
63 sci_gateway/cpp/sci_h5dataset.cpp \
64 sci_gateway/cpp/sci_h5write.cpp \
65 sci_gateway/cpp/sci_h5attr.cpp \
66 sci_gateway/cpp/sci_h5ln.cpp \
67 sci_gateway/cpp/sci_h5readattr.cpp \
68 sci_gateway/cpp/sci_h5flush.cpp \
69 sci_gateway/cpp/sci_h5cp.cpp \
70 sci_gateway/cpp/sci_h5isfoo.cpp \
71 sci_gateway/cpp/sci_h5mount.cpp \
72 sci_gateway/cpp/sci_h5umount.cpp \
73 sci_gateway/cpp/sci_h5mv.cpp \
74 sci_gateway/cpp/sci_h5get.cpp \
75 sci_gateway/cpp/sci_h5label.cpp \
76 sci_gateway/cpp/sci_h5exists.cpp \
77 sci_gateway/cpp/sci_percent_H5Object_fieldnames.cpp
78
79 if GIWS
80 BUILT_SOURCES=giws
81 endif
82
83
84 #### hdf5 : include files ####
85 FORCE_HDF_1.8_API =  -DH5Dopen_vers=2 -DH5Topen_vers=2 -DH5Dcreate_vers=2 -DH5Aiterate_vers=2 \
86  -DH5Gcreate_vers=2 -DH5Gopen_vers=2 -DH5Tget_array_dims_vers=2 \
87  -DH5Acreate_vers=2 -DNO_DEPRECATED_SYMBOLS
88
89 libscihdf5_la_CPPFLAGS = -I$(srcdir)/includes/ \
90                                 -I$(srcdir)/src/c/ \
91                                 -I$(srcdir)/src/cpp/ \
92                                 -I$(top_srcdir)/modules/output_stream/includes/ \
93                                 -I$(top_srcdir)/modules/api_scilab/includes/ \
94                 -I$(top_srcdir)/modules/jvm/includes/ \
95                 -I$(top_srcdir)/modules/commons/src/jni/ \
96                                 -I$(top_srcdir)/modules/localization/includes/ \
97                                 -I$(top_srcdir)/modules/fileio/includes/ \
98                                 $(JAVA_JNI_INCLUDE) \
99                                 $(HDF5_CFLAGS) \
100                                 $(AM_CPPFLAGS) \
101                                 $(FORCE_HDF_1.8_API)
102
103
104
105
106 #### hdf5 : gateway declaration ####
107 libscihdf5_la_sci_gatewaydir = $(mydatadir)/sci_gateway
108 libscihdf5_la_sci_gateway_DATA = sci_gateway/hdf5_gateway.xml
109
110 pkglib_LTLIBRARIES = libscihdf5.la
111 noinst_LTLIBRARIES =
112
113 noinst_LTLIBRARIES += libscihdf5-algo.la
114
115 # When Scilab is built with HDF5, we need some libraries for a workaround
116
117 libscihdf5_la_LDFLAGS = $(AM_LDFLAGS)
118
119 libscihdf5_algo_la_SOURCES = $(HDF5_SOURCES) $(HDF5_CXX_SOURCES)
120 libscihdf5_la_SOURCES = $(GATEWAY_CXX_SOURCES) $(GATEWAY_C_SOURCES)
121 libscihdf5_algo_la_CPPFLAGS = $(libscihdf5_la_CPPFLAGS)
122
123 # For the code check (splint)
124 CHECK_SRC= $(HDF5_SOURCES) $(GATEWAY_CXX_SOURCES)
125 INCLUDE_FLAGS = $(libscihdf5_la_CPPFLAGS)
126
127 libscihdf5_la_LIBADD = libscihdf5-algo.la $(HDF5_LIBS)
128
129 #### Target ######
130 modulename=hdf5
131
132
133 #### hdf5 : Conf files ####
134 libscihdf5_la_rootdir = $(mydatadir)
135 libscihdf5_la_root_DATA =  license.txt
136
137
138 #### hdf5 : init scripts ####
139 libscihdf5_la_etcdir = $(mydatadir)/etc
140 libscihdf5_la_etc_DATA = etc/hdf5.quit etc/hdf5.start
141
142 #### hdf5 : test file ####
143 libscihdf5_la_testsampledatadir = $(mydatadir)/tests/sample_scilab_data
144 libscihdf5_la_testsampledata_DATA = \
145 tests/sample_scilab_data/booleanmatrix.sod \
146 tests/sample_scilab_data/booleanmatrix_v1.sod \
147 tests/sample_scilab_data/booleanscalar.sod \
148 tests/sample_scilab_data/booleanscalar_v1.sod \
149 tests/sample_scilab_data/booleansparse.sod \
150 tests/sample_scilab_data/booleansparse_v1.sod \
151 tests/sample_scilab_data/emptymatrix.sod \
152 tests/sample_scilab_data/emptysparse.sod \
153 tests/sample_scilab_data/emptysparse_v1.sod \
154 tests/sample_scilab_data/hypermatrixcomplex.sod \
155 tests/sample_scilab_data/hypermatrixcomplex_v1.sod \
156 tests/sample_scilab_data/hypermatrix.sod \
157 tests/sample_scilab_data/hypermatrix_v1.sod \
158 tests/sample_scilab_data/int16.sod \
159 tests/sample_scilab_data/int16_v1.sod \
160 tests/sample_scilab_data/int32.sod \
161 tests/sample_scilab_data/int32_v1.sod \
162 tests/sample_scilab_data/int8.sod \
163 tests/sample_scilab_data/int8_v1.sod \
164 tests/sample_scilab_data/list.sod \
165 tests/sample_scilab_data/list_v1.sod \
166 tests/sample_scilab_data/listnested.sod \
167 tests/sample_scilab_data/listnested_v1.sod \
168 tests/sample_scilab_data/matricedoublecomplex.sod \
169 tests/sample_scilab_data/matricedoublecomplex_v1.sod \
170 tests/sample_scilab_data/matricedoublecomplexscalar.sod \
171 tests/sample_scilab_data/matricedoublecomplexscalar_v1.sod \
172 tests/sample_scilab_data/matricedouble.sod \
173 tests/sample_scilab_data/matricedouble_v1.sod \
174 tests/sample_scilab_data/matricedoublescalar.sod \
175 tests/sample_scilab_data/matricedoublescalar_v1.sod \
176 tests/sample_scilab_data/matricestring.sod \
177 tests/sample_scilab_data/matricestring_v1.sod \
178 tests/sample_scilab_data/matricestringscalar.sod \
179 tests/sample_scilab_data/matricestringscalar_v1.sod \
180 tests/sample_scilab_data/mlist.sod \
181 tests/sample_scilab_data/mlist_v1.sod \
182 tests/sample_scilab_data/polynomialscoef.sod \
183 tests/sample_scilab_data/polynomialscoef_v1.sod \
184 tests/sample_scilab_data/polynomials.sod \
185 tests/sample_scilab_data/polynomials_v1.sod \
186 tests/sample_scilab_data/sparsematrix.sod \
187 tests/sample_scilab_data/sparsematrix_v1.sod \
188 tests/sample_scilab_data/tlist.sod \
189 tests/sample_scilab_data/tlist_v1.sod \
190 tests/sample_scilab_data/uint16.sod \
191 tests/sample_scilab_data/uint16_v1.sod \
192 tests/sample_scilab_data/uint32.sod \
193 tests/sample_scilab_data/uint32_v1.sod \
194 tests/sample_scilab_data/uint8.sod \
195 tests/sample_scilab_data/uint8_v1.sod \
196 tests/sample_scilab_data/undefinedelement.sod \
197 tests/sample_scilab_data/undefinedelement_v1.sod \
198 tests/sample_scilab_data/voidelement.sod \
199 tests/sample_scilab_data/voidelement_v1.sod
200
201 include $(top_srcdir)/Makefile.incl.am