Moved back into the mexlib to keep the ABI compatibility (but still in a dedicated...
[scilab.git] / scilab / modules / mexlib / Makefile.am
1 ##########
2 ### Sylvestre Ledru <sylvestre.ledru@inria.fr>
3 ### INRIA - Scilab 2006
4 ##########
5
6 MEXLIB_C_SOURCES = src/c/mexlib.c \
7 src/c/sci_gateway.c
8
9 MEXLIB_FLAGS = -I$(srcdir)/includes/ -I$(top_srcdir)/modules/output_stream/includes/ -I$(top_srcdir)/modules/call_scilab/includes/
10
11 MEXLIB_FLAGS += -I$(top_srcdir)/modules/string/includes
12
13
14 MEXLIB_DEP = $(top_builddir)/modules/core/libscicore.la \
15         $(top_builddir)/modules/dynamic_link/libscidynamic_link.la \
16         $(top_builddir)/modules/data_structures/libscidata_structures.la \
17         $(top_builddir)/modules/output_stream/libscioutput_stream.la \
18     $(top_builddir)/modules/string/libscistring.la
19
20 pkglib_LTLIBRARIES = libmat.la libmex.la libmx.la
21
22 libmex_la_SOURCES = $(MEXLIB_C_SOURCES)
23
24 libmex_la_LIBADD = $(MEXLIB_DEP)
25
26 libmex_la_CFLAGS=  $(MEXLIB_FLAGS)
27
28 libmex_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
29
30 libmat_la_SOURCES = $(MEXLIB_C_SOURCES)
31
32 libmat_la_LIBADD = $(MEXLIB_DEP)
33
34 libmat_la_CFLAGS=  $(MEXLIB_FLAGS)
35
36 libmat_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
37
38 libmx_la_SOURCES = $(MEXLIB_C_SOURCES)
39
40 libmx_la_LIBADD = $(MEXLIB_DEP)
41
42 libmx_la_CFLAGS=  $(MEXLIB_FLAGS)
43
44 libmx_la_LDFLAGS = -version-info $(SCILAB_LIBRARY_VERSION)
45
46 #### Target ######
47 modulename=mexlib
48
49 # For the code check (splint)
50 CHECK_SRC= $(MEXLIB_C_SOURCES)
51 INCLUDE_FLAGS = $(MEXLIB_FLAGS)
52
53 #### mexlib : Conf files ####
54 libmex_la_rootdir = $(mydatadir)
55 libmex_la_root_DATA = changelog.txt license.txt readme.txt version.xml
56
57 #### mexlib : init scripts ####
58 libmex_la_etcdir = $(mydatadir)/etc
59 libmex_la_etc_DATA = etc/mexlib.quit etc/mexlib.start
60
61
62 #### mexlib : include files ####
63 libmex_la_includedir=$(pkgincludedir)/mexlib
64 libmex_la_include_HEADERS = includes/mex.h \
65 includes/sci_gateway.h
66
67 include $(top_srcdir)/Makefile.incl.am