better way to do dll (dynamic_link module)
[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$(top_srcdir)/modules/api_scilab/includes \
30 -I$(srcdir)/includes/
31
32 pkglib_LTLIBRARIES = libscidynamic_link.la
33
34 libscidynamic_link_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
35 libscidynamic_link_la_SOURCES = $(DYNAMIC_LINK_C_SOURCES) $(GATEWAY_C_SOURCES) $(GATEWAY_FORTRAN_SOURCES)
36
37 # For the code check (splint)
38 CHECK_SRC=  $(DYNAMIC_LINK_C_SOURCES) $(GATEWAY_C_SOURCES)
39 INCLUDE_FLAGS = $(libscidynamic_link_la_CFLAGS)
40
41 # cyclic $(top_builddir)/modules/core/libscicore.la 
42 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
43 #### Target ######
44 modulename=dynamic_link
45
46
47 #### dynamic_link : Conf files ####
48 libscidynamic_link_la_rootdir = $(mydatadir)
49 libscidynamic_link_la_root_DATA = changelog.txt license.txt readme.txt version.xml
50
51 #### dynamic_link : init scripts #### 
52 libscidynamic_link_la_etcdir = $(mydatadir)/etc
53 libscidynamic_link_la_etc_DATA = etc/dynamic_link.quit etc/dynamic_link.start
54
55 #### dynamic_link : gateway declaration ####
56 libscidynamic_link_la_sci_gatewaydir = $(mydatadir)/sci_gateway
57 libscidynamic_link_la_sci_gateway_DATA = sci_gateway/dynamic_link_gateway.xml
58
59 #### dynamic_link : include files ####
60 libscidynamic_link_la_includedir=$(pkgincludedir)/dynamic_link
61 libscidynamic_link_la_include_HEADERS = includes/AddFunctionInTable.h \
62 includes/addinter.h \
63 includes/dynamic_link.h \
64 includes/gw_dynamic_link.h \
65 includes/dynlib_dynamic_link.h \
66 includes/ilib_verbose.h 
67
68 #### dynamic_link : compilation scripts #### 
69 libscidynamic_link_la_scriptdir = $(mydatadir)/src/scripts/
70 libscidynamic_link_la_script_DATA = src/scripts/Makefile.in \
71 src/scripts/configure.ac \
72 src/scripts/ltmain.sh \
73 src/scripts/Makefile.am \
74 src/scripts/aclocal.m4
75
76 libscidynamic_link_la_script_SCRIPTS = src/scripts/compilerDetection.sh \
77 src/scripts/config.guess \
78 src/scripts/config.sub \
79 src/scripts/configure \
80 src/scripts/depcomp \
81 src/scripts/install-sh \
82 src/scripts/missing \
83 src/scripts/scicompile.sh
84
85 include $(top_srcdir)/Makefile.incl.am