2 # Copyright 2008 Free Software Foundation, Inc.
4 # This file is part of GNU Radio
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)
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.
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.
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.
30 include $(top_srcdir)/Makefile.common.spu
32 IBM_SPU_SYNC_INCLUDES = -I$(top_srcdir)/gcell/src/ibm/sync/spu_source
33 AM_CPPFLAGS = $(GCELL_SPU_INCLUDES) $(IBM_SPU_SYNC_INCLUDES)
35 lib_LIBRARIES = libgcell_spu.a
37 # ----------------------------------------------------------------
38 # files in the lib/runtime/spu directory
40 runtime_srcdir = $(srcdir)/../runtime/spu
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 $(runtime_srcdir)/gc_random.c
53 runtime_spu_noinst_headers = \
54 $(runtime_srcdir)/gc_spu_config.h \
55 $(runtime_srcdir)/spu_buffers.h
57 # ----------------------------------------------------------------
58 # files in the lib/general/spu directory
60 general_srcdir = $(srcdir)/../general/spu
62 general_spu_sources = \
63 $(general_srcdir)/fft_1d_r2.c \
64 $(general_srcdir)/memset.S
66 general_spu_headers = \
67 $(general_srcdir)/gc_spu_macs.h \
68 $(general_srcdir)/libfft.h
70 general_spu_noinst_headers = \
71 $(general_srcdir)/fft_1d.h \
72 $(general_srcdir)/fft_1d_r2.h
74 # The QA code for (usually) non-PPE visible support routines in lib/general/spu
75 general_spu_qa_sources = \
76 $(general_srcdir)/qa_memset.c
78 # ----------------------------------------------------------------
79 # files in the lib/wrapper/spu directory
81 wrapper_srcdir = $(srcdir)/../wrapper/spu
83 wrapper_spu_sources = \
84 $(wrapper_srcdir)/gcs_fft_1d_r2.c
88 wrapper_spu_noinst_headers =
90 # ----------------------------------------------------------------
91 # build the library from the files in the three directories
93 libgcell_spu_a_SOURCES = \
94 $(runtime_spu_sources) \
95 $(general_spu_sources) \
96 $(wrapper_spu_sources)
98 gcellspuinclude_HEADERS = \
99 $(runtime_spu_headers) \
100 $(general_spu_headers) \
101 $(wrapper_spu_headers)
104 $(runtime_spu_noinst_headers) \
105 $(general_spu_noinst_headers) \
106 $(wrapper_spu_noinst_headers)
108 # ----------------------------------------------------------------
109 # build some SPU executables
117 # All known non-QA gcell procs (at least until they get too big).
119 gcell_all_SOURCES = $(wrapper_spu_sources)
120 gcell_all_LDADD = libgcell_spu.a
123 # The QA code required for testing the runtime.
125 gcell_runtime_qa_SOURCES = $(runtime_srcdir)/gcell_runtime_qa.c
126 gcell_runtime_qa_LDADD = libgcell_spu.a
129 # The QA code required for testing the SPE support routines in lib/general/spu
131 gcell_general_qa_SOURCES = $(general_spu_qa_sources)
132 gcell_general_qa_LDADD = libgcell_spu.a