X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gr-audio-oss%2Fsrc%2FMakefile.am;h=f83ba68ca98927a2714f28c73f9044dd300e8134;hb=ea29b08aeb54227e6628f655ccfdb96fe4d8c378;hp=2fc0bae26356b9d14e03042fa78ed31d0d4d93b5;hpb=18a684bf3dc144c48fc4cc6cc72f5070febd8074;p=debian%2Fgnuradio diff --git a/gr-audio-oss/src/Makefile.am b/gr-audio-oss/src/Makefile.am index 2fc0bae2..f83ba68c 100644 --- a/gr-audio-oss/src/Makefile.am +++ b/gr-audio-oss/src/Makefile.am @@ -1,11 +1,11 @@ # -# Copyright 2004,2005,2006 Free Software Foundation, Inc. +# Copyright 2004,2005,2006,2008,2009 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) +# the Free Software Foundation; either version 3, or (at your option) # any later version. # # GNU Radio is distributed in the hope that it will be useful, @@ -21,70 +21,48 @@ include $(top_srcdir)/Makefile.common -# Install this stuff so that it ends up as the gnuradio.audio_oss module -# This usually ends up at: -# ${prefix}/lib/python${python_version}/site-packages/gnuradio - -ourpythondir = $(grpythondir) -ourlibdir = $(grpyexecdir) - EXTRA_DIST = run_tests.in -TESTS = run_tests - -LOCAL_IFILES = \ - $(top_srcdir)/gr-audio-oss/src/audio_oss.i - -NON_LOCAL_IFILES = \ - $(GNURADIO_I) - -ALL_IFILES = \ - $(LOCAL_IFILES) \ - $(NON_LOCAL_IFILES) -BUILT_SOURCES = \ - audio_oss.cc \ - audio_oss.py - -ourpython_PYTHON = \ - audio_oss.py - -INCLUDES = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) - -SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(STD_DEFINES_AND_INCLUDES) +TESTS = run_tests -ourlib_LTLIBRARIES = _audio_oss.la +DISTCLEANFILES = run_tests -_audio_oss_la_SOURCES = \ - audio_oss.cc \ - audio_oss_sink.cc \ - audio_oss_source.cc +# C/C++ headers get installed in ${prefix}/include/gnuradio +grinclude_HEADERS = \ + audio_oss_sink.h \ + audio_oss_source.h +noinst_PYTHON = qa_oss.py -grinclude_HEADERS = \ - audio_oss_sink.h \ - audio_oss_source.h +AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) $(WITH_INCLUDES) -swiginclude_HEADERS = \ - $(LOCAL_IFILES) +################################### +# SWIG Python interface and library -_audio_oss_la_LIBADD = \ - $(PYTHON_LDFLAGS) \ - $(GNURADIO_CORE_LIBS) \ - $(OSS_LIBS) \ - -lstdc++ +TOP_SWIG_IFILES = \ + audio_oss.i -_audio_oss_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version +# Install so that they end up available as: +# import gnuradio.audio_oss +# This ends up at: +# ${prefix}/lib/python${python_version}/site-packages/gnuradio +audio_oss_pythondir_category = \ + gnuradio -audio_oss.cc audio_oss.py: $(LOCAL_IFILES) $(NON_LOCAL_IFILES) - $(SWIG) $(SWIGPYTHONARGS) -module audio_oss -o audio_oss.cc $(LOCAL_IFILES) +# additional sources for the SWIG-generated library +audio_oss_la_swig_sources = \ + audio_oss_sink.cc \ + audio_oss_source.cc -# Don't distribute output of swig -dist-hook: - @for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done - @for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done +# additional libraries for linking with the SWIG-generated library +audio_oss_la_swig_libadd = \ + $(GNURADIO_CORE_LA) \ + $(OSS_LIBS) -noinst_PYTHON = qa_oss.py +include $(top_srcdir)/Makefile.swig -MOSTLYCLEANFILES = \ - $(BUILT_SOURCES) *~ *.pyc +# add some of the variables generated inside the Makefile.swig.gen +BUILT_SOURCES = $(swig_built_sources) +# Do not distribute the output of SWIG +no_dist_files = $(swig_built_sources)