The wrong OpenMP CXXFLAGS was used (it was using OPENMP_CPPFLAGS instead of OPENMP_CX...
[scilab.git] / scilab / modules / parallel / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2010 - DIGITEO - Allan CORNET
3 #
4 # This file must be used under the terms of the CeCILL.
5 # This source file is licensed as described in the file COPYING, which
6 # you should have received as part of this distribution.  The terms
7 # are also available at
8 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10 #PARALLEL_CXX_SOURCES =
11
12 GATEWAY_CXX_SOURCES = sci_gateway/cpp/sci_parallel_run.cpp
13
14 #PARALLEL_C_SOURCES =
15
16 GATEWAY_C_SOURCES = sci_gateway/c/gw_parallel.c \
17 sci_gateway/c/sci_parallel_concurrency.c
18
19 libsciparallel_la_CPPFLAGS= $(OPENMP_CXXFLAGS) \
20 -I$(srcdir)/includes/ \
21 -I$(top_srcdir)/modules/core/includes/ \
22 -I$(srcdir)/src/cpp/ \
23 -I$(top_srcdir)/modules/api_scilab/includes/ \
24 -I$(top_srcdir)/modules/localization/includes/ \
25 -I$(top_srcdir)/modules/string/includes/ \
26 -I$(top_srcdir)/modules/output_stream/includes/ \
27 -I$(top_srcdir)/modules/parameters/includes/ \
28 -I$(top_srcdir)/modules/dynamic_link/includes/ \
29 $(AM_CPPFLAGS)
30
31
32 pkglib_LTLIBRARIES = libsciparallel.la
33
34 libsciparallel_la_LIBADD = $(OPENMP_LIBS)
35
36 if OPENMP
37 libsciparallel_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CXX_SOURCES)
38
39 else
40 libsciparallel_la_SOURCES = src/noparallel/noparallel.h \
41 src/noparallel/noparallel.c
42 endif
43
44 # For the code check (splint)
45 CHECK_SRC= $(PARALLEL_C_SOURCES) $(GATEWAY_C_SOURCES)
46 INCLUDE_FLAGS = $(libsciparallel_la_CPPFLAGS)
47
48 #### Target ######
49 modulename=parallel
50
51 #### parallel : Conf files ####
52 libsciparallel_la_rootdir = $(mydatadir)
53 libsciparallel_la_root_DATA = license.txt 
54
55
56 #### parallel : init scripts ####
57 libsciparallel_la_etcdir = $(mydatadir)/etc
58 libsciparallel_la_etc_DATA = etc/parallel.quit etc/parallel.start
59
60 #### parallel : gateway declaration ####
61 libsciparallel_la_sci_gatewaydir = $(mydatadir)/sci_gateway
62 libsciparallel_la_sci_gateway_DATA = sci_gateway/parallel_gateway.xml
63
64 #### parallel : include files ####
65 libsciparallel_la_includedir=$(pkgincludedir)
66 libsciparallel_la_include_HEADERS =
67
68 include $(top_srcdir)/Makefile.incl.am
69
70