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 | |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 24 | #UHD wins if both are defined |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 25 | if UHD |
| 26 | AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(UHD_CFLAGS) |
| 27 | else |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 28 | if USRP1 |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 29 | AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(USRP_CFLAGS) |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 30 | else |
| 31 | #we should never be here, as this doesn't build if one of the above |
| 32 | #doesn't exist |
| 33 | AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) |
| 34 | endif |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 35 | endif |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 36 | AM_CXXFLAGS = -ldl -lpthread |
| 37 | |
kurtis.heimerl | 66ad2db | 2011-11-26 03:19:31 +0000 | [diff] [blame] | 38 | rev2dir = $(datadir)/usrp/rev2 |
| 39 | rev4dir = $(datadir)/usrp/rev4 |
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 | dist_rev2_DATA = std_inband.rbf |
| 42 | dist_rev4_DATA = std_inband.rbf |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 43 | |
| 44 | EXTRA_DIST = \ |
| 45 | README \ |
| 46 | README.Talgorithm |
| 47 | |
| 48 | noinst_LTLIBRARIES = libtransceiver.la |
| 49 | |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 50 | COMMON_SOURCES = \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 51 | radioInterface.cpp \ |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 52 | radioVector.cpp \ |
| 53 | radioClock.cpp \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 54 | sigProcLib.cpp \ |
| 55 | Transceiver.cpp \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 56 | DummyLoad.cpp |
| 57 | |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 58 | if RESAMPLE |
| 59 | libtransceiver_la_SOURCES = \ |
| 60 | $(COMMON_SOURCES) \ |
| 61 | radioIOResamp.cpp |
| 62 | else |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 63 | libtransceiver_la_SOURCES = \ |
kurtis.heimerl | 9b55783 | 2011-11-26 03:18:34 +0000 | [diff] [blame] | 64 | $(COMMON_SOURCES) \ |
| 65 | radioIO.cpp |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 66 | endif |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 67 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 68 | noinst_PROGRAMS = \ |
| 69 | USRPping \ |
| 70 | transceiver \ |
| 71 | sigProcLibTest |
| 72 | |
| 73 | noinst_HEADERS = \ |
| 74 | Complex.h \ |
| 75 | radioInterface.h \ |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 76 | radioVector.h \ |
| 77 | radioClock.h \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 78 | radioDevice.h \ |
| 79 | sigProcLib.h \ |
| 80 | Transceiver.h \ |
| 81 | USRPDevice.h \ |
kurtis.heimerl | a198d45 | 2011-11-26 03:19:28 +0000 | [diff] [blame] | 82 | DummyLoad.h \ |
| 83 | rcvLPF_651.h \ |
| 84 | sendLPF_961.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 \ |
| 94 | $(GSM_LA) \ |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 95 | $(COMMON_LA) $(SQLITE_LA) |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 96 | |
| 97 | sigProcLibTest_SOURCES = sigProcLibTest.cpp |
| 98 | sigProcLibTest_LDADD = \ |
| 99 | libtransceiver.la \ |
| 100 | $(GSM_LA) \ |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 101 | $(COMMON_LA) $(SQLITE_LA) |
| 102 | |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 103 | #uhd wins |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 104 | if UHD |
| 105 | libtransceiver_la_SOURCES += UHDDevice.cpp |
| 106 | transceiver_LDADD += $(UHD_LIBS) |
| 107 | USRPping_LDADD += $(UHD_LIBS) |
| 108 | sigProcLibTest_LDADD += $(UHD_LIBS) |
| 109 | else |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 110 | if USRP1 |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 111 | libtransceiver_la_SOURCES += USRPDevice.cpp |
| 112 | transceiver_LDADD += $(USRP_LIBS) |
| 113 | USRPping_LDADD += $(USRP_LIBS) |
| 114 | sigProcLibTest_LDADD += $(USRP_LIBS) |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 115 | else |
| 116 | #we should never be here, as one of the above mustbe defined for us to build |
| 117 | endif |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 118 | endif |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 119 | |
| 120 | |
| 121 | MOSTLYCLEANFILES += |
| 122 | |
| 123 | #radioInterface.cpp |
| 124 | #ComplexTest.cpp |
| 125 | #sigProcLibTest.cpp |
| 126 | #sweepGenerator.cpp |
| 127 | #testRadio.cpp |
| 128 | |