dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2008 Free Software Foundation, Inc. |
| 3 | # Copyright 2010 Range Networks, Inc. |
| 4 | # |
| 5 | # This software is distributed under the terms of the GNU Public License. |
| 6 | # See the COPYING file in the main directory for details. |
| 7 | # |
| 8 | # This program is free software: you can redistribute it and/or modify |
| 9 | # it under the terms of the GNU General Public License as published by |
| 10 | # the Free Software Foundation, either version 3 of the License, or |
| 11 | # (at your option) any later version. |
| 12 | # |
| 13 | # This program is distributed in the hope that it will be useful, |
| 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | # GNU General Public License for more details. |
| 17 | # |
| 18 | # You should have received a copy of the GNU General Public License |
| 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | # |
| 21 | |
| 22 | include $(top_srcdir)/Makefile.common |
| 23 | |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame] | 24 | AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) -I./common |
Thomas Tsou | 3eaae80 | 2013-08-20 19:31:14 -0400 | [diff] [blame] | 25 | AM_CXXFLAGS = -ldl -lpthread |
| 26 | |
Thomas Tsou | 7e4e536 | 2013-10-30 21:18:55 -0400 | [diff] [blame] | 27 | SUBDIRS = arm x86 |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame] | 28 | |
Thomas Tsou | 7e4e536 | 2013-10-30 21:18:55 -0400 | [diff] [blame] | 29 | if ARCH_ARM |
| 30 | ARCH_LA = arm/libarch.la |
| 31 | else |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame] | 32 | ARCH_LA = x86/libarch.la |
Thomas Tsou | 7e4e536 | 2013-10-30 21:18:55 -0400 | [diff] [blame] | 33 | endif |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame] | 34 | |
Thomas Tsou | fffd987 | 2013-11-04 10:20:21 -0800 | [diff] [blame] | 35 | if USRP1 |
Thomas Tsou | 3eaae80 | 2013-08-20 19:31:14 -0400 | [diff] [blame] | 36 | AM_CPPFLAGS += $(USRP_CFLAGS) |
Thomas Tsou | fffd987 | 2013-11-04 10:20:21 -0800 | [diff] [blame] | 37 | else |
| 38 | AM_CPPFLAGS += $(UHD_CFLAGS) |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 39 | endif |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 40 | |
kurtis.heimerl | 66ad2db | 2011-11-26 03:19:31 +0000 | [diff] [blame] | 41 | rev2dir = $(datadir)/usrp/rev2 |
| 42 | rev4dir = $(datadir)/usrp/rev4 |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 43 | |
kurtis.heimerl | 66ad2db | 2011-11-26 03:19:31 +0000 | [diff] [blame] | 44 | dist_rev2_DATA = std_inband.rbf |
| 45 | dist_rev4_DATA = std_inband.rbf |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 46 | |
| 47 | EXTRA_DIST = \ |
| 48 | README \ |
| 49 | README.Talgorithm |
| 50 | |
| 51 | noinst_LTLIBRARIES = libtransceiver.la |
| 52 | |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 53 | COMMON_SOURCES = \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 54 | radioInterface.cpp \ |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 55 | radioVector.cpp \ |
| 56 | radioClock.cpp \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 57 | sigProcLib.cpp \ |
Thomas Tsou | 20eb6d6 | 2013-11-09 14:30:41 -0500 | [diff] [blame] | 58 | signalVector.cpp \ |
Thomas Tsou | 66e2dd2 | 2013-10-29 18:08:46 -0400 | [diff] [blame] | 59 | Transceiver.cpp |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 60 | |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 61 | libtransceiver_la_SOURCES = \ |
| 62 | $(COMMON_SOURCES) \ |
Thomas Tsou | 03e6ecf | 2013-08-20 20:54:54 -0400 | [diff] [blame] | 63 | Resampler.cpp \ |
Thomas Tsou | cb69f08 | 2013-04-08 14:18:26 -0400 | [diff] [blame] | 64 | radioInterfaceResamp.cpp |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 65 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 66 | noinst_PROGRAMS = \ |
Thomas Tsou | 66e2dd2 | 2013-10-29 18:08:46 -0400 | [diff] [blame] | 67 | transceiver |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 68 | |
| 69 | noinst_HEADERS = \ |
| 70 | Complex.h \ |
| 71 | radioInterface.h \ |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 72 | radioVector.h \ |
| 73 | radioClock.h \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 74 | radioDevice.h \ |
| 75 | sigProcLib.h \ |
Thomas Tsou | 20eb6d6 | 2013-11-09 14:30:41 -0500 | [diff] [blame] | 76 | signalVector.h \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 77 | Transceiver.h \ |
| 78 | USRPDevice.h \ |
Thomas Tsou | 03e6ecf | 2013-08-20 20:54:54 -0400 | [diff] [blame] | 79 | Resampler.h \ |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame] | 80 | common/convolve.h \ |
Thomas Tsou | 7e4e536 | 2013-10-30 21:18:55 -0400 | [diff] [blame] | 81 | common/convert.h \ |
Thomas Tsou | 0a3dc4c | 2013-11-09 02:29:55 -0500 | [diff] [blame] | 82 | common/scale.h \ |
| 83 | common/mult.h |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 84 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 85 | transceiver_SOURCES = runTransceiver.cpp |
| 86 | transceiver_LDADD = \ |
| 87 | libtransceiver.la \ |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame] | 88 | $(ARCH_LA) \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 89 | $(GSM_LA) \ |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 90 | $(COMMON_LA) $(SQLITE_LA) |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 91 | |
Thomas Tsou | fffd987 | 2013-11-04 10:20:21 -0800 | [diff] [blame] | 92 | if USRP1 |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 93 | libtransceiver_la_SOURCES += USRPDevice.cpp |
| 94 | transceiver_LDADD += $(USRP_LIBS) |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 95 | else |
Thomas Tsou | fffd987 | 2013-11-04 10:20:21 -0800 | [diff] [blame] | 96 | libtransceiver_la_SOURCES += UHDDevice.cpp |
| 97 | transceiver_LDADD += $(UHD_LIBS) |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 98 | endif |