Fix the library linking declaration
[scilab.git] / scilab / modules / fftw / Makefile.am
1 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2 # Copyright (C) 2007 - INRIA - Sylvestre LEDRU
3 # Copyright (C) 2007 - INRIA - Allan CORNET
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.1-en.txt
10
11 modulename=fftw
12
13 if MAINTAINER_MODE
14 pkglib_LTLIBRARIES = libscifftw.la
15 noinst_LTLIBRARIES =
16 else
17 noinst_LTLIBRARIES = libscifftw.la
18 endif
19
20
21 if FFTW
22 noinst_LTLIBRARIES += libscifftw-algo.la
23 endif
24
25 libscifftw_la_LDFLAGS = $(AM_LDFLAGS)
26
27 #### fftw : Conf files ####
28 libscifftw_la_rootdir = $(mydatadir)
29
30 #### fftw : init scripts ####
31 libscifftw_la_etcdir = $(mydatadir)/etc
32 libscifftw_la_etc_DATA = etc/fftw.quit etc/fftw.start
33
34 if FFTW
35
36 FFTW_C_SOURCES = src/c/callfftw.c \
37 src/c/fftwlibname.c \
38 src/c/fftw_utilities.c \
39 src/c/sci_data_utilities.c \
40 src/c/with_fftw.c
41
42 GATEWAY_C_SOURCES = sci_gateway/c/gw_fftw.c \
43         sci_gateway/c/sci_fftwlibraryisloaded.c \
44         sci_gateway/c/sci_disposefftwlibrary.c \
45         sci_gateway/c/sci_fftw.c \
46         sci_gateway/c/sci_fftw_flags.c \
47         sci_gateway/c/sci_loadfftwlibrary.c \
48         sci_gateway/c/sci_get_fftw_wisdom.c \
49         sci_gateway/c/sci_set_fftw_wisdom.c \
50         sci_gateway/c/sci_fftw_forget_wisdom.c \
51         sci_gateway/c/sci_dct.c \
52         sci_gateway/c/sci_dst.c 
53
54 #### fftw : Conf files ####
55 libscifftw_la_root_DATA =  license.txt 
56
57 #### fftw : gateway declaration ####
58 libscifftw_la_sci_gatewaydir = $(mydatadir)/sci_gateway
59 libscifftw_la_sci_gateway_DATA = sci_gateway/fftw_gateway.xml
60
61 libscifftw_algo_la_SOURCES = $(FFTW_C_SOURCES)
62 libscifftw_la_SOURCES = $(GATEWAY_C_SOURCES)
63 libscifftw_algo_la_CPPFLAGS = $(libscifftw_la_CPPFLAGS)
64
65 # For the code check (splint)
66 CHECK_SRC= $(FFTW_C_SOURCES) $(GATEWAY_C_SOURCES)
67 INCLUDE_FLAGS = $(libscifftw_la_CPPFLAGS)
68
69 libscifftw_la_LIBADD = libscifftw-algo.la $(FFTW3_LIB)
70
71 libscifftw_la_CPPFLAGS = -I$(srcdir)/includes/ \
72                         -I$(srcdir)/src/c/ \
73                         -I$(top_srcdir)/modules/dynamic_link/includes/ \
74                         -I$(top_srcdir)/modules/fileio/includes/ \
75                         -I$(top_srcdir)/modules/output_stream/includes/ \
76                         -I$(top_srcdir)/modules/api_scilab/includes/ \
77                         -I$(top_srcdir)/modules/localization/includes/ \
78                         $(FFTW3_CFLAGS) \
79                         $(AM_CPPFLAGS)
80
81 else
82
83 FFTW_C_SOURCES = src/nofftw/nofftw.c
84
85 libscifftw_la_SOURCES = $(FFTW_C_SOURCES)
86
87 libscifftw_la_CPPFLAGS = -I$(srcdir)/includes/ \
88                         -I$(srcdir)/src/c/ \
89                         -I$(top_srcdir)/modules/api_scilab/includes/ \
90                         -I$(top_srcdir)/modules/output_stream/includes/ \
91                         -I$(top_srcdir)/modules/localization/includes/ \
92                         $(AM_CPPFLAGS)
93 endif
94
95 include $(top_srcdir)/Makefile.incl.am