Bug 13721 fixed: Could not write in a file opened in r+ mode
[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_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/mclose.c \
20 src/c/meof.c \
21 src/c/merror.c \
22 src/c/mget.c \
23 src/c/mgetl.c \
24 src/c/mgeti.c \
25 src/c/mgetstr.c \
26 src/c/mopen.c \
27 src/c/mput.c \
28 src/c/mputi.c \
29 src/c/mputstr.c \
30 src/c/mseek.c \
31 src/c/mtell.c \
32 src/c/readline.c \
33 src/c/getdrives.c \
34 src/c/deleteafile.c \
35 src/c/getshortpathname.c \
36 src/c/getlongpathname.c \
37 src/c/FindFileExtension.c \
38 src/c/URIFileToFilename.c \
39 src/c/createdirectory.c \
40 src/c/isdir.c \
41 src/c/isDrive.c \
42 src/c/removedir.c \
43 src/c/cluni0.c \
44 src/c/scicurdir.c \
45 src/c/fullpath.c \
46 src/c/fileinfo.c \
47 src/c/getrelativefilename.c \
48 src/c/splitpath.c \
49 src/c/movefile.c \
50 src/c/expandPathVariable.c \
51 src/c/basename.c \
52 src/c/pathconvert.c \
53 src/c/copyfile_others.c \
54 src/c/getFullFilename.c \
55 src/c/mputl.c \
56 src/c/fscanfMat.c \
57 src/c/fprintfMat.c \
58 src/c/createtempfilename.c \
59 src/c/dlManager.c \
60 src/c/convert_tools.c
61
62 GATEWAY_SOURCES = \
63 sci_gateway/c/gw_fileio.c \
64 sci_gateway/c/sci_mfprintf.c \
65 sci_gateway/c/sci_mscanf.c \
66 sci_gateway/c/sci_msscanf.c \
67 sci_gateway/c/sci_mfscanf.c \
68 sci_gateway/c/sci_fprintfMat.c \
69 sci_gateway/c/sci_fscanfMat.c \
70 sci_gateway/c/sci_findfiles.c \
71 sci_gateway/c/sci_maxfiles.c \
72 sci_gateway/c/sci_getdrives.c \
73 sci_gateway/c/sci_fullpath.c \
74 sci_gateway/c/sci_deletefile.c \
75 sci_gateway/c/sci_pathsep.c \
76 sci_gateway/c/sci_filesep.c \
77 sci_gateway/c/sci_getshortpathname.c \
78 sci_gateway/c/sci_getlongpathname.c \
79 sci_gateway/c/sci_fileext.c \
80 sci_gateway/c/sci_isdir.c \
81 sci_gateway/c/sci_removedir.c \
82 sci_gateway/c/sci_createdir.c \
83 sci_gateway/c/sci_chdir.c \
84 sci_gateway/c/sci_pwd.c \
85 sci_gateway/c/sci_mclearerr.c \
86 sci_gateway/c/sci_mclose.c \
87 sci_gateway/c/sci_merror.c \
88 sci_gateway/c/sci_mget.c \
89 sci_gateway/c/sci_mgetl.c \
90 sci_gateway/c/sci_mgetstr.c \
91 sci_gateway/c/sci_moef.c \
92 sci_gateway/c/sci_mopen.c \
93 sci_gateway/c/sci_mput.c \
94 sci_gateway/c/sci_mputstr.c \
95 sci_gateway/c/sci_mseek.c \
96 sci_gateway/c/sci_mtell.c \
97 sci_gateway/c/sci_fileinfo.c \
98 sci_gateway/c/sci_newest.c \
99 sci_gateway/c/sci_get_absolute_file_path.c  \
100 sci_gateway/c/sci_getrelativefilename.c \
101 sci_gateway/c/sci_copyfile.c \
102 sci_gateway/c/sci_fileparts.c \
103 sci_gateway/c/sci_movefile.c \
104 sci_gateway/c/sci_basename.c \
105 sci_gateway/c/sci_pathconvert.c \
106 sci_gateway/c/sci_isfile.c \
107 sci_gateway/c/sci_mputl.c \
108 sci_gateway/c/sci_tempname.c \
109 sci_gateway/c/sci_getURL.c \
110 sci_gateway/c/sci_splitURL.c
111
112
113 libscifileio_la_CPPFLAGS = -I$(srcdir)/includes/ \
114                                 -I$(srcdir)/src/c/ \
115                                 -I$(top_srcdir)/modules/output_stream/includes/ \
116                                 -I$(top_srcdir)/modules/io/includes/ \
117                                 -I$(top_srcdir)/modules/api_scilab/includes/ \
118                                 -I$(top_srcdir)/modules/string/includes/ \
119                                 -I$(top_srcdir)/modules/localization/includes/ \
120                                 -I$(top_srcdir)/modules/preferences/includes/ \
121                                 $(XML_FLAGS) \
122                                 $(CURL_CFLAGS) \
123                                 $(AM_CPPFLAGS)
124
125 if MAINTAINER_MODE
126 pkglib_LTLIBRARIES = libscifileio.la
127 noinst_LTLIBRARIES = libscifileio-algo.la
128 else
129 noinst_LTLIBRARIES = libscifileio-algo.la libscifileio.la
130 endif
131
132
133
134 libscifileio_algo_la_SOURCES = $(FILEIO_SOURCES)
135 libscifileio_la_SOURCES = $(GATEWAY_SOURCES) $(GATEWAY_CXX_SOURCES)
136 libscifileio_algo_la_CPPFLAGS = $(libscifileio_la_CPPFLAGS)
137 libscifileio_algo_la_LIBADD = $(CURL_LIBS)
138
139 # For the code check (splint)
140 CHECK_SRC= $(FILEIO_SOURCES) $(GATEWAY_SOURCES)
141 INCLUDE_FLAGS = $(libscifileio_la_CPPFLAGS)
142
143 # pb of order $(top_builddir)/modules/console/libsciconsole.la
144 libscifileio_la_LIBADD = libscifileio-algo.la $(CURL_LIBS)
145
146 #### Target ######
147 modulename=fileio
148
149
150 #### fileio : Conf files ####
151 libscifileio_la_rootdir = $(mydatadir)
152 libscifileio_la_root_DATA =  license.txt 
153
154
155 #### fileio : init scripts ####
156 libscifileio_la_etcdir = $(mydatadir)/etc
157 libscifileio_la_etc_DATA = etc/fileio.quit etc/fileio.start
158
159 #### fileio : gateway declaration ####
160 libscifileio_la_sci_gatewaydir = $(mydatadir)/sci_gateway
161 libscifileio_la_sci_gateway_DATA = sci_gateway/fileio_gateway.xml
162
163 #### fileio : include files ####
164 libscifileio_la_includedir=$(pkgincludedir)
165 libscifileio_la_include_HEADERS = includes/getFullFilename.h \
166 includes/dynlib_fileio.h
167
168 include $(top_srcdir)/Makefile.incl.am