howto: add GRC wrappers to squaring blocks
[debian/gnuradio] / gr-howto-write-a-block / Makefile.common
1 # -*- Makefile -*-
2 #
3 # Copyright 2004,2006,2009 Free Software Foundation, Inc.
4
5 # This file is part of GNU Radio
6
7 # GNU Radio is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3, or (at your option)
10 # any later version.
11
12 # GNU Radio is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Radio; see the file COPYING.  If not, write to
19 # the Free Software Foundation, Inc., 51 Franklin Street,
20 # Boston, MA 02110-1301, USA.
21
22
23 # these flags are used when compiling non-SWIG-wrapper files
24 # when going in to non-SWIG libraries
25 AM_CXXFLAGS = @autoconf_default_CXXFLAGS@
26
27 # these flags are used when compiling any CXX file
28 AM_CPPFLAGS = \
29         $(STD_DEFINES_AND_INCLUDES) \
30         $(PYTHON_CPPFLAGS) \
31         $(CPPUNIT_INCLUDES) \
32         $(GNURADIO_CORE_CPPFLAGS)
33
34 # these are used by both SWIG and CXX
35 STD_DEFINES_AND_INCLUDES = \
36         $(DEFINES) \
37         -I$(GNURADIO_CORE_INCLUDEDIR) \
38         -I$(GNURADIO_CORE_INCLUDEDIR)/swig
39
40 # includes
41 grincludedir = $(includedir)/gnuradio
42
43 # swig includes 
44 swigincludedir = $(grincludedir)/swig
45
46 # Install this stuff in the appropriate subdirectory
47 # This usually ends up at:
48 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
49
50 grpythondir = $(pythondir)/gnuradio
51 grpyexecdir = $(pyexecdir)/gnuradio
52
53 # Data directory for grc block wrappers
54 grc_blocksdir = $(prefix)/share/gnuradio/grc/blocks
55
56 # Don't assume that make predefines $(RM), because BSD make does
57 # not. We define it now in configure.ac using AM_PATH_PROG, but now
58 # here have to add a -f to be like GNU make.
59 RM=$(RM_PROG) -f
60
61 # Other common defines; use "+=" to add to these
62 STAMPS =
63 MOSTLYCLEANFILES = $(BUILT_SOURCES) $(STAMPS) *.pyc *.pyo *~ *.tmp *.loT
64
65 # Don't distribute the files defined in the variable 'no_dist_files'
66 dist-hook:
67         @for file in $(no_dist_files); do \
68                 echo $(RM) $(distdir)/$$file; \
69                 $(RM) $(distdir)/$$file; \
70         done;