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 | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame^] | 27 | SUBDIRS = x86 |
| 28 | |
| 29 | ARCH_LA = x86/libarch.la |
| 30 | |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 31 | #UHD wins if both are defined |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 32 | if UHD |
Thomas Tsou | 3eaae80 | 2013-08-20 19:31:14 -0400 | [diff] [blame] | 33 | AM_CPPFLAGS += $(UHD_CFLAGS) |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 34 | else |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 35 | if USRP1 |
Thomas Tsou | 3eaae80 | 2013-08-20 19:31:14 -0400 | [diff] [blame] | 36 | AM_CPPFLAGS += $(USRP_CFLAGS) |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 37 | endif |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 38 | endif |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 39 | |
kurtis.heimerl | 66ad2db | 2011-11-26 03:19:31 +0000 | [diff] [blame] | 40 | rev2dir = $(datadir)/usrp/rev2 |
| 41 | rev4dir = $(datadir)/usrp/rev4 |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 42 | |
kurtis.heimerl | 66ad2db | 2011-11-26 03:19:31 +0000 | [diff] [blame] | 43 | dist_rev2_DATA = std_inband.rbf |
| 44 | dist_rev4_DATA = std_inband.rbf |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 45 | |
| 46 | EXTRA_DIST = \ |
| 47 | README \ |
| 48 | README.Talgorithm |
| 49 | |
| 50 | noinst_LTLIBRARIES = libtransceiver.la |
| 51 | |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 52 | COMMON_SOURCES = \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 53 | radioInterface.cpp \ |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 54 | radioVector.cpp \ |
| 55 | radioClock.cpp \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 56 | sigProcLib.cpp \ |
| 57 | Transceiver.cpp \ |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame^] | 58 | DummyLoad.cpp |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 59 | |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 60 | libtransceiver_la_SOURCES = \ |
| 61 | $(COMMON_SOURCES) \ |
Thomas Tsou | 03e6ecf | 2013-08-20 20:54:54 -0400 | [diff] [blame] | 62 | Resampler.cpp \ |
Thomas Tsou | cb69f08 | 2013-04-08 14:18:26 -0400 | [diff] [blame] | 63 | radioInterfaceResamp.cpp |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 64 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 65 | noinst_PROGRAMS = \ |
| 66 | USRPping \ |
| 67 | transceiver \ |
| 68 | sigProcLibTest |
| 69 | |
| 70 | noinst_HEADERS = \ |
| 71 | Complex.h \ |
| 72 | radioInterface.h \ |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 73 | radioVector.h \ |
| 74 | radioClock.h \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 75 | radioDevice.h \ |
| 76 | sigProcLib.h \ |
| 77 | Transceiver.h \ |
| 78 | USRPDevice.h \ |
kurtis.heimerl | a198d45 | 2011-11-26 03:19:28 +0000 | [diff] [blame] | 79 | DummyLoad.h \ |
| 80 | rcvLPF_651.h \ |
Thomas Tsou | 3eaae80 | 2013-08-20 19:31:14 -0400 | [diff] [blame] | 81 | sendLPF_961.h \ |
Thomas Tsou | 03e6ecf | 2013-08-20 20:54:54 -0400 | [diff] [blame] | 82 | Resampler.h \ |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame^] | 83 | common/convolve.h \ |
| 84 | common/convert.h |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 85 | |
| 86 | USRPping_SOURCES = USRPping.cpp |
| 87 | USRPping_LDADD = \ |
| 88 | libtransceiver.la \ |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 89 | $(COMMON_LA) $(SQLITE_LA) |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 90 | |
| 91 | transceiver_SOURCES = runTransceiver.cpp |
| 92 | transceiver_LDADD = \ |
| 93 | libtransceiver.la \ |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame^] | 94 | $(ARCH_LA) \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 95 | $(GSM_LA) \ |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 96 | $(COMMON_LA) $(SQLITE_LA) |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 97 | |
| 98 | sigProcLibTest_SOURCES = sigProcLibTest.cpp |
| 99 | sigProcLibTest_LDADD = \ |
| 100 | libtransceiver.la \ |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame^] | 101 | $(ARCH_LA) \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 102 | $(GSM_LA) \ |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 103 | $(COMMON_LA) $(SQLITE_LA) |
| 104 | |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 105 | #uhd wins |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 106 | if UHD |
| 107 | libtransceiver_la_SOURCES += UHDDevice.cpp |
| 108 | transceiver_LDADD += $(UHD_LIBS) |
| 109 | USRPping_LDADD += $(UHD_LIBS) |
| 110 | sigProcLibTest_LDADD += $(UHD_LIBS) |
| 111 | else |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 112 | if USRP1 |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 113 | libtransceiver_la_SOURCES += USRPDevice.cpp |
| 114 | transceiver_LDADD += $(USRP_LIBS) |
| 115 | USRPping_LDADD += $(USRP_LIBS) |
| 116 | sigProcLibTest_LDADD += $(USRP_LIBS) |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 117 | else |
| 118 | #we should never be here, as one of the above mustbe defined for us to build |
| 119 | endif |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 120 | endif |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 121 | |
| 122 | |
| 123 | MOSTLYCLEANFILES += |
| 124 | |
| 125 | #radioInterface.cpp |
| 126 | #ComplexTest.cpp |
| 127 | #sigProcLibTest.cpp |
| 128 | #sweepGenerator.cpp |
| 129 | #testRadio.cpp |
| 130 | |