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