get_absolute_file_path, getrelativefilename, mclearerr, merror, pathsep added.
[scilab.git] / scilab / modules / fileio / 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
7 FILEIO_C_SOURCES = src/c/FileExist.c \
8 src/c/scanf_functions.c \
9 src/c/do_xxscanf.c \
10 src/c/findfiles.c \
11 src/c/Status2Mode.c \
12 src/c/addfile.c \
13 src/c/delfile.c \
14 src/c/filesmanagement.c \
15 src/c/getfiledesc.c \
16 src/c/getfileinfo.c \
17 src/c/getfiletype.c \
18 src/c/mgeti.c \
19 src/c/mputi.c \
20 src/c/readline.c \
21 src/c/getdrives.c \
22 src/c/deleteafile.c \
23 src/c/getshortpathname.c \
24 src/c/getlongpathname.c \
25 src/c/FindFileExtension.c \
26 src/c/URIFileToFilename.c \
27 src/c/createdirectory.c \
28 src/c/isdir.c \
29 src/c/isDrive.c \
30 src/c/removedir.c \
31 src/c/cluni0.c \
32 src/c/scicurdir.c \
33 src/c/fullpath.c \
34 src/c/fileinfo.c \
35 src/c/getrelativefilename.c \
36 src/c/splitpath.c \
37 src/c/movefile.c \
38 src/c/basename.c \
39 src/c/pathconvert.c \
40 src/c/copyfile_others.c \
41 src/c/getFullFilename.c \
42 src/c/os_wfopen.c \
43 src/c/fscanfMat.c \
44 src/c/fprintfMat.c
45
46
47 GATEWAY_C_SOURCES = \
48 sci_gateway/c/gw_fileio.c \
49 sci_gateway/c/sci_mfprintf.c \
50 sci_gateway/c/sci_mscanf.c \
51 sci_gateway/c/sci_msscanf.c \
52 sci_gateway/c/sci_mfscanf.c \
53 sci_gateway/c/sci_fprintfMat.c \
54 sci_gateway/c/sci_fscanfMat.c \
55 sci_gateway/c/sci_maxfiles.c \
56 sci_gateway/c/sci_getdrives.c \
57 sci_gateway/c/sci_chdir.c \
58 sci_gateway/c/sci_pwd.c \
59 sci_gateway/c/sci_copyfile.c \
60 sci_gateway/c/sci_movefile.c
61
62 GATEWAY_CPP_SOURCES = \
63         sci_gateway/cpp/fileio_gw.cpp \
64         sci_gateway/cpp/sci_mopen.cpp \
65         sci_gateway/cpp/sci_mclose.cpp \
66         sci_gateway/cpp/sci_mget.cpp \
67         sci_gateway/cpp/sci_mput.cpp \
68         sci_gateway/cpp/sci_mputl.cpp \
69         sci_gateway/cpp/sci_mgetl.cpp \
70         sci_gateway/cpp/sci_pathconvert.cpp \
71         sci_gateway/cpp/sci_isdir.cpp \
72         sci_gateway/cpp/sci_filesep.cpp \
73         sci_gateway/cpp/sci_fileparts.cpp \
74         sci_gateway/cpp/sci_findfiles.cpp \
75         sci_gateway/cpp/sci_basename.cpp \
76         sci_gateway/cpp/sci_fileinfo.cpp \
77         sci_gateway/cpp/sci_isfile.cpp \
78         sci_gateway/cpp/sci_deletefile.cpp \
79         sci_gateway/cpp/sci_getshortpathname.cpp \
80         sci_gateway/cpp/sci_getlongpathname.cpp \
81         sci_gateway/cpp/sci_fileext.cpp \
82         sci_gateway/cpp/sci_createdir.cpp \
83         sci_gateway/cpp/sci_fullpath.cpp \
84         sci_gateway/cpp/sci_removedir.cpp \
85         sci_gateway/cpp/sci_meof.cpp \
86         sci_gateway/cpp/sci_mputstr.cpp \
87         sci_gateway/cpp/sci_mgetstr.cpp \
88         sci_gateway/cpp/sci_mseek.cpp \
89         sci_gateway/cpp/sci_mtell.cpp \
90         sci_gateway/cpp/sci_newest.cpp \
91         sci_gateway/cpp/sci_merror.cpp \
92         sci_gateway/cpp/sci_mclearerr.cpp \
93         sci_gateway/cpp/sci_get_absolute_file_path.cpp \
94         sci_gateway/cpp/sci_getrelativefilename.cpp \
95         sci_gateway/cpp/sci_pathsep.cpp
96
97 FILEIO_CPP_SOURCES = \
98         src/cpp/expandPathVariable.cpp \
99         src/cpp/mopen.cpp \
100         src/cpp/mclose.cpp \
101         src/cpp/mput.cpp \
102         src/cpp/mget.cpp \
103         src/cpp/mputl.cpp \
104         src/cpp/mgetl.cpp \
105         src/cpp/mgetstr.cpp \
106         src/cpp/filemanager.cpp \
107         src/cpp/mseek.cpp \
108         src/cpp/mtell.cpp \
109         src/cpp/newest.cpp
110
111 libscifileio_la_CPPFLAGS=       -I$(srcdir)/includes/ \
112                                 -I$(srcdir)/src/c/ \
113                                 -I$(srcdir)/src/cpp/ \
114                                 -I$(top_srcdir)/libs/MALLOC/includes/ \
115                                 -I$(top_srcdir)/modules/api_scilab/includes \
116                                 -I$(top_srcdir)/modules/output_stream/includes \
117                                 -I$(top_srcdir)/modules/operations/includes \
118                                 -I$(top_srcdir)/modules/types/includes \
119                                 -I$(top_srcdir)/modules/functions_manager/includes \
120                                 -I$(top_srcdir)/modules/abstractSyntaxTree/includes \
121                                 -I$(top_srcdir)/modules/symbol/includes \
122                                 -I$(top_srcdir)/modules/string/includes \
123                                 -I$(top_srcdir)/modules/system_env/includes \
124                                 -I$(top_srcdir)/modules/io/includes \
125                                 $(HDF5_CFLAGS)
126
127 libscifileio_la_CFLAGS=         -I$(srcdir)/includes/ \
128                                 -I$(srcdir)/src/c/ \
129                                 -I$(top_srcdir)/libs/MALLOC/includes/ \
130                                 -I$(top_srcdir)/modules/output_stream/includes \
131                                 -I$(top_srcdir)/modules/io/includes \
132                                 -I$(top_srcdir)/modules/api_scilab/includes \
133                                 -I$(top_srcdir)/modules/string/includes \
134                                 -I$(top_srcdir)/modules/system_env/includes \
135                                 -I$(top_srcdir)/modules/localization/includes \
136                                 -I$(top_srcdir)/modules/operations/includes \
137                                 $(HDF5_CFLAGS)
138
139 noinst_LTLIBRARIES = libscifileio-algo.la
140 pkglib_LTLIBRARIES = libscifileio.la
141
142 libscifileio_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION)
143
144 libscifileio_algo_la_SOURCES = $(FILEIO_C_SOURCES) $(FILEIO_CPP_SOURCES)
145 libscifileio_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
146 libscifileio_algo_la_CFLAGS = $(libscifileio_la_CFLAGS)
147 libscifileio_algo_la_CPPFLAGS = $(libscifileio_la_CPPFLAGS)
148
149 # For the code check (splint)
150 CHECK_SRC= $(FILEIO_C_SOURCES) $(FILEIO_CPP_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
151 INCLUDE_FLAGS = $(libscifileio_la_CFLAGS)
152
153 # pb of order $(top_builddir)/modules/shell/libscishell.la
154 libscifileio_la_LIBADD = libscifileio-algo.la \
155                                 $(top_builddir)/modules/string/libscistring.la \
156                                 $(top_builddir)/modules/api_scilab/libsciapi_scilab.la \
157                                 $(top_builddir)/libs/MALLOC/libscimalloc.la \
158                                 $(top_builddir)/modules/output_stream/libscioutput_stream.la \
159                                 $(top_builddir)/libs/libst/libscilibst.la
160 #### Target ######
161 modulename=fileio
162
163
164 #### fileio : Conf files ####
165 libscifileio_la_rootdir = $(mydatadir)
166 libscifileio_la_root_DATA =  license.txt version.xml
167
168
169 #### fileio : init scripts ####
170 libscifileio_la_etcdir = $(mydatadir)/etc
171 libscifileio_la_etc_DATA = etc/fileio.quit etc/fileio.start
172
173 #### fileio : gateway declaration ####
174 libscifileio_la_sci_gatewaydir = $(mydatadir)/sci_gateway
175 libscifileio_la_sci_gateway_DATA = sci_gateway/fileio_gateway.xml
176
177 #### fileio : include files ####
178 libscifileio_la_includedir=$(pkgincludedir)
179 libscifileio_la_include_HEADERS = includes/getFullFilename.h \
180 includes/dynlib_fileio.h
181
182 include $(top_srcdir)/Makefile.incl.am