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