ac971f6d6a1038ff05b64daa08f8c4209f9bfd8f
[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 # Copyright (C) 2012 - 2016 - Scilab Enterprises
6 #
7 # This file is hereby licensed under the terms of the GNU GPL v2.0,
8 # pursuant to article 5.3.4 of the CeCILL v.2.1.
9 # This file was originally licensed under the terms of the CeCILL v2.1,
10 # and continues to be available under such terms.
11 # For more information, see the COPYING file which you should have received
12 # along with this program.
13 #
14
15 #### Target ######
16 modulename=history_browser
17
18
19 #### history_browser : Conf files ####
20 libscihistory_browser_la_rootdir = $(mydatadir)
21 libscihistory_browser_la_root_DATA =  license.txt
22
23
24 #### history_browser : init scripts ####
25 libscihistory_browser_la_etcdir = $(mydatadir)/etc
26 libscihistory_browser_la_etc_DATA = etc/history_browser.quit \
27                                 etc/history_browser.start
28
29 include $(top_srcdir)/Makefile.incl.am
30
31 if GUI
32
33 # List of the JNI files
34 HISTORY_BROWSER_JNI_SOURCES = src/jni/CommandHistory.cpp
35
36 HISTORY_BROWSER_CPP_SOURCES = src/cpp/CommandHistory_Wrap.cpp
37
38 GIWS_WRAPPERS = src/jni/CommandHistory.giws.xml
39
40 HISTORY_BROWSER_C_SOURCES = sci_gateway/c/sci_browsehistory.c
41
42 if GIWS
43 BUILT_SOURCES=giws
44 endif
45
46 else
47 HISTORY_BROWSER_C_SOURCES = src/nohistory_browser/CommandHistory_Wrap_Fake.c
48 endif
49
50 libscihistory_browser_la_CFLAGS=
51
52
53 libscihistory_browser_la_CPPFLAGS = $(JAVA_JNI_INCLUDE) \
54     -I$(srcdir)/src/jni/ \
55     -I$(srcdir)/includes/ \
56     -I$(top_srcdir)/modules/ast/includes/ast/ \
57     -I$(top_srcdir)/modules/ast/includes/exps/ \
58     -I$(top_srcdir)/modules/ast/includes/operations/ \
59     -I$(top_srcdir)/modules/ast/includes/parse/ \
60     -I$(top_srcdir)/modules/ast/includes/symbol/ \
61     -I$(top_srcdir)/modules/ast/includes/system_env/ \
62     -I$(top_srcdir)/modules/ast/includes/types/ \
63     -I$(top_srcdir)/modules/ast/includes/analysis/ \
64     -I$(top_srcdir)/modules/jvm/includes/ \
65     -I$(top_srcdir)/modules/commons/src/jni/ \
66     -I$(top_srcdir)/modules/localization/includes/ \
67     -I$(top_srcdir)/modules/output_stream/includes/ \
68     -I$(top_srcdir)/modules/api_scilab/includes/ \
69     $(AM_CPPFLAGS)
70
71 # Without the history_browser module
72 libscihistory_browser_disable_la_CPPFLAGS = \
73     -I$(srcdir)/includes/ \
74     -I$(top_srcdir)/modules/ast/includes/ast/ \
75     -I$(top_srcdir)/modules/ast/includes/exps/ \
76     -I$(top_srcdir)/modules/ast/includes/operations/ \
77     -I$(top_srcdir)/modules/ast/includes/parse/ \
78     -I$(top_srcdir)/modules/ast/includes/symbol/ \
79     -I$(top_srcdir)/modules/ast/includes/system_env/ \
80     -I$(top_srcdir)/modules/ast/includes/types/ \
81     -I$(top_srcdir)/modules/localization/includes/ \
82     -I$(top_srcdir)/modules/output_stream/includes/ \
83      $(AM_CPPFLAGS)
84
85 HISTORY_BROWSER_DISABLE_C_SOURCES =  src/nohistory_browser/CommandHistory_Wrap_Fake.c
86 libscihistory_browser_disable_la_SOURCES = $(HISTORY_BROWSER_DISABLE_C_SOURCES)
87
88 pkglib_LTLIBRARIES = libscihistory_browser-disable.la
89
90 if GUI
91 pkglib_LTLIBRARIES += libscihistory_browser.la
92 endif
93
94 libscihistory_browser_la_LDFLAGS = $(AM_LDFLAGS)
95 libscihistory_browser_la_LIBADD = $(X_LIBS) $(X_EXTRA_LIBS)
96
97 libscihistory_browser_la_SOURCES = $(HISTORY_BROWSER_C_SOURCES) $(HISTORY_BROWSER_JNI_SOURCES) $(HISTORY_BROWSER_CPP_SOURCES)
98
99 # For the code check (splint)
100 CHECK_SRC= $(HISTORY_BROWSER_C_SOURCES)
101 INCLUDE_FLAGS = $(libscihistory_browser_la_CFLAGS)
102
103
104 #### SWIG Declaration ####
105 SWIG_WRAPPERS =
106
107 if SWIG
108 BUILT_SOURCES=swig
109 endif
110
111
112 #### history_browser : gateway declaration ####
113 libscihistory_browser_la_sci_gatewaydir = $(mydatadir)/sci_gateway
114 libscihistory_browser_la_sci_gateway_DATA =
115
116 if GUI
117 USEANT=1
118 endif