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