make distclean really removes all
[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 = src/c/addinter.c \
8 src/c/dynamic_link.c \
9 src/c/dl_genErrorMessage.c \
10 src/c/GetFunctionByName.c \
11 src/c/ilib_verbose.c
12
13 GATEWAY_C_SOURCES = sci_gateway/c/gw_dynamic_link.c \
14 sci_gateway/c/sci_getdynlibext.c \
15 sci_gateway/c/sci_addinter.c \
16 sci_gateway/c/sci_call.c \
17 sci_gateway/c/sci_link.c \
18 sci_gateway/c/sci_ulink.c \
19 sci_gateway/c/sci_c_link.c \
20 sci_gateway/c/sci_ilib_verbose.c
21
22 GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/sci_fort.f
23
24 libscidynamic_link_la_CPPFLAGS = \
25 -I$(top_srcdir)/modules/output_stream/includes/ \
26 -I$(top_srcdir)/libs/MALLOC/includes/ \
27 -I$(top_srcdir)/modules/fileio/includes/ \
28 -I$(top_srcdir)/modules/localization/includes/ \
29 -I$(top_srcdir)/modules/string/includes/ \
30 -I$(top_srcdir)/modules/io/includes/ \
31 -I$(top_srcdir)/libs/dynamiclibrary/includes/ \
32 -I$(srcdir)/src/c/ \
33 -I$(top_srcdir)/modules/api_scilab/includes/ \
34 -I$(srcdir)/includes/ \
35 $(AM_CPPFLAGS)
36
37 if MAINTAINER_MODE
38 pkglib_LTLIBRARIES = libscidynamic_link.la
39 noinst_LTLIBRARIES = libscidynamic_link-algo.la
40 else
41 noinst_LTLIBRARIES = libscidynamic_link-algo.la libscidynamic_link.la
42 endif
43
44
45
46 libscidynamic_link_algo_la_SOURCES = $(DYNAMIC_LINK_C_SOURCES)
47 libscidynamic_link_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
48 libscidynamic_link_algo_la_CPPFLAGS = $(libscidynamic_link_la_CPPFLAGS)
49
50
51 # For the code check (splint)
52 CHECK_SRC=  $(DYNAMIC_LINK_C_SOURCES) $(GATEWAY_C_SOURCES)
53 INCLUDE_FLAGS = $(libscidynamic_link_la_CPPFLAGS)
54
55 # cyclic  
56 libscidynamic_link_la_LIBADD = libscidynamic_link-algo.la
57
58 #### Target ######
59 modulename=dynamic_link
60
61
62 #### dynamic_link : Conf files ####
63 libscidynamic_link_la_rootdir = $(mydatadir)
64 libscidynamic_link_la_root_DATA =  license.txt 
65
66 #### dynamic_link : init scripts #### 
67 libscidynamic_link_la_etcdir = $(mydatadir)/etc
68 libscidynamic_link_la_etc_DATA = etc/dynamic_link.quit etc/dynamic_link.start
69
70 #### dynamic_link : gateway declaration ####
71 libscidynamic_link_la_sci_gatewaydir = $(mydatadir)/sci_gateway
72 libscidynamic_link_la_sci_gateway_DATA = sci_gateway/dynamic_link_gateway.xml
73
74 #### dynamic_link : compilation scripts #### 
75 libscidynamic_link_la_scriptdir = $(mydatadir)/src/scripts/
76 libscidynamic_link_la_script_DATA = src/scripts/Makefile.in \
77 src/scripts/configure.ac \
78 src/scripts/ltmain.sh \
79 src/scripts/Makefile.am \
80 src/scripts/aclocal.m4
81
82 libscidynamic_link_la_script_SCRIPTS = src/scripts/compilerDetection.sh \
83 src/scripts/config.guess \
84 src/scripts/config.sub \
85 src/scripts/configure \
86 src/scripts/depcomp \
87 src/scripts/install-sh \
88 src/scripts/missing \
89 src/scripts/scicompile.sh
90
91 # This is a cache file for the dynamic link (on use)
92 CLEANFILES = src/scripts/Makefile.orig src/scripts/config.log src/scripts/config.status src/scripts/libtool
93
94 include $(top_srcdir)/Makefile.incl.am