Merge remote-tracking branch 'origin/6.1'
[scilab.git] / scilab / modules / dynamic_link / 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 DYNAMIC_LINK_C_SOURCES = \
8     src/c/dl_genErrorMessage.c \
9     src/c/GetFunctionByName.c \
10     src/c/ilib_verbose.c \
11     src/c/dynamiclibrary_others.c
12
13 DYNAMIC_LINK_CPP_SOURCES = \
14     src/cpp/dynamic_link.cpp \
15     src/cpp/addinter.cpp
16
17 GATEWAY_CPP_SOURCES = \
18     sci_gateway/cpp/dynamic_link_gw.cpp \
19     sci_gateway/cpp/sci_link.cpp \
20     sci_gateway/cpp/sci_c_link.cpp \
21     sci_gateway/cpp/sci_ulink.cpp \
22     sci_gateway/cpp/sci_ilib_verbose.cpp \
23     sci_gateway/cpp/sci_getdynlibext.cpp \
24     sci_gateway/cpp/sci_addinter.cpp \
25     sci_gateway/cpp/sci_call.cpp
26
27 libscidynamic_link_la_CPPFLAGS = \
28         -I$(srcdir)/includes/ \
29         -I$(srcdir)/src/c/ \
30     -I$(top_srcdir)/modules/ast/includes/ast/ \
31     -I$(top_srcdir)/modules/ast/includes/exps/ \
32     -I$(top_srcdir)/modules/ast/includes/operations/ \
33     -I$(top_srcdir)/modules/ast/includes/parse/ \
34     -I$(top_srcdir)/modules/ast/includes/symbol/ \
35     -I$(top_srcdir)/modules/ast/includes/system_env/ \
36     -I$(top_srcdir)/modules/ast/includes/types/ \
37     -I$(top_srcdir)/modules/ast/includes/analysis/ \
38         -I$(top_srcdir)/modules/io/includes/ \
39         -I$(top_srcdir)/modules/api_scilab/includes/ \
40         -I$(top_srcdir)/modules/output_stream/includes/ \
41         -I$(top_srcdir)/modules/functions_manager/includes/ \
42         -I$(top_srcdir)/modules/string/includes/ \
43         -I$(top_srcdir)/modules/fileio/includes/ \
44         -I$(top_srcdir)/modules/threads/includes/ \
45         -I$(top_srcdir)/modules/localization/includes/ \
46         $(VALGRIND_CFLAGS) \
47         $(AM_CPPFLAGS)
48
49 if MAINTAINER_MODE
50 pkglib_LTLIBRARIES = libscidynamic_link.la
51 noinst_LTLIBRARIES = libscidynamic_link-algo.la
52 else
53 noinst_LTLIBRARIES = libscidynamic_link-algo.la libscidynamic_link.la
54 endif
55
56 libscidynamic_link_la_includedir=$(pkgincludedir)
57 libscidynamic_link_la_include_HEADERS = includes/dynamiclibrary_others.h \
58 includes/dynamiclibrary.h
59
60 libscidynamic_link_algo_la_SOURCES = $(DYNAMIC_LINK_C_SOURCES) $(DYNAMIC_LINK_CPP_SOURCES)
61 libscidynamic_link_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES)
62 libscidynamic_link_algo_la_CPPFLAGS = $(libscidynamic_link_la_CPPFLAGS)
63
64
65 # For the code check (splint)
66 CHECK_SRC=  $(DYNAMIC_LINK_C_SOURCES) $(GATEWAY_C_SOURCES)
67 INCLUDE_FLAGS = $(libscidynamic_link_la_CPPFLAGS)
68
69 # cyclic
70 libscidynamic_link_la_LIBADD = libscidynamic_link-algo.la
71
72 #### Target ######
73 modulename=dynamic_link
74
75
76 #### dynamic_link : Conf files ####
77 libscidynamic_link_la_rootdir = $(mydatadir)
78 libscidynamic_link_la_root_DATA =  license.txt
79
80 #### dynamic_link : init scripts ####
81 libscidynamic_link_la_etcdir = $(mydatadir)/etc
82 libscidynamic_link_la_etc_DATA = \
83     etc/dynamic_link.quit \
84     etc/dynamic_link.start
85
86 #### dynamic_link : internal functions ####
87 MACROSDIRSEXT = macros/utils
88
89 #### dynamic_link : compilation scripts ####
90 libscidynamic_link_la_scriptdir = $(mydatadir)/src/scripts/
91 libscidynamic_link_la_script_DATA = src/scripts/Makefile.in \
92 src/scripts/configure.ac \
93 src/scripts/ltmain.sh \
94 src/scripts/Makefile.am \
95 src/scripts/aclocal.m4
96
97 libscidynamic_link_la_script_SCRIPTS = src/scripts/compilerDetection.sh \
98 src/scripts/config.guess \
99 src/scripts/config.sub \
100 src/scripts/configure \
101 src/scripts/depcomp \
102 src/scripts/install-sh \
103 src/scripts/missing \
104 src/scripts/scicompile.sh
105
106 # This is a cache file for the dynamic link (on use)
107 CLEANFILES = src/scripts/Makefile.orig src/scripts/config.log src/scripts/config.status src/scripts/libtool
108
109 include $(top_srcdir)/Makefile.incl.am