diff options
-rw-r--r-- | Makefile.common | 26 | ||||
-rw-r--r-- | config/grc_usrp.m4 | 15 | ||||
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | gr-usrp/src/Makefile.am | 12 | ||||
-rw-r--r-- | usrp/host/apps/Makefile.am | 14 | ||||
-rw-r--r-- | usrp/host/lib/Makefile.am | 5 | ||||
-rw-r--r-- | usrp/host/swig/Makefile.am | 8 |
7 files changed, 48 insertions, 39 deletions
diff --git a/Makefile.common b/Makefile.common index 089519438..786e8e5a8 100644 --- a/Makefile.common +++ b/Makefile.common @@ -36,5 +36,27 @@ grpyexecdir = $(pyexecdir)/gnuradio # swig flags SWIGPYTHONFLAGS = -fvirtual -python -modern -# gnuradio-core library link command -GNURADIO_CORE_LIBS = -L$(top_builddir)/gnuradio-core/src/lib -lgnuradio-core -lfftw3f -lm +GNURADIO_INCLUDES = -I$(top_srcdir)/gnuradio-core/src/lib/runtime \ + -I$(top_srcdir)/gnuradio-core/src/lib/general \ + -I$(top_srcdir)/gnuradio-core/src/lib/filter \ + -I$(top_srcdir)/gnuradio-core/src/lib/reed-solomon \ + -I$(top_srcdir)/gnuradio-core/src/lib/io \ + -I$(top_srcdir)/gnuradio-core/src/lib/g72x \ + -I$(top_srcdir)/gnuradio-core/src/lib/atsc \ + -I$(top_srcdir)/gnuradio-core/src/lib/omnithread \ + -I$(top_srcdir)/gnuradio-core/src/lib/swig \ + -I$(top_builddir)/gnuradio-core/src/lib/swig \ + $(FFTW3F_CFLAGS) + +GNURADIO_CORE_LIBS = -L$(top_builddir)/gnuradio-core/src/lib \ + -lgnuradio-core -lfftw3f -lm + +GNURADIO_I = $(top_builddir)/gnuradio-core/src/lib/swig/gnuradio.i + +USRP_INCLUDES = -I$(top_srcdir)/usrp/host/lib \ + -I$(top_srcdir)/usrp/firmware/include + +USRP_LIBS = -L$(top_builddir)/usrp/host/lib \ + -lusrp + +STD_DEFINES_AND_INCLUDES=$(DEFINES) $(GNURADIO_INCLUDES) $(BOOST_CFLAGS) diff --git a/config/grc_usrp.m4 b/config/grc_usrp.m4 index 5ef847a44..0883e3951 100644 --- a/config/grc_usrp.m4 +++ b/config/grc_usrp.m4 @@ -67,21 +67,6 @@ AC_DEFUN([GRC_USRP],[ AC_C_BIGENDIAN if test $succeeded = yes; then - dnl Define where to look for USRP includes - USRP_INCLUDES='-I$(top_srcdir)/usrp/host/lib -I$(top_srcdir)/usrp/firmware/include' - AC_SUBST(USRP_INCLUDES) - - USRP_DEFINES='' - AC_SUBST(USRP_DEFINES) - - dnl Define where to find USRP library - USRP_LIBS='-L$(top_builddir)/usrp/host/lib -lusrp' - AC_SUBST(USRP_LIBS) - - dnl FIXME this looked very suspicious - dnl DEFINES="$USRP_DEFINES" - dnl AC_SUBST(DEFINES) - subdirs="$subdirs usrp" else failed="$failed usrp" diff --git a/configure.ac b/configure.ac index 3dbbae84e..c29203a7c 100644 --- a/configure.ac +++ b/configure.ac @@ -128,10 +128,6 @@ dnl conditional build stuff GR_CHECK_DOXYGEN GR_SET_MD_CPU -dnl Define where to look for GNURADIO includes -GNURADIO_INCLUDES='-I$(top_srcdir)/gnuradio-core/src/lib/runtime -I$(top_srcdir)/gnuradio-core/src/lib/general -I$(top_srcdir)/gnuradio-core/src/lib/filter -I$(top_srcdir)/gnuradio-core/src/lib/io -I$(top_srcdir)/gnuradio-core/src/lib/g72x -I$(top_srcdir)/gnuradio-core/src/lib/atsc -I$(top_srcdir)/gnuradio-core/src/lib/omnithread -I$(top_builddir)/gnuradio-core/src/lib/general -I$(top_builddir)/gnuradio-core/src/lib/filter -I$(top_builddir)/gnuradio-core/src/lib/reed-solomon -I$(top_builddir)/gnuradio-core/src/lib/swig $(FFTW3F_CFLAGS)' -AC_SUBST(GNURADIO_INCLUDES) - dnl Define where to look for cppunit includes and libs dnl sets CPPUNIT_CFLAGS and CPPUNIT_LIBS AM_PATH_CPPUNIT([1.9.14],[], @@ -147,9 +143,6 @@ GR_REQUIRE_BOOST_INCLUDES DEFINES="" AC_SUBST(DEFINES) -STD_DEFINES_AND_INCLUDES="$DEFINES $GNURADIO_INCLUDES $BOOST_CFLAGS" -AC_SUBST(STD_DEFINES_AND_INCLUDES) - dnl Component specific configuration dnl The order of the GR_ macros determines the order of compilation subdirs="config" diff --git a/gr-usrp/src/Makefile.am b/gr-usrp/src/Makefile.am index 611dd604d..4b502f5da 100644 --- a/gr-usrp/src/Makefile.am +++ b/gr-usrp/src/Makefile.am @@ -34,8 +34,7 @@ TESTS = run_tests LOCAL_IFILES = \ usrp1.i -NON_LOCAL_IFILES = \ - $(top_srcdir)/gnuradio-core/src/lib/swig/gnuradio.i +NON_LOCAL_IFILES = $(GNURADIO_I) ALL_IFILES = \ $(LOCAL_IFILES) \ @@ -60,9 +59,13 @@ ourpython_PYTHON = \ usrp_multi.py -INCLUDES = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) $(USRP_INCLUDES) +INCLUDES = $(STD_DEFINES_AND_INCLUDES) \ + $(PYTHON_CPPFLAGS) \ + $(USRP_INCLUDES) -SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(STD_DEFINES_AND_INCLUDES) $(USRP_INCLUDES) +SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) \ + $(STD_DEFINES_AND_INCLUDES) \ + $(USRP_INCLUDES) grinclude_HEADERS = \ usrp1_sink_base.h \ @@ -114,4 +117,3 @@ MOSTLYCLEANFILES = \ dist-hook: @for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done @for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done - diff --git a/usrp/host/apps/Makefile.am b/usrp/host/apps/Makefile.am index b08e32527..87a3774a0 100644 --- a/usrp/host/apps/Makefile.am +++ b/usrp/host/apps/Makefile.am @@ -19,7 +19,11 @@ # Boston, MA 02111-1307, USA. # -INCLUDES = -I../lib -I$(top_srcdir)/usrp/firmware/include +include $(top_srcdir)/Makefile.common + +INCLUDES = $(USRP_INCLUDES) + +USRP_LIB = $(top_builddir)/usrp/host/lib/libusrp.la bin_PROGRAMS = \ usrper \ @@ -41,13 +45,13 @@ noinst_PYTHON = \ check_order_quickly_SOURCES = check_order_quickly.cc test_usrp_standard_rx_SOURCES = test_usrp_standard_rx.cc time_stuff.c -test_usrp_standard_rx_LDADD = $(top_builddir)/usrp/host/lib/libusrp.la +test_usrp_standard_rx_LDADD = $(USRP_LIB) test_usrp_standard_tx_SOURCES = test_usrp_standard_tx.cc time_stuff.c -test_usrp_standard_tx_LDADD = $(top_builddir)/usrp/host/lib/libusrp.la +test_usrp_standard_tx_LDADD = $(USRP_LIB) usrper_SOURCES = usrper.cc -usrper_LDADD = $(top_builddir)/usrp/host/lib/libusrp.la +usrper_LDADD = $(USRP_LIB) usrp_cal_dc_offset_SOURCES = usrp_cal_dc_offset.cc -usrp_cal_dc_offset_LDADD = $(top_builddir)/usrp/host/lib/libusrp.la +usrp_cal_dc_offset_LDADD = $(USRP_LIB) diff --git a/usrp/host/lib/Makefile.am b/usrp/host/lib/Makefile.am index e2086bc2c..eff038460 100644 --- a/usrp/host/lib/Makefile.am +++ b/usrp/host/lib/Makefile.am @@ -17,7 +17,10 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -INCLUDES = -I$(top_srcdir)/usrp/firmware/include + +include $(top_srcdir)/Makefile.common + +INCLUDES = $(USRP_INCLUDES) lib_LTLIBRARIES = libusrp.la diff --git a/usrp/host/swig/Makefile.am b/usrp/host/swig/Makefile.am index 5b15a3634..2a1f5b8a5 100644 --- a/usrp/host/swig/Makefile.am +++ b/usrp/host/swig/Makefile.am @@ -1,5 +1,5 @@ # -# Copyright 2001,2003,2004 Free Software Foundation, Inc. +# Copyright 2001,2003,2004,2006 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -27,6 +27,9 @@ include $(top_srcdir)/Makefile.common ourpythondir = $(pythondir) ourlibdir = $(pyexecdir) +INCLUDES = $(USRP_INCLUDES) \ + $(PYTHON_CPPFLAGS) \ + -I$(srcdir) LOCAL_IFILES = \ prims.i @@ -51,9 +54,6 @@ ourpython_PYTHON = \ usrp_prims.py -INCLUDES = $(USRP_INCLUDES) $(PYTHON_CPPFLAGS) -I$(srcdir) - - SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(INCLUDES) |