Fix the library linking declaration
[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 # 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.1-en.txt
9
10 MPI_C_SOURCES =     src/c/serialization.c \
11     src/c/deserialization.c
12
13 # List of the gateway c files
14 GATEWAY_C_SOURCES = \
15     sci_gateway/c/sci_mpi_init.c \
16     sci_gateway/c/sci_mpi_finalize.c \
17     sci_gateway/c/sci_mpi_comm_size.c \
18     sci_gateway/c/sci_mpi_comm_rank.c \
19     sci_gateway/c/gw_mpi.c \
20     sci_gateway/c/sci_mpi_recv.c \
21     sci_gateway/c/sci_mpi_send.c \
22     sci_gateway/c/sci_mpi_irecv.c \
23     sci_gateway/c/sci_mpi_isend.c \
24     sci_gateway/c/sci_mpi_bcast.c \
25     sci_gateway/c/sci_mpi_wait.c \
26     sci_gateway/c/sci_mpi_get_processor_name.c
27
28 # Includes need for the compilation
29 # MPI code needs to be compile with the openmpi 'compiler' (it is a wrapper)
30 CC = $(OPENMPI_CC)
31 libscimpi_la_CFLAGS=  -Iincludes/ \
32         -Isrc/c/ \
33         -I$(top_srcdir)/libs/MALLOC/includes/ \
34         -I$(top_srcdir)/modules/output_stream/includes \
35         -I$(top_srcdir)/modules/localization/includes \
36         -I$(top_srcdir)/modules/api_scilab/includes \
37         -DDEBUG
38 # libscimpi_la_LDFLAGS = $(LAMPI_LDFLAGS)
39 libscimpi_la_LIBADD = $(OPENMPI_LIBS)
40
41 # Name of the future library (.la will be replace by .so, .a, etc regarding 
42 # the system)
43 pkglib_LTLIBRARIES = libscimpi.la
44
45 # All the sources needed by libscimpi.la
46 libscimpi_la_SOURCES =   $(GATEWAY_C_SOURCES)  $(MPI_C_SOURCES)
47 #$(GATEWAY_FORTRAN_SOURCES) $(MPI_FORTRAN_SOURCES)
48
49
50 #### Target ######
51 modulename=mpi
52
53 #### mpi : Conf files ####
54 libscimpi_la_rootdir = $(mydatadir)
55 libscimpi_la_root_DATA = readme.txt
56
57 #### mpi : init scripts #### 
58 libscimpi_la_etcdir = $(mydatadir)/etc
59 libscimpi_la_etc_DATA = etc/mpi.quit etc/mpi.start
60
61 #### mpi : gateway declaration #### 
62 libscimpi_la_sci_gatewaydir = $(mydatadir)/sci_gateway
63 libscimpi_la_sci_gateway_DATA = sci_gateway/mpi_gateway.xml
64
65 #### mpi : include files ####
66 libscimpi_la_includedir=$(pkgincludedir)/mpi
67 libscimpi_la_include_HEADERS = includes/gw_mpi.h
68
69 # Provides macros compilation, Java compilation, cleaning
70 include $(top_srcdir)/Makefile.incl.am