Plug back 'unzoom' function and 'unzoom' buttons.
[scilab.git] / scilab / modules / history_browser / Makefile.am
1 #
2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) DIGITEO - 2010 - Allan CORNET
4
5 # This file must be used under the terms of the CeCILL.
6 # This source file is licensed as described in the file COPYING, which
7 # you should have received as part of this distribution.  The terms
8 # are also available at    
9 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10 #
11
12 #### Target ######
13 modulename=history_browser
14
15
16 #### history_browser : Conf files ####
17 libscihistory_browser_la_rootdir = $(mydatadir)
18 libscihistory_browser_la_root_DATA =  license.txt 
19
20
21 #### history_browser : init scripts ####
22 libscihistory_browser_la_etcdir = $(mydatadir)/etc
23 libscihistory_browser_la_etc_DATA = etc/history_browser.quit \
24                                 etc/history_browser.start
25
26 if GUI
27
28 # List of the JNI files
29 HISTORY_BROWSER_JNI_SOURCES = src/jni/CommandHistory.cpp
30
31 HISTORY_BROWSER_CPP_SOURCES = src/cpp/CommandHistory_Wrap.cpp
32
33 HISTORY_BROWSER_C_SOURCES = 
34
35 # List of the gateway c files
36 GATEWAY_C_SOURCES =  sci_gateway/c/gw_history_browser.c \
37 sci_gateway/c/sci_browsehistory.c
38
39 else
40 HISTORY_BROWSER_C_SOURCES = src/nohistory_browser/CommandHistory_Wrap_Fake.c
41 endif
42
43 libscihistory_browser_la_CFLAGS= -I$(srcdir)/includes/ \
44 -I$(srcdir)/src/c/ \
45 -I$(top_srcdir)/modules/api_scilab/includes \
46 -I$(top_srcdir)/libs/MALLOC/includes
47
48 libscihistory_browser_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
49 -I$(srcdir)/src/jni/ \
50 -I$(srcdir)/includes/ \
51 -I$(top_srcdir)/modules/jvm/includes/ \
52 -I$(top_srcdir)/modules/commons/src/jni/
53
54 # Without the history_browser module 
55 libscihistory_browser_disable_la_CFLAGS = -I$(srcdir)/includes/
56 HISTORY_BROWSER_DISABLE_C_SOURCES =  src/nohistory_browser/CommandHistory_Wrap_Fake.c
57 libscihistory_browser_disable_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)
58 libscihistory_browser_disable_la_SOURCES = $(HISTORY_BROWSER_DISABLE_C_SOURCES)
59
60 pkglib_LTLIBRARIES = libscihistory_browser-disable.la
61
62 if GUI
63 pkglib_LTLIBRARIES += libscihistory_browser.la 
64 endif
65
66 libscihistory_browser_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LD_FLAGS)  $(X_LIBS) $(X_EXTRA_LIBS)
67
68 libscihistory_browser_la_SOURCES = $(HISTORY_BROWSER_C_SOURCES) $(HISTORY_BROWSER_JNI_SOURCES) $(HISTORY_BROWSER_CPP_SOURCES) $(GATEWAY_C_SOURCES)
69
70 # For the code check (splint)
71 CHECK_SRC= $(HISTORY_BROWSER_C_SOURCES)
72 INCLUDE_FLAGS = $(libscihistory_browser_la_CFLAGS)
73
74 GIWS_WRAPPERS = src/jni/CommandHistory.giws.xml
75 SWIG_WRAPPERS = 
76
77 BUILT_SOURCES=
78 if GIWS
79 BUILT_SOURCES+=giws
80 endif
81 if SWIG
82 BUILT_SOURCES+=swig
83 endif
84
85
86 #### history_browser : gateway declaration ####
87 libscihistory_browser_la_sci_gatewaydir = $(mydatadir)/sci_gateway
88 libscihistory_browser_la_sci_gateway_DATA = sci_gateway/history_browser_gateway.xml
89
90 if GUI
91 USEANT=1
92 endif
93
94 include $(top_srcdir)/Makefile.incl.am