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