2 # Copyright 2001,2002,2004,2006,2007,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
17 # along with GNU Radio; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
22 include $(top_srcdir)/Makefile.common
24 AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(CPPUNIT_INCLUDES) $(WITH_INCLUDES)
26 #noinst_LTLIBRARIES = libgengen.la libgengen-qa.la
27 noinst_LTLIBRARIES = libgengen.la
29 # ----------------------------------------------------------------
30 # these scripts generate code
38 gr_add_const_XX.cc.t \
44 gr_add_const_vXX.cc.t \
45 gr_add_const_vXX.h.t \
46 gr_add_const_vXX.i.t \
50 gr_chunks_to_symbols_XX.cc.t \
51 gr_chunks_to_symbols_XX.h.t \
52 gr_chunks_to_symbols_XX.i.t \
62 gr_multiply_const_XX.cc.t \
63 gr_multiply_const_XX.h.t \
64 gr_multiply_const_XX.i.t \
65 gr_multiply_vXX.cc.t \
68 gr_multiply_const_vXX.cc.t \
69 gr_multiply_const_vXX.h.t \
70 gr_multiply_const_vXX.i.t \
74 gr_noise_source_X.cc.t \
75 gr_noise_source_X.h.t \
76 gr_noise_source_X.i.t \
77 gr_packed_to_unpacked_XX.cc.t \
78 gr_packed_to_unpacked_XX.h.t \
79 gr_packed_to_unpacked_XX.i.t \
80 gr_peak_detector_XX.cc.t \
81 gr_peak_detector_XX.h.t \
82 gr_peak_detector_XX.i.t \
83 gr_sample_and_hold_XX.cc.t \
84 gr_sample_and_hold_XX.h.t \
85 gr_sample_and_hold_XX.i.t \
86 gr_sig_source_X.cc.t \
92 gr_unpacked_to_packed_XX.cc.t \
93 gr_unpacked_to_packed_XX.h.t \
94 gr_unpacked_to_packed_XX.i.t \
95 gr_vector_source_X.cc.t \
96 gr_vector_source_X.h.t \
97 gr_vector_source_X.i.t \
98 gr_vector_sink_X.cc.t \
99 gr_vector_sink_X.h.t \
100 gr_vector_sink_X.i.t \
116 # Ensure parallel make does the right thing.
117 # http://sources.redhat.com/automake/automake.html#Multiple-Outputs
119 STAMPS = generate-stamp
121 generate-stamp: $(CODE_GENERATOR)
124 PYTHONPATH=$(top_srcdir)/gnuradio-core/src/python srcdir=$(srcdir) $(PYTHON) $(srcdir)/generate_all.py
125 @mv -f generate-tmp $@
128 $(GENERATED_H) $(GENERATED_I) $(GENERATED_CC) gengen_generated.i : generate-stamp
129 ## Recover from the removal of $@
130 @if test -f $@; then :; else \
131 trap 'rm -rf generate-lock generate-stamp' 1 2 13 15; \
132 if mkdir generate-lock 2>/dev/null; then \
133 ## This code is being executed by the first process.
134 rm -f generate-stamp; \
135 $(MAKE) $(AM_MAKEFLAGS) generate-stamp; \
136 rmdir generate-lock; \
138 ## This code is being executed by the follower processes.
139 ## Wait until the first process is done.
140 while test -d generate-lock; do sleep 1; done; \
141 ## Succeed if and only if the first process succeeded.
142 test -f generate-stamp; exit $$?; \
147 BUILT_SOURCES = $(GENERATED_H) $(GENERATED_I) $(GENERATED_CC) gengen_generated.i
149 # ----------------------------------------------------------------
155 libgengen_la_SOURCES = \
158 #libgengen_qa_la_SOURCES =
160 grinclude_HEADERS = \
164 gr_sig_source_waveform.h
168 swiginclude_HEADERS = \
174 CLEANFILES = $(BUILT_SOURCES) $(STAMPS) *.pyc