update C2F(getenvc)
[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/createdir.c
11
12
13 IO_FORTRAN_SOURCES = src/fortran/v2unit.f \
14 src/fortran/newsave.f \
15 src/fortran/v2cunit.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_getrelativefilename.c \
25 sci_gateway/c/sci_fileinfo.c \
26 sci_gateway/c/sci_file.c \
27 sci_gateway/c/intsetenv.c \
28 sci_gateway/c/sci_exec.c \
29 sci_gateway/c/sci_rat.c \
30 sci_gateway/c/sci_getenv.c \
31 sci_gateway/c/sci_write.c \
32 sci_gateway/c/sci_oldload.c \
33 sci_gateway/c/sci_writeb.c \
34 sci_gateway/c/sci_print.c \
35 sci_gateway/c/sci_setenv.c \
36 sci_gateway/c/gw_io.c \
37 sci_gateway/c/sci_mgetl.c \
38 sci_gateway/c/sci_diary.c \
39 sci_gateway/c/sci_read.c \
40 sci_gateway/c/sci_getpid.c \
41 sci_gateway/c/sci_write4b.c \
42 sci_gateway/c/sci_load.c \
43 sci_gateway/c/intfilestat.c \
44 sci_gateway/c/sci_unix.c \
45 sci_gateway/c/sci_getf.c \
46 sci_gateway/c/sci_oldsave.c \
47 sci_gateway/c/sci_save.c \
48 sci_gateway/c/sci_disp.c \
49 sci_gateway/c/sci_newest.c
50
51 GATEWAY_FORTRAN_SOURCES =  sci_gateway/fortran/oldloadsave.f \
52 sci_gateway/fortran/intwrite4b.f \
53 sci_gateway/fortran/intexec.f \
54 sci_gateway/fortran/intgetf.f \
55 sci_gateway/fortran/intrat.f \
56 sci_gateway/fortran/intwritb.f \
57 sci_gateway/fortran/intgetenv.f \
58 sci_gateway/fortran/intwrite.f \
59 sci_gateway/fortran/intprint.f \
60 sci_gateway/fortran/intdisp.f \
61 sci_gateway/fortran/intread4b.f \
62 sci_gateway/fortran/intdeff.f \
63 sci_gateway/fortran/intlib.f \
64 sci_gateway/fortran/intgetio.f \
65 sci_gateway/fortran/intdiary.f \
66 sci_gateway/fortran/intread.f \
67 sci_gateway/fortran/intgetpid.f \
68 sci_gateway/fortran/inthost.f \
69 sci_gateway/fortran/intexecstr.f \
70 sci_gateway/fortran/intreadb.f \
71 sci_gateway/fortran/intfile.f
72
73 # Disable optimisation of the file intmgetl.f
74 noinst_LTLIBRARIES = libdummy-io.la
75 libdummy_io_la_SOURCES = sci_gateway/fortran/intmgetl.f
76 libdummy_io_la_FFLAGS = $(FFLAGS:-O%=)
77
78 libsciio_la_CFLAGS=  -Iincludes/ -I$(top_srcdir)/libs/MALLOC/includes/
79
80 pkglib_LTLIBRARIES = libsciio.la
81
82 libsciio_la_SOURCES = $(IO_C_SOURCES) $(IO_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
83
84 libsciio_la_LIBADD = libdummy-io.la \
85         $(top_builddir)/modules/sparse/libscisparse.la \
86         $(top_builddir)/modules/fileio/libscifileio.la \
87         $(top_builddir)/libs/MALLOC/libscimalloc.la
88
89
90
91 libdummy_io_la-intmgetl.lo: sci_gateway/fortran/intmgetl.f
92         $(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
93
94
95
96 #### Target ######
97 target=$(datadir)/io
98
99
100 #### io : Conf files ####
101 libsciio_la_rootdir = $(target)
102 libsciio_la_root_DATA = changelog.txt licence.txt readme.txt VERSION
103
104
105 #### io : Scilab macros ###
106 libsciio_la_macrodir = $(target)/macros
107 MACROS = macros/printf.sci \
108 macros/ssprint.sci \
109 macros/getscilabkeywords.sci \
110 macros/sprintf.sci \
111 macros/unix_s.sci \
112 macros/fprintf.sci \
113 macros/halt.sci \
114 macros/unix_g.sci \
115 macros/unix_w.sci \
116 macros/unix_x.sci \
117 macros/readc_.sci \
118 macros/sscanf.sci \
119 macros/input.sci \
120 macros/fscanf.sci macros/fprintf.bin \
121 macros/fscanf.bin \
122 macros/getscilabkeywords.bin \
123 macros/halt.bin \
124 macros/input.bin \
125 macros/printf.bin \
126 macros/readc_.bin \
127 macros/sprintf.bin \
128 macros/sscanf.bin \
129 macros/ssprint.bin \
130 macros/unix_g.bin \
131 macros/unix_s.bin \
132 macros/unix_w.bin \
133 macros/unix_x.bin macros/names macros/lib macros/buildmacros.sce
134
135
136 #### io : init scripts #### 
137 libsciio_la_etcdir = $(target)/etc
138 libsciio_la_etc_DATA = etc/io.quit etc/io.start
139
140 #### io : gateway declaration #### 
141 libsciio_la_sci_gatewaydir = $(target)/sci_gateway
142 libsciio_la_sci_gateway_DATA = sci_gateway/io
143
144 #### io : include files ####
145 libsciio_la_includedir=$(sciincludedir)/io
146 libsciio_la_include_HEADERS = includes/sci_getrelativefilename.h \
147 includes/gw_io.h
148
149 include $(top_srcdir)/Makefile.incl.am