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
51 runtime_spu_noinst_headers = \
52 $(runtime_srcdir)/gc_spu_config.h \
53 $(runtime_srcdir)/spu_buffers.h
55 # ----------------------------------------------------------------
56 # files in the lib/general/spu directory
58 general_srcdir = $(srcdir)/../general/spu
60 general_spu_sources = \
61 $(general_srcdir)/fft_1d_r2.c
63 general_spu_headers = \
64 $(general_srcdir)/libfft.h
66 general_spu_noinst_headers = \
67 $(general_srcdir)/fft_1d.h \
68 $(general_srcdir)/fft_1d_r2.h
71 # ----------------------------------------------------------------
72 # files in the lib/wrapper/spu directory
74 wrapper_srcdir = $(srcdir)/../wrapper/spu
76 wrapper_spu_sources = \
77 $(wrapper_srcdir)/gcs_fft_1d_r2.c
81 wrapper_spu_noinst_headers =
83 # ----------------------------------------------------------------
84 # build the library from the files in the three directories
86 libgcell_spu_a_SOURCES = \
87 $(runtime_spu_sources) \
88 $(general_spu_sources) \
89 $(wrapper_spu_sources)
91 gcellspuinclude_HEADERS = \
92 $(runtime_spu_headers) \
93 $(general_spu_headers) \
94 $(wrapper_spu_headers)
97 $(runtime_spu_noinst_headers) \
98 $(general_spu_noinst_headers) \
99 $(wrapper_spu_noinst_headers)
101 # ----------------------------------------------------------------
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
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