f979016b4ffe9a1e82c73b188db5bd07755e199b
[scilab.git] / scilab / modules / output_stream / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2007 - INRIA - Bruno JOFRET
3 # Copyright (C) 2010 - DIGITEO - Bruno JOFRET
4 #
5 # This file must be used under the terms of the CeCILL.
6 # This source file is licensed as described in the file COPYING, which
7 # you should have received as part of this distribution.  The terms
8 # are also available at
9 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10
11 OUTPUT_STREAM_CPP_SOURCES = src/cpp/Diary.cpp \
12         src/cpp/DiaryList.cpp \
13         src/cpp/diary_manager.cpp \
14         src/cpp/getDiaryDate.cpp \
15         src/cpp/getFullFilename.cpp
16
17 GATEWAY_CPP_SOURCES = sci_gateway/cpp/sci_diary.cpp
18
19 OUTPUT_STREAM_C_SOURCES =       src/c/erro.c \
20                                 src/c/cerro.c \
21                                 src/c/Scierror.c \
22                                 src/c/msgstore.c \
23                                 src/c/msgout.c \
24                                 src/c/msgs.c \
25                                 src/c/msgstxt.c \
26                                 src/c/basout.c \
27                                 src/c/sciprint.c \
28                                 src/c/sciprint_full.c \
29                                 src/c/errmds.c \
30                                 src/c/errorTable.c \
31                                 src/c/error.c \
32                                 src/c/error_internal.c \
33                                 src/c/do_xxprintf.c \
34                                 src/c/set_xxprintf.c \
35                                 src/c/lasterror.c
36
37 OUTPUT_STREAM_FORTRAN_SOURCES = src/fortran/wspdsp.f \
38                 src/fortran/wmdsp.f \
39                 src/fortran/strdsp.f \
40                 src/fortran/prntid.f \
41                 src/fortran/print.f \
42                 src/fortran/lspdsp.f \
43                 src/fortran/fmttyp.f \
44                 src/fortran/fmt.f \
45                 src/fortran/dspdsp.f \
46                 src/fortran/dmrdsp.f \
47                 src/fortran/dmpdsp.f \
48                 src/fortran/dmdspf.f \
49                 src/fortran/dmdsp.f \
50                 src/fortran/dldsp.f \
51                 src/fortran/basouttofile.f \
52                 src/fortran/formatnumber.f
53
54
55 GATEWAY_C_SOURCES = sci_gateway/c/gw_output_stream.c \
56                 sci_gateway/c/sci_print.c \
57                 sci_gateway/c/sci_mprintf.c \
58                 sci_gateway/c/sci_msprintf.c \
59                 sci_gateway/c/sci_disp.c
60
61 GATEWAY_FORTRAN_SOURCES = sci_gateway/fortran/intprint.f \
62                         sci_gateway/fortran/intdisp.f
63
64 libscioutput_stream_la_CFLAGS=  -I$(top_srcdir)/libs/MALLOC/includes/ \
65 -I$(srcdir)/includes/ \
66 -I$(top_srcdir)/modules/core/includes \
67 -I$(srcdir)/src/c/ \
68 -I$(top_srcdir)/modules/console/includes \
69 -I$(top_srcdir)/modules/api_scilab/includes \
70 -I$(top_srcdir)/modules/string/includes
71
72 libscioutput_stream_la_CPPFLAGS=  -I$(top_srcdir)/libs/MALLOC/includes/ \
73 -I$(srcdir)/includes/ \
74 -I$(top_srcdir)/modules/core/includes \
75 -I$(srcdir)/src/cpp/ \
76 -I$(srcdir)/src/c/ \
77 -I$(top_srcdir)/modules/api_scilab/includes \
78 -I$(top_srcdir)/modules/string/includes
79
80
81 if MAINTAINER_MODE
82 pkglib_LTLIBRARIES = libscioutput_stream.la
83 noinst_LTLIBRARIES = libscioutput_stream-algo.la
84 else
85 noinst_LTLIBRARIES = libscioutput_stream-algo.la libscioutput_stream.la
86 endif
87
88
89 if GUI
90 USEANT=1
91 endif
92
93 libscioutput_stream_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION)
94
95 libscioutput_stream_algo_la_SOURCES = $(OUTPUT_STREAM_C_SOURCES) $(OUTPUT_STREAM_CPP_SOURCES) $(OUTPUT_STREAM_FORTRAN_SOURCES) $(JNI_SOURCES)
96 libscioutput_stream_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES) $(GATEWAY_FORTRAN_SOURCES) 
97 libscioutput_stream_algo_la_CFLAGS = $(libscioutput_stream_la_CFLAGS)
98 libscioutput_stream_algo_la_CPPFLAGS = $(libscioutput_stream_la_CPPFLAGS)
99
100 # For the code check (splint)
101 CHECK_SRC= $(OUTPUT_STREAM_C_SOURCES) $(GATEWAY_C_SOURCES)
102 INCLUDE_FLAGS = $(libscioutput_stream_la_CFLAGS)
103
104 libscioutput_stream_la_LIBADD =  libscioutput_stream-algo.la 
105
106 #### Target ######
107 modulename=output_stream
108
109 #### output_stream : Conf files ####
110 libscioutput_stream_la_rootdir = $(mydatadir)
111 libscioutput_stream_la_root_DATA =  license.txt 
112
113
114 #### output_stream : init scripts ####
115 libscioutput_stream_la_etcdir = $(mydatadir)/etc
116 libscioutput_stream_la_etc_DATA = etc/output_stream.quit etc/output_stream.start
117
118 #### output_stream : gateway declaration ####
119 libscioutput_stream_la_sci_gatewaydir = $(mydatadir)/sci_gateway
120 libscioutput_stream_la_sci_gateway_DATA = sci_gateway/output_stream_gateway.xml
121
122 #### output_stream : include files ####
123 libscioutput_stream_la_includedir=$(pkgincludedir)
124 libscioutput_stream_la_include_HEADERS = includes/do_error_number.h \
125 includes/sciprint.h \
126 includes/cerro.h \
127 includes/Scierror.h
128
129 include $(top_srcdir)/Makefile.incl.am
130