69b406784170ba58a1d54e063aee0a7e3d07f21d
[scilab.git] / scilab / modules / elementary_functions / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2006 - INRIA - Sylvestre LEDRU
3 #
4 # This file is distributed under the same license as the Scilab package.
5
6 ELEMENTARIES_FUNCTIONS_C_SOURCES = \
7     src/c/finite.c \
8     src/c/vfinite.c \
9     src/c/cmp.c \
10     src/c/vceil.c \
11     src/c/xerhlt.c \
12     src/c/vfloor.c \
13     src/c/vfrexp.c \
14     src/c/scidcopy.c \
15     src/c/int2db.c \
16     src/c/rea2db.c \
17     src/c/qsort.c \
18     src/c/qsort-char.c \
19     src/c/qsort-double.c \
20     src/c/qsort-int.c \
21     src/c/qsort-short.c \
22     src/c/qsort-string.c \
23     src/c/basic_functions.c \
24     src/c/abs.c \
25     src/c/atan.c \
26     src/c/cos.c \
27     src/c/cosh.c \
28     src/c/sin.c \
29     src/c/sinh.c \
30     src/c/tan.c \
31     src/c/exp.c \
32     src/c/expm.c \
33     src/c/log.c \
34     src/c/sqrt.c \
35     src/c/cupro.c \
36     src/c/sign.c \
37     src/c/ceil.c \
38     src/c/eye.c \
39     src/c/dmsum.c \
40     src/c/dsearch.c \
41     src/c/floor.c \
42     src/c/mprod.c \
43     src/c/pythag.c \
44     src/c/matrix_generation.c \
45     src/c/vmul.c \
46     src/c/add_vector.c \
47     src/c/sub_vector.c \
48     src/c/convertbase.c
49
50 # List of the cpp files
51 ELEMENTARIES_FUNCTIONS_CXX_SOURCES = \
52     src/cpp/getmode.cpp \
53     src/cpp/cumsum.cpp \
54     src/cpp/cumprod.cpp \
55     src/cpp/diag.cpp \
56     src/cpp/gsort.cpp \
57     src/cpp/prod.cpp \
58     src/cpp/sum.cpp \
59     src/cpp/max.cpp \
60     src/cpp/min.cpp \
61     src/cpp/clean.cpp
62
63 SLATEC_SOURCES = \
64     src/fortran/slatec/zwrsk.f \
65     src/fortran/slatec/d9b0mp.f \
66     src/fortran/slatec/d9b1mp.f \
67     src/fortran/slatec/d9knus.f \
68     src/fortran/slatec/d9lgmc.f \
69     src/fortran/slatec/dasyik.f \
70     src/fortran/slatec/dasyjy.f \
71     src/fortran/slatec/dbdiff.f \
72     src/fortran/slatec/dbesi0.f \
73     src/fortran/slatec/dbesi1.f \
74     src/fortran/slatec/dbesi.f \
75     src/fortran/slatec/dbesj0.f \
76     src/fortran/slatec/dbesj1.f \
77     src/fortran/slatec/dbesj.f \
78     src/fortran/slatec/dbesk0.f \
79     src/fortran/slatec/dbesk1.f \
80     src/fortran/slatec/dbesk.f \
81     src/fortran/slatec/dbesy0.f \
82     src/fortran/slatec/dbesy1.f \
83     src/fortran/slatec/dbesy.f \
84     src/fortran/slatec/dbkias.f \
85     src/fortran/slatec/dbkisr.f \
86     src/fortran/slatec/dbsi0e.f \
87     src/fortran/slatec/dbsi1e.f \
88     src/fortran/slatec/dbsk0e.f \
89     src/fortran/slatec/dbsk1e.f \
90     src/fortran/slatec/dbskes.f \
91     src/fortran/slatec/dbskin.f \
92     src/fortran/slatec/dbsknu.f \
93     src/fortran/slatec/dbsynu.f \
94     src/fortran/slatec/dcsevl.f \
95     src/fortran/slatec/dexint.f \
96     src/fortran/slatec/dgamlm.f \
97     src/fortran/slatec/dgamln.f \
98     src/fortran/slatec/dgamma.f \
99     src/fortran/slatec/dgamrn.f \
100     src/fortran/slatec/dhkseq.f \
101     src/fortran/slatec/djairy.f \
102     src/fortran/slatec/dpsixn.f \
103     src/fortran/slatec/dxlegf.f \
104     src/fortran/slatec/dyairy.f \
105     src/fortran/slatec/fdump.f \
106     src/fortran/slatec/gamma.f \
107     src/fortran/slatec/initds.f \
108     src/fortran/slatec/j4save.f \
109     src/fortran/slatec/xercnt.f \
110     src/fortran/slatec/xermsg.f \
111     src/fortran/slatec/xerprn.f \
112     src/fortran/slatec/xersve.f \
113     src/fortran/slatec/xgetua.f \
114     src/fortran/slatec/zabs.f \
115     src/fortran/slatec/zacai.f \
116     src/fortran/slatec/zacon.f \
117     src/fortran/slatec/zairy.f \
118     src/fortran/slatec/zasyi.f \
119     src/fortran/slatec/zbesh.f \
120     src/fortran/slatec/zbesi.f \
121     src/fortran/slatec/zbesj.f \
122     src/fortran/slatec/zbesk.f \
123     src/fortran/slatec/zbesy.f \
124     src/fortran/slatec/zbinu.f \
125     src/fortran/slatec/zbknu.f \
126     src/fortran/slatec/zbuni.f \
127     src/fortran/slatec/zbunk.f \
128     src/fortran/slatec/zdiv.f \
129     src/fortran/slatec/zexp.f \
130     src/fortran/slatec/zkscl.f \
131     src/fortran/slatec/zlog.f \
132     src/fortran/slatec/zmlri.f \
133     src/fortran/slatec/zmlt.f \
134     src/fortran/slatec/zrati.f \
135     src/fortran/slatec/zs1s2.f \
136     src/fortran/slatec/zseri.f \
137     src/fortran/slatec/zshch.f \
138     src/fortran/slatec/zsqrt.f \
139     src/fortran/slatec/zuchk.f \
140     src/fortran/slatec/zunhj.f \
141     src/fortran/slatec/zuni1.f \
142     src/fortran/slatec/zuni2.f \
143     src/fortran/slatec/zunik.f \
144     src/fortran/slatec/zunk1.f \
145     src/fortran/slatec/zunk2.f \
146     src/fortran/slatec/zuoik.f \
147     src/fortran/slatec/dlngam.f \
148     src/fortran/slatec/balanc.f \
149     src/fortran/slatec/dtensbs.f \
150     src/fortran/slatec/pchim.f
151
152 LINPACK_SOURCES = \
153     src/fortran/linpack/dgesl.f \
154         src/fortran/linpack/wpade.f \
155         src/fortran/linpack/util.f \
156         src/fortran/linpack/dgefa.f \
157         src/fortran/linpack/dgbfa.f \
158         src/fortran/linpack/dgeco.f \
159         src/fortran/linpack/dgedi.f \
160         src/fortran/linpack/dqrdc.f \
161         src/fortran/linpack/dqrsl.f \
162         src/fortran/linpack/dqrsm.f \
163         src/fortran/linpack/hhdml.f \
164         src/fortran/linpack/wgeco.f \
165         src/fortran/linpack/wgefa.f \
166         src/fortran/linpack/wgesl.f \
167         src/fortran/linpack/dpofa.f
168
169 ELEMENTARIES_FUNCTIONS_FORTRAN_SOURCES = \
170     src/fortran/wasum.f \
171     src/fortran/dexpm1.f \
172     src/fortran/wwdiv.f \
173     src/fortran/wdotcr.f \
174     src/fortran/iset.f \
175     src/fortran/franck.f \
176     src/fortran/dwpowe.f \
177     src/fortran/rcsort.f \
178     src/fortran/wddiv.f \
179     src/fortran/lnblnk.f \
180     src/fortran/entier.f \
181     src/fortran/round.f \
182     src/fortran/cortr.f \
183     src/fortran/simple.f \
184     src/fortran/split.f \
185     src/fortran/wdrdiv.f \
186     src/fortran/imcopy.f \
187     src/fortran/cbal.f \
188     src/fortran/dsum.f \
189     src/fortran/urand.f \
190     src/fortran/intp.f \
191     src/fortran/watan.f \
192     src/fortran/wipowe.f \
193     src/fortran/wacos.f \
194     src/fortran/wdpow1.f \
195     src/fortran/dlgama.f \
196     src/fortran/exch.f \
197     src/fortran/wsign.f \
198     src/fortran/kronr.f \
199     src/fortran/wrscal.f \
200     src/fortran/dmmul1.f \
201     src/fortran/dwpow.f \
202     src/fortran/wmmul.f \
203     src/fortran/ddif.f \
204     src/fortran/wdiv.f \
205     src/fortran/wtan.f \
206     src/fortran/ddpow.f \
207     src/fortran/magic.f \
208     src/fortran/wcerr.f \
209     src/fortran/ivimp.f \
210     src/fortran/dadd.f \
211     src/fortran/isort.f \
212     src/fortran/hilber.f \
213     src/fortran/wdpowe.f \
214     src/fortran/wmprod.f \
215     src/fortran/wscal.f \
216     src/fortran/dlblks.f \
217     src/fortran/kronc.f \
218     src/fortran/ddrdiv.f \
219     src/fortran/dipow.f \
220     src/fortran/wshrsl.f \
221     src/fortran/wwrdiv.f \
222     src/fortran/coshin.f \
223     src/fortran/iwamax.f \
224     src/fortran/dipowe.f \
225     src/fortran/cusum.f \
226     src/fortran/d1mach.f \
227     src/fortran/wbdiag.f \
228     src/fortran/ddpow1.f \
229     src/fortran/vpythag.f \
230     src/fortran/isova0.f \
231     src/fortran/wswap.f \
232     src/fortran/wwpow1.f \
233     src/fortran/gdcp2i.f \
234     src/fortran/drdiv.f \
235     src/fortran/wmsum.f \
236     src/fortran/corth.f \
237     src/fortran/mtran.f \
238     src/fortran/wwpow.f \
239     src/fortran/dvmul.f \
240     src/fortran/wclmat.f \
241     src/fortran/dsort.f \
242     src/fortran/cerr.f \
243     src/fortran/rcopy.f \
244     src/fortran/wdpow.f \
245     src/fortran/orthes.f \
246     src/fortran/waxpy.f \
247     src/fortran/coef.f \
248     src/fortran/dwdiv.f \
249     src/fortran/arcosh.f \
250     src/fortran/wasin.f \
251     src/fortran/wexpm1.f \
252     src/fortran/ddpowe.f \
253     src/fortran/dmprod.f \
254     src/fortran/wwpowe.f \
255     src/fortran/wdotci.f \
256     src/fortran/dmcopy.f \
257     src/fortran/wexchn.f \
258     src/fortran/isoval.f \
259     src/fortran/dwrdiv.f \
260     src/fortran/wipow.f \
261     src/fortran/wlog.f \
262     src/fortran/infinity.f \
263     src/fortran/dwpow1.f \
264     src/fortran/wmul.f \
265     src/fortran/dad.f \
266     src/fortran/dset.f \
267     src/fortran/dtild.f \
268     src/fortran/i1mach.f \
269     src/fortran/dclmat.f \
270     src/fortran/ortran.f \
271     src/fortran/bdiag.f \
272     src/fortran/wvmul.f \
273     src/fortran/dmmul.f \
274     src/fortran/wsqrt.f \
275     src/fortran/rat.f \
276     src/fortran/old_pythag.f \
277     src/fortran/danints.f
278
279 GATEWAY_C_SOURCES = \
280     sci_gateway/c/sci_number_properties.c \
281     sci_gateway/c/sci_testmatrix.c \
282     sci_gateway/c/sci_isequalbitwise.c \
283     sci_gateway/c/sci_base2dec.c \
284     sci_gateway/c/sci_dec2base.c \
285     sci_gateway/c/sci_log10.c
286
287 GATEWAY_CXX_SOURCES =  \
288     sci_gateway/cpp/sci_isequal.cpp \
289     sci_gateway/cpp/elem_func_gw.cpp \
290     sci_gateway/cpp/sci_size.cpp \
291     sci_gateway/cpp/sci_eye.cpp \
292     sci_gateway/cpp/sci_rand.cpp \
293     sci_gateway/cpp/sci_prod.cpp \
294     sci_gateway/cpp/sci_sum.cpp \
295     sci_gateway/cpp/sci_zeros.cpp \
296     sci_gateway/cpp/sci_ones.cpp \
297     sci_gateway/cpp/sci_matrix.cpp \
298     sci_gateway/cpp/sci_abs.cpp \
299     sci_gateway/cpp/sci_acos.cpp \
300     sci_gateway/cpp/sci_acosh.cpp \
301     sci_gateway/cpp/sci_asin.cpp \
302     sci_gateway/cpp/sci_asinh.cpp \
303     sci_gateway/cpp/sci_atan.cpp \
304     sci_gateway/cpp/sci_atanh.cpp \
305     sci_gateway/cpp/sci_ceil.cpp \
306     sci_gateway/cpp/sci_clean.cpp \
307     sci_gateway/cpp/sci_conj.cpp \
308     sci_gateway/cpp/sci_cos.cpp \
309     sci_gateway/cpp/sci_cosh.cpp \
310     sci_gateway/cpp/sci_sin.cpp \
311     sci_gateway/cpp/sci_sinh.cpp \
312     sci_gateway/cpp/sci_tan.cpp \
313     sci_gateway/cpp/sci_tanh.cpp \
314     sci_gateway/cpp/sci_cumsum.cpp \
315     sci_gateway/cpp/sci_cumprod.cpp \
316     sci_gateway/cpp/sci_diag.cpp \
317     sci_gateway/cpp/sci_dsearch.cpp \
318     sci_gateway/cpp/sci_exp.cpp \
319     sci_gateway/cpp/sci_expm.cpp \
320     sci_gateway/cpp/sci_floor.cpp \
321     sci_gateway/cpp/sci_frexp.cpp \
322     sci_gateway/cpp/sci_gsort.cpp \
323     sci_gateway/cpp/sci_imag.cpp \
324     sci_gateway/cpp/sci_imult.cpp \
325     sci_gateway/cpp/sci_int.cpp \
326     sci_gateway/cpp/sci_isreal.cpp \
327     sci_gateway/cpp/sci_kron.cpp \
328     sci_gateway/cpp/sci_log.cpp \
329     sci_gateway/cpp/sci_log1p.cpp \
330     sci_gateway/cpp/sci_max.cpp \
331     sci_gateway/cpp/sci_rat.cpp \
332     sci_gateway/cpp/sci_triu.cpp \
333     sci_gateway/cpp/sci_tril.cpp \
334     sci_gateway/cpp/sci_real.cpp \
335     sci_gateway/cpp/sci_round.cpp \
336     sci_gateway/cpp/sci_sign.cpp \
337     sci_gateway/cpp/sci_sqrt.cpp \
338     sci_gateway/cpp/sci_issquare.cpp \
339     sci_gateway/cpp/sci_isvector.cpp\
340     sci_gateway/cpp/sci_nearfloat.cpp\
341     sci_gateway/cpp/sci_permute.cpp\
342     sci_gateway/cpp/sci_bitstring.cpp
343
344 EISPACK_SOURCES = src/fortran/eispack/balbak.f
345
346 # FIXME: why disabling optimisation ? Any bug reference ?
347 # Disable optimisation of the file hqror2.f comqr3.f pade.f
348 noinst_LTLIBRARIES = libdummy-elementary_functions.la
349
350 libdummy_elementary_functions_la_SOURCES = \
351     src/fortran/eispack/hqror2.f \
352     src/fortran/comqr3.f \
353     src/fortran/linpack/pade.f \
354     src/c/unsfdcopy.c \
355     src/fortran/linpack/icopy.f
356
357 libdummy_elementary_functions_la_CPPFLAGS = \
358     -I$(srcdir)/includes/ \
359     -I$(top_srcdir)/modules/core/includes/ \
360     $(AM_CPPFLAGS)
361
362 # Includes need for the compilation
363 libscielementary_functions_la_CPPFLAGS = \
364     -I$(srcdir)/includes/ \
365         -I$(srcdir)/src/c/ \
366         -I$(srcdir)/src/cpp/ \
367     -I$(top_srcdir)/modules/ast/includes/ast/ \
368     -I$(top_srcdir)/modules/ast/includes/exps/ \
369     -I$(top_srcdir)/modules/ast/includes/operations/ \
370     -I$(top_srcdir)/modules/ast/includes/parse/ \
371     -I$(top_srcdir)/modules/ast/includes/symbol/ \
372     -I$(top_srcdir)/modules/ast/includes/system_env/ \
373     -I$(top_srcdir)/modules/ast/includes/types/ \
374     -I$(top_srcdir)/modules/ast/includes/analysis/ \
375         -I$(top_srcdir)/modules/dynamic_link/includes \
376         -I$(top_srcdir)/modules/api_scilab/includes/ \
377         -I$(top_srcdir)/modules/console/includes/ \
378         -I$(top_srcdir)/modules/localization/includes/ \
379         -I$(top_srcdir)/modules/output_stream/includes/ \
380         -I$(top_srcdir)/modules/threads/includes/ \
381         -I$(top_srcdir)/modules/string/includes/ \
382         $(AM_CPPFLAGS)
383
384 if MAINTAINER_MODE
385 pkglib_LTLIBRARIES = libscielementary_functions.la
386 noinst_LTLIBRARIES += libscielementary_functions-algo.la
387 else
388 noinst_LTLIBRARIES += libscielementary_functions-algo.la libscielementary_functions.la
389 endif
390
391
392 libscielementary_functions_algo_la_SOURCES = $(SLATEC_SOURCES) $(LINPACK_SOURCES)  $(EISPACK_SOURCES) $(ELEMENTARIES_FUNCTIONS_C_SOURCES) $(ELEMENTARIES_FUNCTIONS_FORTRAN_SOURCES) $(ELEMENTARIES_FUNCTIONS_CXX_SOURCES)
393 libscielementary_functions_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CXX_SOURCES)
394 libscielementary_functions_algo_la_CPPFLAGS = $(libscielementary_functions_la_CPPFLAGS)
395
396 # For the code check (splint)
397 CHECK_SRC= $(ELEMENTARIES_FUNCTIONS_C_SOURCES) $(GATEWAY_C_SOURCES)
398 INCLUDE_FLAGS = $(libscielementary_functions_la_CPPFLAGS)
399
400 libscielementary_functions_la_LIBADD = libdummy-elementary_functions.la libscielementary_functions-algo.la $(FLIBS)
401
402 # Following lines are extracted from a processed Makefile.in
403 # Take care while modifying : append -O0 after all commons options
404
405 libdummy_elementary_functions_la-hqror2.lo: src/fortran/eispack/hqror2.f
406         $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(AM_FFLAGS) $(FFLAGS) -O0 -c -o libdummy_elementary_functions_la-hqror2.lo `test -f 'src/fortran/eispack/hqror2.f' || echo '$(srcdir)/'`src/fortran/eispack/hqror2.f
407
408 libdummy_elementary_functions_la-comqr3.lo: src/fortran/comqr3.f
409         $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(AM_FFLAGS) $(FFLAGS) -O0 -c -o libdummy_elementary_functions_la-comqr3.lo `test -f 'src/fortran/comqr3.f' || echo '$(srcdir)/'`src/fortran/comqr3.f
410
411 libdummy_elementary_functions_la-pade.lo: src/fortran/linpack/pade.f
412         $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(AM_FFLAGS) $(FFLAGS) -O0 -c -o libdummy_elementary_functions_la-pade.lo `test -f 'src/fortran/linpack/pade.f' || echo '$(srcdir)/'`src/fortran/linpack/pade.f
413
414 libdummy_elementary_functions_la-unsfdcopy.lo: src/c/unsfdcopy.c
415         $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libscielementary_functions_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -O0 -c -o libdummy_elementary_functions_la-unsfdcopy.lo `test -f 'src/c/unsfdcopy.c' || echo '$(srcdir)/'`src/c/unsfdcopy.c
416
417
418 libdummy_elementary_functions_la-icopy.lo: src/fortran/linpack/icopy.f
419         $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(AM_FFLAGS) $(FFLAGS) -O0 -c -o libdummy_elementary_functions_la-icopy.lo `test -f 'src/fortran/linpack/icopy.f' || echo '$(srcdir)/'`src/fortran/linpack/icopy.f
420
421 if IS_MACOSX
422 # enforce -O0 for some file due to macOS crash
423 src/fortran/slatec/dtensbs.lo: src/fortran/slatec/dtensbs.f
424         $(LIBTOOL) $(AM_V_lt)  --tag=F77 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(F77) $(AM_FFLAGS) $(FFLAGS) -O0 -c -o src/fortran/slatec/dtensbs.lo src/fortran/slatec/dtensbs.f
425 endif
426
427 #### Target ######
428 modulename=elementary_functions
429
430
431 #### elementary_functions : Conf files ####
432 libscielementary_functions_la_rootdir = $(mydatadir)
433 libscielementary_functions_la_root_DATA =  license.txt
434
435
436
437 #### elementary_functions : init scripts ####
438 libscielementary_functions_la_etcdir = $(mydatadir)/etc
439 libscielementary_functions_la_etc_DATA = \
440     etc/elementary_functions.quit \
441     etc/elementary_functions.start
442
443
444 include $(top_srcdir)/Makefile.incl.am