root / gr-usrp2 / src / Makefile.am @ ad13c00a
History | View | Annotate | Download (3.1 kB)
| 1 | # |
|---|---|
| 2 | # Copyright 2004,2005,2006,2008,2009 Free Software Foundation, Inc. |
| 3 | # |
| 4 | # This file is part of GNU Radio |
| 5 | # |
| 6 | # GNU Radio is free software; you can redistribute it and/or modify |
| 7 | # it under the terms of the GNU General Public License as published by |
| 8 | # the Free Software Foundation; either version 3, or (at your option) |
| 9 | # any later version. |
| 10 | # |
| 11 | # GNU Radio is distributed in the hope that it will be useful, |
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | # GNU General Public License for more details. |
| 15 | # |
| 16 | # You should have received a copy of the GNU General Public License |
| 17 | # along with GNU Radio; see the file COPYING. If not, write to |
| 18 | # the Free Software Foundation, Inc., 51 Franklin Street, |
| 19 | # Boston, MA 02110-1301, USA. |
| 20 | # |
| 21 | |
| 22 | include $(top_srcdir)/Makefile.common |
| 23 | |
| 24 | # ---------------------------------------------------------------------- |
| 25 | # Local Python files, not installed |
| 26 | # |
| 27 | # qa_usrp2.py |
| 28 | # ---------------------------------------------------------------------- |
| 29 | |
| 30 | noinst_PYTHON = qa_usrp2.py |
| 31 | |
| 32 | # ---------------------------------------------------------------------- |
| 33 | # Miscellaneous build operations |
| 34 | # ---------------------------------------------------------------------- |
| 35 | |
| 36 | EXTRA_DIST = run_tests.in |
| 37 | DISTCLEANFILES = run_tests |
| 38 | |
| 39 | # ---------------------------------------------------------------------- |
| 40 | # C++ block API interface librar(ies) |
| 41 | # |
| 42 | # libgr-usrp.so |
| 43 | # ---------------------------------------------------------------------- |
| 44 | AM_CPPFLAGS = \ |
| 45 | $(STD_DEFINES_AND_INCLUDES) \ |
| 46 | $(GRUEL_INCLUDES) \ |
| 47 | $(PYTHON_CPPFLAGS) \ |
| 48 | $(USRP2_INCLUDES) \ |
| 49 | $(WITH_INCLUDES) |
| 50 | |
| 51 | lib_LTLIBRARIES = libgnuradio-usrp2.la |
| 52 | |
| 53 | libgnuradio_usrp2_la_LDFLAGS = $(LTVERSIONFLAGS) |
| 54 | |
| 55 | libgnuradio_usrp2_la_SOURCES = \ |
| 56 | rx_16sc_handler.cc \ |
| 57 | rx_32fc_handler.cc \ |
| 58 | usrp2_base.cc \ |
| 59 | usrp2_source_base.cc \ |
| 60 | usrp2_source_16sc.cc \ |
| 61 | usrp2_source_32fc.cc \ |
| 62 | usrp2_sink_base.cc \ |
| 63 | usrp2_sink_16sc.cc \ |
| 64 | usrp2_sink_32fc.cc |
| 65 | |
| 66 | libgnuradio_usrp2_la_LIBADD = \ |
| 67 | $(USRP2_LA) \ |
| 68 | $(GNURADIO_CORE_LA) |
| 69 | |
| 70 | grinclude_HEADERS = \ |
| 71 | usrp2_base.h \ |
| 72 | usrp2_source_base.h \ |
| 73 | usrp2_source_32fc.h \ |
| 74 | usrp2_source_16sc.h \ |
| 75 | usrp2_sink_base.h \ |
| 76 | usrp2_sink_16sc.h \ |
| 77 | usrp2_sink_32fc.h |
| 78 | |
| 79 | noinst_HEADERS = \ |
| 80 | rx_16sc_handler.h \ |
| 81 | rx_32fc_handler.h |
| 82 | |
| 83 | if PYTHON |
| 84 | # ---------------------------------------------------------------------- |
| 85 | # Python SWIG wrapper around C++ library |
| 86 | # |
| 87 | # usrp2.py |
| 88 | # _usrp2.so |
| 89 | # ---------------------------------------------------------------------- |
| 90 | TESTS = run_tests |
| 91 | |
| 92 | TOP_SWIG_IFILES = \ |
| 93 | usrp2.i |
| 94 | |
| 95 | # Install so that they end up available as: |
| 96 | # import gnuradio.usrp2 |
| 97 | # This ends up at: |
| 98 | # ${prefix}/lib/python${python_version}/site-packages/gnuradio
|
| 99 | usrp2_pythondir_category = \ |
| 100 | gnuradio |
| 101 | |
| 102 | # additional arguments to the SWIG command |
| 103 | usrp2_swig_args = \ |
| 104 | $(USRP2_INCLUDES) |
| 105 | |
| 106 | # additional libraries for linking with the SWIG-generated library |
| 107 | usrp2_la_swig_libadd = \ |
| 108 | libgnuradio-usrp2.la |
| 109 | |
| 110 | include $(top_srcdir)/Makefile.swig |
| 111 | |
| 112 | # add some of the variables generated inside the Makefile.swig.gen |
| 113 | BUILT_SOURCES = $(swig_built_sources) |
| 114 | |
| 115 | # Do not distribute the output of SWIG |
| 116 | no_dist_files = $(swig_built_sources) |
| 117 | endif |