3c96d8f3083669c997359bf84fba0f6a611ae842
[debian/gnuradio] / gcell / src / lib / spu / Makefile.am
1 #
2 # Copyright 2008 Free Software Foundation, Inc.
3
4 # This file is part of GNU Radio
5
6 # GNU Radio is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
9 # any later version.
10
11 # GNU Radio is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20
21 # We're building a single .a file from files in several
22 # subdirectories.  We use the "single Makefile, multiple subdirectory"
23 # automake alternative. We're doing this because we're faking out
24 # automake and getting it to build for 2 architectures at the same
25 # time, the PPE (powerpc64) and the SPE.  The easiest way to handle
26 # the SPE was to just build a static library using automake's built in
27 # rules, since trying to get libtool to handle two architectures in
28 # the same tree seemed untenable.
29
30 include $(top_srcdir)/Makefile.common.spu
31
32 IBM_SPU_SYNC_INCLUDES = -I$(top_srcdir)/gcell/src/ibm/sync/spu_source
33 AM_CPPFLAGS = $(GCELL_SPU_INCLUDES) $(IBM_SPU_SYNC_INCLUDES)
34
35 lib_LIBRARIES = libgcell_spu.a
36
37 # ----------------------------------------------------------------
38 # files in the lib/runtime/spu directory
39
40 runtime_srcdir = $(srcdir)/../runtime/spu
41
42 runtime_spu_sources = \
43         $(runtime_srcdir)/gc_delay.c \
44         $(runtime_srcdir)/gc_spu_jd_queue.c \
45         $(runtime_srcdir)/spu_buffers.c \
46         $(runtime_srcdir)/gc_logging.c \
47         $(runtime_srcdir)/gc_main.c
48
49 runtime_spu_headers =
50
51 runtime_spu_noinst_headers = \
52         $(runtime_srcdir)/gc_spu_config.h \
53         $(runtime_srcdir)/spu_buffers.h 
54
55 # ----------------------------------------------------------------
56 # files in the lib/general/spu directory
57
58 general_srcdir = $(srcdir)/../general/spu
59
60 general_spu_sources = \
61         $(general_srcdir)/fft_1d_r2.c
62
63 general_spu_headers = \
64         $(general_srcdir)/libfft.h
65
66 general_spu_noinst_headers = \
67         $(general_srcdir)/fft_1d.h \
68         $(general_srcdir)/fft_1d_r2.h 
69
70
71 # ----------------------------------------------------------------
72 # files in the lib/wrapper/spu directory
73
74 wrapper_srcdir = $(srcdir)/../wrapper/spu
75
76 wrapper_spu_sources = \
77         $(wrapper_srcdir)/gcs_fft_1d_r2.c
78
79 wrapper_spu_headers =
80
81 wrapper_spu_noinst_headers =
82
83 # ----------------------------------------------------------------
84 # build the library from the files in the three directories
85
86 libgcell_spu_a_SOURCES = \
87         $(runtime_spu_sources) \
88         $(general_spu_sources) \
89         $(wrapper_spu_sources)
90
91 gcellspuinclude_HEADERS = \
92         $(runtime_spu_headers) \
93         $(general_spu_headers) \
94         $(wrapper_spu_headers)
95
96 noinst_HEADERS = \
97         $(runtime_spu_noinst_headers) \
98         $(general_spu_noinst_headers) \
99         $(wrapper_spu_noinst_headers)
100
101 # ----------------------------------------------------------------
102 # SPU executables 
103
104 noinst_PROGRAMS = \
105         gcell_all \
106         gcell_runtime_qa
107
108 # all known gcell procs (at least until they get too big)
109 gcell_all_SOURCES = $(wrapper_spu_sources)
110 gcell_all_LDADD = libgcell_spu.a
111
112 # just the QA code required for testing the runtime
113 gcell_runtime_qa_SOURCES = $(runtime_srcdir)/gcell_runtime_qa.c
114 gcell_runtime_qa_LDADD = libgcell_spu.a