X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile.common;h=e9bc13e4109d11fb01c2699b561f4426a1cc0b80;hb=18f685853b2bf1914148cb07a9c6df76f5063ff3;hp=da483d1a1e5bfa5607a6e588ff32a39d57cc48e1;hpb=27b85cba78bb01b5e70929ce110fc6f2ce14fdcf;p=debian%2Fgnuradio diff --git a/Makefile.common b/Makefile.common index da483d1a..e9bc13e4 100644 --- a/Makefile.common +++ b/Makefile.common @@ -20,7 +20,8 @@ # Boston, MA 02110-1301, USA. # -AM_CXXFLAGS = @autoconf_default_CXXFLAGS@ +AM_CFLAGS = @autoconf_default_CFLAGS@ @lf_CFLAGS@ +AM_CXXFLAGS = @autoconf_default_CXXFLAGS@ @lf_CXXFLAGS@ # includes grincludedir = $(includedir)/gnuradio @@ -59,21 +60,6 @@ STD_DEFINES_AND_INCLUDES = $(DEFINES) $(BOOST_CPPFLAGS) \ WITH_INCLUDES = @with_INCLUDES@ WITH_SWIG_INCLUDES = @with_SWIG_INCLUDES@ -# swig flags -# -w511 turns off keyword argument warning -# "-outdir $(builddir)" writes all generated output files to -# the local builddir (which should always be '.') -SWIG_PYTHON_FLAGS = -fvirtual -python -modern -keyword \ - -w511 -outdir . - -# standard swig flags used by most components -STD_SWIG_PYTHON_ARGS = \ - $(SWIG_PYTHON_FLAGS) \ - $(STD_DEFINES_AND_INCLUDES) \ - $(LOCAL_SWIG_DEFINES_AND_INCLUDES) \ - $(WITH_SWIG_INCLUDES) \ - $(WITH_INCLUDES) - # How to link in the top-level omnithreads library from inside the tree OMNITHREAD_INCLUDES = @omnithread_INCLUDES@ OMNITHREAD_LA = @omnithread_LA@ @@ -85,9 +71,6 @@ GNURADIO_INCLUDES = @gnuradio_core_INCLUDES@ # How to link in GNU Radio core library from inside the tree GNURADIO_CORE_LA = @gnuradio_core_LA@ -# This is a dependency for many swig operations -GNURADIO_I = @gnuradio_core_I@ - # How to link in the USRP library from inside the tree GRUEL_INCLUDES = @gruel_INCLUDES@ GRUEL_LA = @gruel_LA@ @@ -130,4 +113,16 @@ COMPILE_MBH = $(RUN_GUILE) $(top_srcdir)/mblock/src/scheme/gnuradio/compile-mbh. exampledir = $(datadir)/gnuradio/examples # Base directory for documentation (docdir undefined in autoconf < 1.60) -gr_docdir = $(if $(docdir),$(docdir),$(datadir)/doc/$(PACKAGE))-$(VERSION) +docdir ?= $(datadir)/doc/$(PACKAGE) +gr_docdir = $(docdir)-$(VERSION) + +# Other common defines; use "+=" to add to these +STAMPS = +MOSTLYCLEANFILES = $(BUILT_SOURCES) $(STAMPS) *.pyc *.pyo *~ *.tmp *.loT + +# Don't distribute the files defined in the variable 'no_dist_files' +dist-hook: + @for file in $(no_dist_files); do \ + echo $(RM) $(distdir)/$$file; \ + $(RM) $(distdir)/$$file; \ + done;