linear_algebra plugged.
[scilab.git] / scilab / modules / history_manager / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2007 - INRIA - Allan CORNET
3 #
4 # This file is distributed under the same license as the Scilab package.
5
6 # List of the cpp files
7 HISTORY_MANAGER_CPP_SOURCES = \
8     src/cpp/HistoryFile.cpp \
9     src/cpp/HistoryManager.cpp \
10     src/cpp/HistorySearch.cpp
11 # List of the c files
12 HISTORY_MANAGER_C_SOURCES = \
13     src/c/getCommentDateSession.c
14
15 # List of the gateway c files
16 GATEWAY_C_SOURCES = \
17     sci_gateway/c/gw_history_manager.c
18 #sci_gateway/c/sci_displayhistory.c  \
19 #sci_gateway/c/sci_gethistory.c  \
20 #sci_gateway/c/sci_gethistoryfile.c  \
21 #sci_gateway/c/sci_historysize.c  \
22 #sci_gateway/c/sci_removelinehistory.c  \
23 #sci_gateway/c/sci_resethistory.c  \
24 #sci_gateway/c/sci_saveafterncommands.c  \
25 #sci_gateway/c/sci_saveconsecutivecommands.c  \
26 #sci_gateway/c/sci_savehistory.c  \
27 #sci_gateway/c/sci_sethistoryfile.c  \
28 #sci_gateway/c/sci_historymanager.c
29
30 GATEWAY_CPP_SOURCES = \
31     sci_gateway/cpp/history_manager_gw.cpp \
32     sci_gateway/cpp/sci_loadhistory.cpp \
33     sci_gateway/cpp/sci_displayhistory.cpp \
34     sci_gateway/cpp/sci_gethistory.cpp \
35     sci_gateway/cpp/sci_gethistoryfile.cpp \
36     sci_gateway/cpp/sci_historymanager.cpp \
37     sci_gateway/cpp/sci_historysize.cpp \
38     sci_gateway/cpp/sci_removelinehistory.cpp \
39     sci_gateway/cpp/sci_resethistory.cpp \
40     sci_gateway/cpp/sci_saveafterncommands.cpp \
41     sci_gateway/cpp/sci_saveconsecutivecommands.cpp \
42     sci_gateway/cpp/sci_savehistory.cpp \
43     sci_gateway/cpp/sci_sethistoryfile.cpp \
44     sci_gateway/cpp/sci_addhistory.cpp
45
46 if GUI
47
48 # List of the c files
49 HISTORY_MANAGER_C_SOURCES += \
50     src/jni/HistoryManagement_wrap.c
51
52 USEANT=1
53
54 GIWS_WRAPPERS =
55
56 if GIWS
57 BUILT_SOURCES=giws
58 endif
59
60 endif
61
62
63 libscihistory_manager_la_CFLAGS = \
64     -I$(top_srcdir)/modules/string/includes/
65
66
67 # Includes need for the compilation
68 libscihistory_manager_la_CPPFLAGS = \
69     $(JAVA_JNI_INCLUDE) \
70     -I$(srcdir)/includes/ \
71     -I$(srcdir)/src/cpp/ \
72     -I$(srcdir)/src/c/ \
73     -I$(srcdir)/src/jni/ \
74     -I$(top_srcdir)/modules/fileio/includes/ \
75     -I$(top_srcdir)/modules/api_scilab/includes \
76     -I$(top_srcdir)/modules/localization/includes \
77     -I$(top_srcdir)/libs/MALLOC/includes/ \
78     -I$(top_srcdir)/modules/console/includes/ \
79     -I$(top_srcdir)/modules/output_stream/includes/ \
80     -I$(top_srcdir)/modules/system_env/includes/ \
81     -I$(top_srcdir)/modules/operations/includes/ \
82     -I$(top_srcdir)/modules/history_browser/includes/ \
83     -I$(top_srcdir)/modules/symbol/includes/ \
84     -I$(top_srcdir)/modules/types/includes/ \
85     -I$(top_srcdir)/modules/ast/includes/ \
86     -I$(top_srcdir)/modules/string/includes/
87
88
89 # Name of the future library (.la will be replace by .so, .a, etc regarding
90 # the system)
91 pkglib_LTLIBRARIES = libscihistory_manager.la
92 noinst_LTLIBRARIES = libscihistory_manager-algo.la
93
94 libscihistory_manager_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION)
95
96 # All the sources needed by libscihistory_manager.la
97 libscihistory_manager_algo_la_SOURCES = $(HISTORY_MANAGER_C_SOURCES) $(HISTORY_MANAGER_CPP_SOURCES)
98 libscihistory_manager_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
99 libscihistory_manager_algo_la_CFLAGS = $(libscihistory_manager_la_CFLAGS)
100 libscihistory_manager_algo_la_CPPFLAGS = $(libscihistory_manager_la_CPPFLAGS)
101
102 # For the code check (splint)
103 CHECK_SRC= $(HISTORY_MANAGER_C_SOURCES) $(GATEWAY_C_SOURCES)
104 INCLUDE_FLAGS = $(libscihistory_manager_la_CFLAGS)
105
106 ## Libraries necessary
107 libscihistory_manager_la_LIBADD = libscihistory_manager-algo.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/fileio/libscifileio.la
108 modulename=history_manager
109
110 #### history_manager : Conf files ####
111 libscihistory_manager_la_rootdir = $(mydatadir)
112 libscihistory_manager_la_root_DATA =  license.txt 
113
114 #### history_manager : init scripts ####
115 libscihistory_manager_la_etcdir = $(mydatadir)/etc
116 libscihistory_manager_la_etc_DATA = etc/history_manager.quit etc/history_manager.start
117
118 #### history_manager : gateway declaration ####
119 libscihistory_manager_la_sci_gatewaydir = $(mydatadir)/sci_gateway
120 libscihistory_manager_la_sci_gateway_DATA = sci_gateway/history_manager_gateway.xml
121
122 #### history_manager : include files ####
123 libscihistory_manager_la_includedir=$(pkgincludedir)
124 libscihistory_manager_la_include_HEADERS = includes/gw_history_manager.h \
125 includes/HistoryManager.h \
126 includes/InitializeHistoryManager.h \
127 includes/TerminateHistoryManager.h \
128 includes/dynlib_history_manager.h
129
130 #### SWIG Declaration ####
131 SWIG_WRAPPERS = src/jni/HistoryManagement.i
132
133 if SWIG
134 BUILT_SOURCES = swig
135 endif
136
137 # Provides macros compilation, Java compilation, cleaning
138 include $(top_srcdir)/Makefile.incl.am