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 | |
Alexander Chemeris | e476231 | 2016-04-29 14:05:59 +0300 | [diff] [blame] | 24 | AM_CPPFLAGS = -Wall $(STD_DEFINES_AND_INCLUDES) -I${srcdir}/common |
Pau Espin Pedrol | 5ea1817 | 2018-02-20 16:48:15 +0100 | [diff] [blame] | 25 | AM_CXXFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS) |
Thomas Tsou | 3eaae80 | 2013-08-20 19:31:14 -0400 | [diff] [blame] | 26 | |
Pau Espin Pedrol | 8fbbd65 | 2018-03-07 20:21:06 +0100 | [diff] [blame] | 27 | SUBDIRS = common |
Pau Espin Pedrol | b35cba6 | 2018-03-07 14:39:26 +0100 | [diff] [blame] | 28 | if ARCH_ARM |
Pau Espin Pedrol | 8fbbd65 | 2018-03-07 20:21:06 +0100 | [diff] [blame] | 29 | SUBDIRS += arm |
Pau Espin Pedrol | b35cba6 | 2018-03-07 14:39:26 +0100 | [diff] [blame] | 30 | else |
Pau Espin Pedrol | 8fbbd65 | 2018-03-07 20:21:06 +0100 | [diff] [blame] | 31 | SUBDIRS += x86 |
Pau Espin Pedrol | b35cba6 | 2018-03-07 14:39:26 +0100 | [diff] [blame] | 32 | endif |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame] | 33 | |
Pau Espin Pedrol | 82f83ce | 2018-01-09 15:09:31 +0100 | [diff] [blame] | 34 | if USRP1 |
Thomas Tsou | 3eaae80 | 2013-08-20 19:31:14 -0400 | [diff] [blame] | 35 | AM_CPPFLAGS += $(USRP_CFLAGS) |
Thomas Tsou | fffd987 | 2013-11-04 10:20:21 -0800 | [diff] [blame] | 36 | else |
| 37 | AM_CPPFLAGS += $(UHD_CFLAGS) |
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 \ |
Tom Tsou | 28670fb | 2015-08-21 19:32:58 -0700 | [diff] [blame] | 56 | radioBuffer.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 \ |
Tom Tsou | 3522229 | 2016-06-22 16:16:30 -0700 | [diff] [blame] | 59 | Transceiver.cpp \ |
| 60 | ChannelizerBase.cpp \ |
| 61 | Channelizer.cpp \ |
Pau Espin Pedrol | 8fbbd65 | 2018-03-07 20:21:06 +0100 | [diff] [blame] | 62 | Synthesis.cpp |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 63 | |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 64 | libtransceiver_la_SOURCES = \ |
| 65 | $(COMMON_SOURCES) \ |
Thomas Tsou | 03e6ecf | 2013-08-20 20:54:54 -0400 | [diff] [blame] | 66 | Resampler.cpp \ |
Thomas Tsou | e90a42b | 2013-11-13 23:38:09 -0500 | [diff] [blame] | 67 | radioInterfaceResamp.cpp \ |
Tom Tsou | d6ae864 | 2017-03-30 17:22:58 -0700 | [diff] [blame] | 68 | radioInterfaceMulti.cpp |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 69 | |
Thomas Tsou | 85b179d | 2013-11-15 21:14:33 -0500 | [diff] [blame] | 70 | bin_PROGRAMS = osmo-trx |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 71 | |
| 72 | noinst_HEADERS = \ |
| 73 | Complex.h \ |
| 74 | radioInterface.h \ |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 75 | radioVector.h \ |
| 76 | radioClock.h \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 77 | radioDevice.h \ |
Tom Tsou | 28670fb | 2015-08-21 19:32:58 -0700 | [diff] [blame] | 78 | radioBuffer.h \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 79 | sigProcLib.h \ |
Thomas Tsou | 20eb6d6 | 2013-11-09 14:30:41 -0500 | [diff] [blame] | 80 | signalVector.h \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 81 | Transceiver.h \ |
| 82 | USRPDevice.h \ |
Thomas Tsou | 03e6ecf | 2013-08-20 20:54:54 -0400 | [diff] [blame] | 83 | Resampler.h \ |
Tom Tsou | 3522229 | 2016-06-22 16:16:30 -0700 | [diff] [blame] | 84 | ChannelizerBase.h \ |
| 85 | Channelizer.h \ |
Pau Espin Pedrol | 8fbbd65 | 2018-03-07 20:21:06 +0100 | [diff] [blame] | 86 | Synthesis.h |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 87 | |
Thomas Tsou | 85b179d | 2013-11-15 21:14:33 -0500 | [diff] [blame] | 88 | osmo_trx_SOURCES = osmo-trx.cpp |
| 89 | osmo_trx_LDADD = \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 90 | libtransceiver.la \ |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame] | 91 | $(ARCH_LA) \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 92 | $(GSM_LA) \ |
Alexander Huemer | 6fafd33 | 2018-01-12 15:04:02 +0100 | [diff] [blame] | 93 | $(COMMON_LA) \ |
Pau Espin Pedrol | 8b843e5 | 2018-02-20 14:44:39 +0100 | [diff] [blame] | 94 | $(FFTWF_LIBS) \ |
Pau Espin Pedrol | 5ea1817 | 2018-02-20 16:48:15 +0100 | [diff] [blame] | 95 | $(LIBOSMOCORE_LIBS) \ |
| 96 | $(LIBOSMOCTRL_LIBS) \ |
| 97 | $(LIBOSMOVTY_LIBS) |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 98 | |
Pau Espin Pedrol | 82f83ce | 2018-01-09 15:09:31 +0100 | [diff] [blame] | 99 | if USRP1 |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 100 | libtransceiver_la_SOURCES += USRPDevice.cpp |
Thomas Tsou | 85b179d | 2013-11-15 21:14:33 -0500 | [diff] [blame] | 101 | osmo_trx_LDADD += $(USRP_LIBS) |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 102 | else |
Thomas Tsou | fffd987 | 2013-11-04 10:20:21 -0800 | [diff] [blame] | 103 | libtransceiver_la_SOURCES += UHDDevice.cpp |
Alexander Huemer | 6fafd33 | 2018-01-12 15:04:02 +0100 | [diff] [blame] | 104 | osmo_trx_LDADD += $(UHD_LIBS) |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 105 | endif |