f7c36e2b2c54523ffef6cf70bfbadaddee33105c
[scilab.git] / scilab / modules / io / Makefile.am
1 ##########
2 ### Sylvestre Ledru <sylvestre.ledru@inria.fr>
3 ### INRIA - Scilab 2006
4 ##########
5
6 IO_C_SOURCES = src/c/getpidc.c \
7 src/c/setenvc.c \
8 src/c/systemc.c \
9 src/c/getenvc.c \
10 src/c/GetenvB.c
11
12 IO_FORTRAN_SOURCES = src/fortran/v2unit.f \
13 src/fortran/newsave.f \
14 src/fortran/v2cunit.f \
15 src/fortran/writebuf.f
16
17 GATEWAY_C_SOURCES = sci_gateway/c/sci_execstr.c \
18 sci_gateway/c/sci_read4b.c \
19 sci_gateway/c/sci_deff.c \
20 sci_gateway/c/sci_lib.c \
21 sci_gateway/c/sci_getio.c \
22 sci_gateway/c/sci_readb.c \
23 sci_gateway/c/sci_host.c \
24 sci_gateway/c/sci_file.c \
25 sci_gateway/c/intsetenv.c \
26 sci_gateway/c/sci_exec.c \
27 sci_gateway/c/sci_rat.c \
28 sci_gateway/c/sci_getenv.c \
29 sci_gateway/c/sci_write.c \
30 sci_gateway/c/sci_oldload.c \
31 sci_gateway/c/sci_writeb.c \
32 sci_gateway/c/sci_setenv.c \
33 sci_gateway/c/gw_io.c \
34 sci_gateway/c/sci_mgetl.c \
35 sci_gateway/c/sci_diary.c \
36 sci_gateway/c/sci_read.c \
37 sci_gateway/c/sci_getpid.c \
38 sci_gateway/c/sci_write4b.c \
39 sci_gateway/c/sci_load.c \
40 sci_gateway/c/sci_unix.c \
41 sci_gateway/c/sci_getf.c \
42 sci_gateway/c/sci_oldsave.c \
43 sci_gateway/c/sci_save.c \
44 sci_gateway/c/sci_disp.c
45
46
47 GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_export_to_hdf5.cpp 
48
49 GATEWAY_FORTRAN_SOURCES =  sci_gateway/fortran/oldloadsave.f \
50 sci_gateway/fortran/intwrite4b.f \
51 sci_gateway/fortran/intexec.f \
52 sci_gateway/fortran/intgetf.f \
53 sci_gateway/fortran/intrat.f \
54 sci_gateway/fortran/intwritb.f \
55 sci_gateway/fortran/intwrite.f \
56 sci_gateway/fortran/intdisp.f \
57 sci_gateway/fortran/intread4b.f \
58 sci_gateway/fortran/intdeff.f \
59 sci_gateway/fortran/intlib.f \
60 sci_gateway/fortran/intread.f \
61 sci_gateway/fortran/intexecstr.f \
62 sci_gateway/fortran/intreadb.f \
63 sci_gateway/fortran/intfile.f
64
65 # Disable optimisation of the file intmgetl.f
66 noinst_LTLIBRARIES = libdummy-io.la
67 libdummy_io_la_SOURCES = sci_gateway/fortran/intmgetl.f
68 libdummy_io_la_FFLAGS = $(FFLAGS:-O%=)
69
70 libsciio_la_CFLAGS=     -I$(srcdir)/includes/ \
71                         -I$(srcdir)/src/c/ \
72                         -I$(top_srcdir)/libs/MALLOC/includes/ \
73                         -I$(top_srcdir)/modules/fileio/includes/ \
74                         -I$(top_srcdir)/modules/output_stream/includes
75
76 libsciio_la_CPPFLAGS=   -I$(srcdir)/includes/ 
77                         -I$(top_srcdir)/modules/core/includes
78
79 pkglib_LTLIBRARIES = libsciio.la
80
81 libsciio_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
82
83 libsciio_la_SOURCES = $(IO_C_SOURCES) $(IO_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
84
85 # For the code check (splint)
86 CHECK_SRC= $(IO_C_SOURCES) $(GATEWAY_C_SOURCES)
87 INCLUDE_FLAGS = $(libsciio_la_CFLAGS)
88
89 libsciio_la_LIBADD = libdummy-io.la $(top_builddir)/modules/core/libscicore.la $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/modules/tclsci/libscitclsci.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/integer/libsciinteger.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
90
91
92 libdummy_io_la-intmgetl.lo: sci_gateway/fortran/intmgetl.f
93         $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(libdummy_io_la_FFLAGS) -c -o libdummy_io_la-intmgetl.lo `test -f 'sci_gateway/fortran/intmgetl.f' || echo '$(srcdir)/'`sci_gateway/fortran/intmgetl.f
94
95
96 #### Target ######
97 modulename=io
98
99 #### io : Conf files ####
100 libsciio_la_rootdir = $(mydatadir)
101 libsciio_la_root_DATA = changelog.txt license.txt readme.txt version.xml
102
103
104 ####�io : init scripts ####
105 libsciio_la_etcdir = $(mydatadir)/etc
106 libsciio_la_etc_DATA = etc/io.quit etc/io.start
107
108 ####�io : gateway declaration ####
109 libsciio_la_sci_gatewaydir = $(mydatadir)/sci_gateway
110 libsciio_la_sci_gateway_DATA = sci_gateway/io_gateway.xml
111
112 ####�io : include files ####
113 libsciio_la_includedir=$(pkgincludedir)/io
114 libsciio_la_include_HEADERS = includes/gw_io.h \
115 includes/getenvc.h \
116 includes/setenvc.h \
117 includes/GetenvB.h
118
119 include $(top_srcdir)/Makefile.incl.am