tclsci plugged
[scilab.git] / scilab / modules / tclsci / 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 if TCLTK
8
9 TCLSCI_C_SOURCES = \
10     src/c/TCL_Global.c \
11     src/c/InitTclTk.c \
12     src/c/setenvtcl.c \
13     src/c/InitializeTclTk.c \
14     src/c/TerminateTclTk.c \
15     src/c/setvar.c \
16     src/c/TCL_ArrayDim.c \
17     src/c/TCL_ArrayExist.c \
18     src/c/TCL_ArrayGetVar.c \
19     src/c/TCL_ArraySize.c \
20     src/c/TCL_Command.c \
21     src/c/GlobalTclInterp.c \
22     src/c/TCL_getErrorLine.c \
23     src/c/LoadUnloadTclsci.c
24
25 TCLSCI_CPP_SOURCES = \
26     src/cpp/ScilabEval.cpp
27
28 GATEWAY_CPP_SOURCES = \
29         sci_gateway/cpp/tclsci_gw.cpp
30
31 GATEWAY_C_SOURCES = \
32     sci_gateway/c/sci_opentk.c \
33     sci_gateway/c/sci_TCL_SetVar.c \
34     sci_gateway/c/sci_TCL_ExistVar.c \
35     sci_gateway/c/sci_TCL_DoOneEvent.c \
36     sci_gateway/c/sci_TCL_UnsetVar.c \
37     sci_gateway/c/sci_TCL_ExistInterp.c \
38     sci_gateway/c/sci_TCL_EvalStr.c \
39     sci_gateway/c/sci_TCL_DeleteInterp.c \
40     sci_gateway/c/sci_TCL_GetVersion.c \
41     sci_gateway/c/sci_TCL_EvalFile.c \
42     sci_gateway/c/sci_TCL_GetVar.c \
43     sci_gateway/c/sci_TCL_ExistArray.c \
44     sci_gateway/c/sci_TCL_UpVar.c
45
46 else
47
48 TCLSCI_C_SOURCES = src/notclsci/notclsci.c
49 TCLSCI_CPP_SOURCES =
50 GATEWAY_CPP_SOURCES =
51 GATEWAY_C_SOURCES =
52
53 endif
54
55 pkglib_LTLIBRARIES = libscitclsci.la
56 noinst_LTLIBRARIES = libscitclsci-algo.la
57
58 libscitclsci_la_LDFLAGS = $(AM_LDFLAGS)
59
60 libscitclsci_la_CPPFLAGS= \
61     -I$(srcdir)/includes/ \
62     -I$(srcdir)/src/c \
63     -I$(srcdir)/sci_gateway/c/ \
64     $(TCL_INC_PATH) \
65     $(TK_INC_PATH) \
66     -I$(top_srcdir)/modules/ast/includes/ast/ \
67     -I$(top_srcdir)/modules/ast/includes/exps/ \
68     -I$(top_srcdir)/modules/ast/includes/operations/ \
69     -I$(top_srcdir)/modules/ast/includes/parse/ \
70     -I$(top_srcdir)/modules/ast/includes/symbol/ \
71     -I$(top_srcdir)/modules/ast/includes/system_env/ \
72     -I$(top_srcdir)/modules/ast/includes/types/ \
73     -I$(top_srcdir)/modules/ast/includes/analysis/ \
74     -I$(top_srcdir)/modules/action_binding/includes/ \
75     -I$(top_srcdir)/modules/fileio/includes/ \
76     -I$(top_srcdir)/modules/call_scilab/includes/ \
77     -I$(top_srcdir)/modules/output_stream/includes/ \
78     -I$(top_srcdir)/modules/localization/includes/ \
79     -I$(top_srcdir)/modules/api_scilab/includes/ \
80     -I$(top_srcdir)/modules/threads/includes/ \
81     -I$(top_srcdir)/modules/string/includes/ \
82     -I$(top_srcdir)/modules/dynamic_link/includes/ \
83     -I$(top_srcdir)/modules/console/includes/ \
84     $(AM_CPPFLAGS)
85
86 libscitclsci_algo_la_SOURCES = $(TCLSCI_CPP_SOURCES) $(TCLSCI_C_SOURCES)
87 libscitclsci_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
88 libscitclsci_algo_la_CPPFLAGS = $(libscitclsci_la_CPPFLAGS)
89
90 # For the code check (splint)
91 CHECK_SRC= $(libscitclsci_la_SOURCES)
92 INCLUDE_FLAGS = $(libscitclsci_la_CPPFLAGS)
93
94 libscitclsci_la_LIBADD = libscitclsci-algo.la $(TCLTK_LIBS)
95 #### Target ######
96 modulename=tclsci
97
98 #### tclsci : Conf files ####
99 libscitclsci_la_rootdir = $(mydatadir)
100 libscitclsci_la_root_DATA =  license.txt
101
102 #### tclsci : init scripts ####
103 libscitclsci_la_etcdir = $(mydatadir)/etc
104 libscitclsci_la_etc_DATA = \
105     etc/tclsci.quit \
106     etc/tclsci.start
107
108 ### TCL macros ###
109 libscitclsci_la_tcldir = $(mydatadir)
110 nobase_libscitclsci_la_tcl_DATA = \
111 tcl/utils/Notebook.tcl \
112 tcl/utils/Balloon.tcl \
113 tcl/utils/Combobox.tcl \
114 tcl/sciGUI/data/initial.help \
115 tcl/sciGUI/data/dontshow.txt \
116 tcl/sciGUI/data/tp00.gif \
117 tcl/sciGUI/data/tp01.gif \
118 tcl/sciGUI/data/tp10.gif \
119 tcl/sciGUI/data/tp02.gif \
120 tcl/sciGUI/data/initial \
121 tcl/sciGUI/data/tp04.gif \
122 tcl/sciGUI/data/giftable.txt \
123 tcl/sciGUI/data/ndemo_tx01.txt \
124 tcl/sciGUI/data/tp05.gif \
125 tcl/sciGUI/data/error.gif \
126 tcl/sciGUI/data/tp06.gif \
127 tcl/sciGUI/data/tp15.gif \
128 tcl/sciGUI/data/tp16.gif \
129 tcl/sciGUI/data/info.gif \
130 tcl/sciGUI/data/tp08.gif \
131 tcl/sciGUI/data/tp17.gif \
132 tcl/sciGUI/data/scilab01.gif \
133 tcl/sciGUI/data/passwd.gif \
134 tcl/sciGUI/data/warning.gif \
135 tcl/sciGUI/data/question.gif \
136 tcl/sciGUI/data/hourglass.gif \
137 tcl/sciGUI/data/icontable.txt \
138 tcl/sciGUI/local_extra/combobox-2.3/ANNOUNCE.txt \
139 tcl/sciGUI/local_extra/combobox-2.3/combobox.tcl \
140 tcl/sciGUI/local_extra/combobox-2.3/README.txt \
141 tcl/sciGUI/local_extra/combobox-2.3/combobox.html \
142 tcl/sciGUI/local_extra/combobox-2.3/example.tcl \
143 tcl/sciGUI/local_extra/balloonhelp.tcl \
144 tcl/sciGUI/local_extra/rnotebook.tcl \
145 tcl/sciGUI/local_extra/spinbutton.tcl \
146 tcl/sciGUI/license.txt \
147 tcl/sciGUI/sciGUI.tcl \
148 tcl/sciGUI/sciBrowseVar.tcl \
149 tcl/sciGUI/sciEditVar.tcl \
150 tcl/TK_Scilab.tcl
151
152 #### tclsci : gateway declaration ####
153 libscitclsci_la_sci_gatewaydir = $(mydatadir)/sci_gateway
154 libscitclsci_la_sci_gateway_DATA = sci_gateway/tclsci_gateway.xml
155
156 include $(top_srcdir)/Makefile.incl.am
157