Moved back into the mexlib to keep the ABI compatibility (but still in a dedicated...
[scilab.git] / scilab / modules / dynamic_link / Makefile.am
1 ##########
2 ### Sylvestre Ledru <sylvestre.ledru@inria.fr>
3 ### INRIA - Scilab 2006 
4 ##########
5
6 DYNAMIC_LINK_C_SOURCES = src/c/addinter.c \
7 src/c/dynamic_link.c \
8 src/c/dl_genErrorMessage.c \
9 src/c/AddFunctionInTable.c \
10 src/c/ilib_verbose.c
11
12 GATEWAY_C_SOURCES = sci_gateway/c/gw_dynamic_link.c \
13 sci_gateway/c/sci_getdynlibext.c \
14 sci_gateway/c/sci_addinter.c \
15 sci_gateway/c/sci_call.c \
16 sci_gateway/c/sci_link.c \
17 sci_gateway/c/sci_ulink.c \
18 sci_gateway/c/sci_c_link.c \
19 sci_gateway/c/sci_ilib_verbose.c
20
21 GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/sci_fort.f 
22
23 libscidynamic_link_la_CFLAGS = \
24 -I$(top_srcdir)/modules/output_stream/includes \
25 -I$(top_srcdir)/modules/fileio/includes \
26 -I$(top_srcdir)/modules/io/includes \
27 -I$(top_srcdir)/libs/dynamiclibrary/includes \
28 -I$(srcdir)/src/c/ \
29 -I$(srcdir)/includes/
30
31 pkglib_LTLIBRARIES = libscidynamic_link.la
32
33 libscidynamic_link_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
34 libscidynamic_link_la_SOURCES = $(DYNAMIC_LINK_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
35
36 # For the code check (splint)
37 CHECK_SRC=  $(DYNAMIC_LINK_C_SOURCES) $(GATEWAY_C_SOURCES)
38 INCLUDE_FLAGS = $(libscidynamic_link_la_CFLAGS)
39
40 # cyclic $(top_builddir)/modules/core/libscicore.la 
41 libscidynamic_link_la_LIBADD =  $(top_builddir)/modules/arnoldi/libsciarnoldi.la $(top_builddir)/modules/elementary_functions/libscielementary_functions.la $(top_builddir)/libs/dynamiclibrary/libscidynamiclibrary.la $(top_builddir)/modules/string/libscistring.la $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la
42 #### Target ######
43 modulename=dynamic_link
44
45
46 #### dynamic_link : Conf files ####
47 libscidynamic_link_la_rootdir = $(mydatadir)
48 libscidynamic_link_la_root_DATA = changelog.txt license.txt readme.txt version.xml
49
50 #### dynamic_link : init scripts #### 
51 libscidynamic_link_la_etcdir = $(mydatadir)/etc
52 libscidynamic_link_la_etc_DATA = etc/dynamic_link.quit etc/dynamic_link.start
53
54 #### dynamic_link : gateway declaration ####
55 libscidynamic_link_la_sci_gatewaydir = $(mydatadir)/sci_gateway
56 libscidynamic_link_la_sci_gateway_DATA = sci_gateway/dynamic_link_gateway.xml
57
58 #### dynamic_link : include files ####
59 libscidynamic_link_la_includedir=$(pkgincludedir)/dynamic_link
60 libscidynamic_link_la_include_HEADERS = includes/AddFunctionInTable.h \
61 includes/addinter.h \
62 includes/dynamic_link.h \
63 includes/gw_dynamic_link.h \
64 includes/ilib_verbose.h 
65
66 #### dynamic_link : compilation scripts #### 
67 libscidynamic_link_la_scriptdir = $(mydatadir)/src/scripts/
68 libscidynamic_link_la_script_DATA = src/scripts/Makefile.in \
69 src/scripts/configure.ac \
70 src/scripts/ltmain.sh \
71 src/scripts/Makefile.am \
72 src/scripts/aclocal.m4
73
74 libscidynamic_link_la_script_SCRIPTS = src/scripts/compilerDetection.sh \
75 src/scripts/config.guess \
76 src/scripts/config.sub \
77 src/scripts/configure \
78 src/scripts/depcomp \
79 src/scripts/install-sh \
80 src/scripts/missing \
81 src/scripts/scicompile.sh
82
83 include $(top_srcdir)/Makefile.incl.am