99b3b3cb633966236f0134b4158bc65a0b16e864
[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
59
60 GATEWAY_SOURCES = \
61 sci_gateway/c/gw_fileio.c \
62 sci_gateway/c/sci_mfprintf.c \
63 sci_gateway/c/sci_mscanf.c \
64 sci_gateway/c/sci_msscanf.c \
65 sci_gateway/c/sci_mfscanf.c \
66 sci_gateway/c/sci_fprintfMat.c \
67 sci_gateway/c/sci_fscanfMat.c \
68 sci_gateway/c/sci_findfiles.c \
69 sci_gateway/c/sci_maxfiles.c \
70 sci_gateway/c/sci_getdrives.c \
71 sci_gateway/c/sci_fullpath.c \
72 sci_gateway/c/sci_deletefile.c \
73 sci_gateway/c/sci_pathsep.c \
74 sci_gateway/c/sci_filesep.c \
75 sci_gateway/c/sci_getshortpathname.c \
76 sci_gateway/c/sci_getlongpathname.c \
77 sci_gateway/c/sci_fileext.c \
78 sci_gateway/c/sci_isdir.c \
79 sci_gateway/c/sci_removedir.c \
80 sci_gateway/c/sci_createdir.c \
81 sci_gateway/c/sci_chdir.c \
82 sci_gateway/c/sci_pwd.c \
83 sci_gateway/c/sci_mclearerr.c \
84 sci_gateway/c/sci_mclose.c \
85 sci_gateway/c/sci_merror.c \
86 sci_gateway/c/sci_mget.c \
87 sci_gateway/c/sci_mgetl.c \
88 sci_gateway/c/sci_mgetstr.c \
89 sci_gateway/c/sci_moef.c \
90 sci_gateway/c/sci_mopen.c \
91 sci_gateway/c/sci_mput.c \
92 sci_gateway/c/sci_mputstr.c \
93 sci_gateway/c/sci_mseek.c \
94 sci_gateway/c/sci_mtell.c \
95 sci_gateway/c/sci_fileinfo.c \
96 sci_gateway/c/sci_newest.c \
97 sci_gateway/c/sci_get_absolute_file_path.c  \
98 sci_gateway/c/sci_getrelativefilename.c \
99 sci_gateway/c/sci_copyfile.c \
100 sci_gateway/c/sci_fileparts.c \
101 sci_gateway/c/sci_movefile.c \
102 sci_gateway/c/sci_basename.c \
103 sci_gateway/c/sci_pathconvert.c \
104 sci_gateway/c/sci_isfile.c \
105 sci_gateway/c/sci_mputl.c
106
107
108 libscifileio_la_CPPFLAGS=       -I$(srcdir)/includes/ \
109                                 -I$(srcdir)/src/c/ \
110                                 -I$(top_srcdir)/libs/MALLOC/includes/ \
111                                 -I$(top_srcdir)/modules/api_scilab/includes \
112                                 -I$(top_srcdir)/modules/output_stream/includes
113
114 libscifileio_la_CFLAGS=         -I$(srcdir)/includes/ \
115                                 -I$(srcdir)/src/c/ \
116                                 -I$(top_srcdir)/libs/MALLOC/includes/ \
117                                 -I$(top_srcdir)/modules/output_stream/includes \
118                                 -I$(top_srcdir)/modules/io/includes \
119                                 -I$(top_srcdir)/modules/api_scilab/includes \
120                                 -I$(top_srcdir)/modules/string/includes \
121                                 -I$(top_srcdir)/modules/localization/includes
122
123 noinst_LTLIBRARIES = libscifileio-algo.la
124 pkglib_LTLIBRARIES = libscifileio.la
125
126 libscifileio_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION)
127
128 libscifileio_algo_la_SOURCES = $(FILEIO_SOURCES)
129 libscifileio_la_SOURCES = $(GATEWAY_SOURCES) $(GATEWAY_CPP_SOURCES)
130 libscifileio_algo_la_CFLAGS = $(libscifileio_la_CFLAGS)
131
132 # For the code check (splint)
133 CHECK_SRC= $(FILEIO_SOURCES) $(GATEWAY_SOURCES)
134 INCLUDE_FLAGS = $(libscifileio_la_CFLAGS)
135
136 # pb of order $(top_builddir)/modules/console/libsciconsole.la
137 libscifileio_la_LIBADD = libscifileio-algo.la \
138                                 $(top_builddir)/modules/string/libscistring.la \
139                                 $(top_builddir)/modules/api_scilab/libsciapi_scilab.la \
140                                 $(top_builddir)/libs/MALLOC/libscimalloc.la \
141                                 $(top_builddir)/modules/output_stream/libscioutput_stream.la \
142                                 $(top_builddir)/libs/libst/libscilibst.la
143 #### Target ######
144 modulename=fileio
145
146
147 #### fileio : Conf files ####
148 libscifileio_la_rootdir = $(mydatadir)
149 libscifileio_la_root_DATA =  license.txt 
150
151
152 #### fileio : init scripts ####
153 libscifileio_la_etcdir = $(mydatadir)/etc
154 libscifileio_la_etc_DATA = etc/fileio.quit etc/fileio.start
155
156 #### fileio : gateway declaration ####
157 libscifileio_la_sci_gatewaydir = $(mydatadir)/sci_gateway
158 libscifileio_la_sci_gateway_DATA = sci_gateway/fileio_gateway.xml
159
160 #### fileio : include files ####
161 libscifileio_la_includedir=$(pkgincludedir)
162 libscifileio_la_include_HEADERS = includes/getFullFilename.h \
163 includes/dynlib_fileio.h
164
165 include $(top_srcdir)/Makefile.incl.am