Merge remote-tracking branch 'origin/master' into YaSp
[scilab.git] / scilab / modules / io / 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 IO_C_SOURCES = src/c/getpidc.c \
8 src/c/setenvc.c \
9 src/c/systemc.c \
10 src/c/getenvc.c \
11 src/c/v2cuniterror.c
12
13 IO_CPP_SOURCES = src/cpp/io_gw.cpp
14
15 GATEWAY_C_SOURCES = sci_gateway/c/sci_read4b.c \
16 sci_gateway/c/sci_getio.c \
17 sci_gateway/c/sci_readb.c \
18 sci_gateway/c/sci_getenv.c \
19 sci_gateway/c/sci_write.c \
20 sci_gateway/c/sci_writeb.c \
21 sci_gateway/c/sci_setenv.c \
22 sci_gateway/c/gw_io.c \
23 sci_gateway/c/sci_read.c \
24 sci_gateway/c/sci_getpid.c \
25 sci_gateway/c/sci_write4b.c \
26 sci_gateway/c/sci_save.c
27
28 GATEWAY_CPP_SOURCES = \
29         sci_gateway/cpp/sci_genlib.cpp \
30         sci_gateway/cpp/sci_load.cpp \
31         sci_gateway/cpp/sci_file.cpp \
32         sci_gateway/cpp/sci_host.cpp \
33         sci_gateway/cpp/sci_unix.cpp
34
35 libsciio_la_CPPFLAGS = \
36     -I$(srcdir)/includes/ \
37     -I$(srcdir)/src/c/ \
38     -I$(top_srcdir)/modules/core/includes/ \
39     -I$(top_srcdir)/modules/api_scilab/includes/ \
40     -I$(top_srcdir)/modules/types/includes/ \
41     -I$(top_srcdir)/modules/functions_manager/includes/ \
42     -I$(top_srcdir)/modules/symbol/includes/ \
43     -I$(top_srcdir)/modules/ast/includes/ \
44     -I$(top_srcdir)/modules/elementary_functions/includes/ \
45     -I$(top_srcdir)/modules/operations/includes/ \
46     -I$(top_srcdir)/modules/operations/includes/ \
47     -I$(top_srcdir)/modules/fileio/includes/ \
48     -I$(top_srcdir)/modules/parse/includes/ \
49     -I$(top_builddir)/modules/string/includes/ \
50     -I$(top_srcdir)/modules/system_env/includes/ \
51     -I$(top_srcdir)/modules/output_stream/includes/ \
52     -I$(top_srcdir)/modules/localization/includes/ \
53     -I$(top_srcdir)/modules/threads/includes/ \
54     -I$(top_srcdir)/modules/dynamic_link/includes \
55     $(XML_FLAGS) \
56     $(AM_CPPFLAGS)
57
58 if MAINTAINER_MODE
59 pkglib_LTLIBRARIES = libsciio.la
60 noinst_LTLIBRARIES = libsciio-algo.la
61 else
62 noinst_LTLIBRARIES = libsciio-algo.la libsciio.la
63 endif
64
65
66
67 libsciio_algo_la_SOURCES = $(IO_C_SOURCES) $(IO_CPP_SOURCES)
68 libsciio_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
69 libsciio_algo_la_CPPFLAGS = $(libsciio_la_CPPFLAGS)
70
71 # For the code check (splint)
72 CHECK_SRC= $(IO_C_SOURCES) $(GATEWAY_C_SOURCES)
73 INCLUDE_FLAGS = $(libsciio_la_CPPFLAGS)
74
75 libsciio_la_LIBADD = libsciio-algo.la
76
77
78 #### Target ######
79 modulename=io
80
81 #### io : Conf files ####
82 libsciio_la_rootdir = $(mydatadir)
83 libsciio_la_root_DATA =  license.txt 
84
85
86 ####io : init scripts ####
87 libsciio_la_etcdir = $(mydatadir)/etc
88 libsciio_la_etc_DATA = etc/io.quit etc/io.start
89
90 ####io : gateway declaration ####
91 libsciio_la_sci_gatewaydir = $(mydatadir)/sci_gateway
92 libsciio_la_sci_gateway_DATA = sci_gateway/io_gateway.xml
93
94 include $(top_srcdir)/Makefile.incl.am
95