Bump version numbers to 6.2.0
[scilab.git] / scilab / modules / mpi / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2011 - DIGITEO - Sylvestre LEDRU
3 #
4 # Copyright (C) 2012 - 2016 - Scilab Enterprises
5 #
6 # This file is hereby licensed under the terms of the GNU GPL v2.0,
7 # pursuant to article 5.3.4 of the CeCILL v.2.1.
8 # This file was originally licensed under the terms of the CeCILL v2.1,
9 # and continues to be available under such terms.
10 # For more information, see the COPYING file which you should have received
11 # along with this program.
12
13 MPI_CPP_SOURCES = \
14     src/cpp/getOptionalComm.cpp
15
16 MPI_C_SOURCES = \
17     src/c/serialization.c \
18     src/c/deserialization.c
19
20 # List of the gateway c files
21 GATEWAY_C_SOURCES = \
22     sci_gateway/c/sci_mpi_init.c \
23     sci_gateway/c/sci_mpi_finalize.c \
24     sci_gateway/c/sci_mpi_comm_size.c \
25     sci_gateway/c/sci_mpi_comm_rank.c \
26     sci_gateway/c/sci_mpi_recv.c \
27     sci_gateway/c/sci_mpi_send.c \
28     sci_gateway/c/sci_mpi_irecv.c \
29     sci_gateway/c/sci_mpi_isend.c \
30     sci_gateway/c/sci_mpi_bcast.c \
31     sci_gateway/c/sci_mpi_wait.c \
32     sci_gateway/c/sci_mpi_get_processor_name.c
33
34 GATEWAY_CPP_SOURCES = \
35     sci_gateway/cpp/sci_mpi_createComm.cpp
36
37 # Includes need for the compilation
38 # MPI code needs to be compile with the openmpi 'compiler' (it is a wrapper)
39 CC = $(OPENMPI_CC)
40 libscimpi_la_CPPFLAGS=  -Iincludes/ \
41     -Isrc/c/ \
42     -I$(top_srcdir)/modules/ast/includes/ast/ \
43     -I$(top_srcdir)/modules/ast/includes/exps/ \
44     -I$(top_srcdir)/modules/ast/includes/operations/ \
45     -I$(top_srcdir)/modules/ast/includes/parse/ \
46     -I$(top_srcdir)/modules/ast/includes/symbol/ \
47     -I$(top_srcdir)/modules/ast/includes/system_env/ \
48     -I$(top_srcdir)/modules/ast/includes/types/ \
49     -I$(top_srcdir)/modules/ast/includes/analysis/ \
50     -I$(top_srcdir)/modules/string/includes \
51     -I$(top_srcdir)/modules/dynamic_link/includes \
52     -I$(top_srcdir)/modules/output_stream/includes \
53     -I$(top_srcdir)/modules/localization/includes \
54     -I$(top_srcdir)/modules/api_scilab/includes \
55     -I$(top_srcdir)/modules/elementary_functions/includes \
56     $(OPENMPI_CFLAGS)
57
58 # libscimpi_la_LDFLAGS = $(LAMPI_LDFLAGS)
59 libscimpi_la_LIBADD = $(OPENMPI_LIBS)
60
61 # Name of the future library (.la will be replace by .so, .a, etc regarding
62 # the system)
63 pkglib_LTLIBRARIES = libscimpi.la
64
65 # All the sources needed by libscimpi.la
66 libscimpi_la_SOURCES = $(GATEWAY_C_SOURCES) $(GATEWAY_CPP_SOURCES) $(MPI_C_SOURCES) $(MPI_CPP_SOURCES)
67 #$(GATEWAY_FORTRAN_SOURCES) $(MPI_FORTRAN_SOURCES)
68
69
70 #### Target ######
71 modulename=mpi
72
73 #### mpi : Conf files ####
74 libscimpi_la_rootdir = $(mydatadir)
75 libscimpi_la_root_DATA = readme.txt
76
77 #### mpi : init scripts ####
78 libscimpi_la_etcdir = $(mydatadir)/etc
79 libscimpi_la_etc_DATA = etc/mpi.quit etc/mpi.start
80
81 #### mpi : gateway declaration ####
82 libscimpi_la_sci_gatewaydir = $(mydatadir)/sci_gateway
83 libscimpi_la_sci_gateway_DATA = sci_gateway/mpi_gateway.xml
84
85 #### mpi : include files ####
86 libscimpi_la_includedir=$(pkgincludedir)/mpi
87 libscimpi_la_include_HEADERS = includes/gw_mpi.h \
88                                includes/dynlib_mpi.h \
89                                includes/sciMpiComm.hxx
90
91 # Provides macros compilation, Java compilation, cleaning
92 include $(top_srcdir)/Makefile.incl.am