X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gr-audio-osx%2Fsrc%2FMakefile.am;h=a4e690963ad63a433d023e18798ca42f64acb90d;hb=ea29b08aeb54227e6628f655ccfdb96fe4d8c378;hp=750dd973036e86884cf03ab1135820aaf10739dd;hpb=18a684bf3dc144c48fc4cc6cc72f5070febd8074;p=debian%2Fgnuradio diff --git a/gr-audio-osx/src/Makefile.am b/gr-audio-osx/src/Makefile.am index 750dd973..a4e69096 100644 --- a/gr-audio-osx/src/Makefile.am +++ b/gr-audio-osx/src/Makefile.am @@ -1,11 +1,11 @@ # -# Copyright 2006 Free Software Foundation, Inc. +# Copyright 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,73 +21,60 @@ include $(top_srcdir)/Makefile.common -# Install this stuff so that it ends up as the gnuradio.audio_osx 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-osx/src/audio_osx.i - -NON_LOCAL_IFILES = \ - $(GNURADIO_I) - -ALL_IFILES = \ - $(LOCAL_IFILES) \ - $(NON_LOCAL_IFILES) - -BUILT_SOURCES = \ - audio_osx.cc \ - audio_osx.py - -ourpython_PYTHON = \ - audio_osx.py -INCLUDES = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) +TESTS = run_tests -SWIGCPPPYTHONARGS = -python $(PYTHON_CPPFLAGS) $(STD_DEFINES_AND_INCLUDES) +DISTCLEANFILES = run_tests -ourlib_LTLIBRARIES = _audio_osx.la +AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) $(WITH_INCLUDES) -_audio_osx_la_SOURCES = \ - audio_osx.cc \ - audio_osx_sink.cc \ - audio_osx_source.cc +# C/C++ headers get installed in ${prefix}/include/gnuradio +grinclude_HEADERS = \ + audio_osx_sink.h \ + audio_osx_source.h noinst_HEADERS = \ audio_osx.h \ circular_buffer.h \ mld_threads.h -grinclude_HEADERS = \ - audio_osx_sink.h \ - audio_osx_source.h +noinst_PYTHON = \ + qa_osx.py \ + test_audio_loop.py + +################################### +# SWIG Python interface and library -swiginclude_HEADERS = \ - $(LOCAL_IFILES) +TOP_SWIG_IFILES = \ + audio_osx.i -_audio_osx_la_LIBADD = \ - $(PYTHON_LDFLAGS) \ - $(GNURADIO_CORE_LIBS) \ - -lstdc++ +# Install so that they end up available as: +# import gnuradio.audio_osx +# This ends up at: +# ${prefix}/lib/python${python_version}/site-packages/gnuradio +audio_osx_pythondir_category = \ + gnuradio -_audio_osx_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version -framework AudioUnit -framework CoreAudio -framework AudioToolbox +# additional sources for the SWIG-generated library +audio_osx_la_swig_sources = \ + audio_osx_sink.cc \ + audio_osx_source.cc -audio_osx.cc audio_osx.py: $(ALL_IFILES) - $(SWIG) $(SWIGCPPPYTHONARGS) -module audio_osx -o audio_osx.cc $(LOCAL_IFILES) +# additional libraries for linking with the SWIG-generated library +audio_osx_la_swig_libadd = \ + $(GNURADIO_CORE_LA) -noinst_PYTHON = qa_osx.py test_audio_loop.py +# additional LD flags for linking the SWIG-generated library +audio_osx_la_swig_ldflags = \ + -framework AudioUnit \ + -framework CoreAudio \ + -framework AudioToolbox -MOSTLYCLEANFILES = $(BUILT_SOURCES) *~ *.pyc run_tests *.loT +include $(top_srcdir)/Makefile.swig -CONFIG_CLEAN_FILES = run_tests *.loT +# add some of the variables generated inside the Makefile.swig.gen +BUILT_SOURCES = $(swig_built_sources) -# 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 +# Do not distribute the output of SWIG +no_dist_files = $(swig_built_sources)