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 \
56 gr_integrate_XX.cc.t \
65 gr_multiply_const_XX.cc.t \
66 gr_multiply_const_XX.h.t \
67 gr_multiply_const_XX.i.t \
68 gr_multiply_vXX.cc.t \
71 gr_multiply_const_vXX.cc.t \
72 gr_multiply_const_vXX.h.t \
73 gr_multiply_const_vXX.i.t \
77 gr_noise_source_X.cc.t \
78 gr_noise_source_X.h.t \
79 gr_noise_source_X.i.t \
80 gr_packed_to_unpacked_XX.cc.t \
81 gr_packed_to_unpacked_XX.h.t \
82 gr_packed_to_unpacked_XX.i.t \
83 gr_peak_detector_XX.cc.t \
84 gr_peak_detector_XX.h.t \
85 gr_peak_detector_XX.i.t \
86 gr_sample_and_hold_XX.cc.t \
87 gr_sample_and_hold_XX.h.t \
88 gr_sample_and_hold_XX.i.t \
89 gr_sig_source_X.cc.t \
95 gr_unpacked_to_packed_XX.cc.t \
96 gr_unpacked_to_packed_XX.h.t \
97 gr_unpacked_to_packed_XX.i.t \
98 gr_vector_source_X.cc.t \
99 gr_vector_source_X.h.t \
100 gr_vector_source_X.i.t \
101 gr_vector_sink_X.cc.t \
102 gr_vector_sink_X.h.t \
103 gr_vector_sink_X.i.t \
116 gr_moving_average_XX.cc.t \
117 gr_moving_average_XX.h.t \
118 gr_moving_average_XX.i.t
122 # Ensure parallel make does the right thing.
123 # http://sources.redhat.com/automake/automake.html#Multiple-Outputs
125 STAMPS = generate-stamp
127 generate-stamp: $(CODE_GENERATOR)
130 PYTHONPATH=$(top_srcdir)/gnuradio-core/src/python srcdir=$(srcdir) $(PYTHON) $(srcdir)/generate_all.py
131 @mv -f generate-tmp $@
134 $(GENERATED_H) $(GENERATED_I) $(GENERATED_CC) gengen_generated.i : generate-stamp
135 ## Recover from the removal of $@
136 @if test -f $@; then :; else \
137 trap 'rm -rf generate-lock generate-stamp' 1 2 13 15; \
138 if mkdir generate-lock 2>/dev/null; then \
139 ## This code is being executed by the first process.
140 rm -f generate-stamp; \
141 $(MAKE) $(AM_MAKEFLAGS) generate-stamp; \
142 rmdir generate-lock; \
144 ## This code is being executed by the follower processes.
145 ## Wait until the first process is done.
146 while test -d generate-lock; do sleep 1; done; \
147 ## Succeed if and only if the first process succeeded.
148 test -f generate-stamp; exit $$?; \
153 BUILT_SOURCES = $(GENERATED_H) $(GENERATED_I) $(GENERATED_CC)
155 # ----------------------------------------------------------------
161 libgengen_la_SOURCES = \
164 #libgengen_qa_la_SOURCES =
166 grinclude_HEADERS = \
170 gr_sig_source_waveform.h
174 swiginclude_HEADERS = \
180 CLEANFILES = $(BUILT_SOURCES) $(STAMPS) *.pyc