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 | |
Pau Espin Pedrol | 2128a30 | 2018-04-24 16:16:06 +0200 | [diff] [blame] | 24 | SUBDIRS = arch device |
Thomas Tsou | 3eaae80 | 2013-08-20 19:31:14 -0400 | [diff] [blame] | 25 | |
Pau Espin Pedrol | b5def41 | 2019-05-03 21:08:40 +0200 | [diff] [blame] | 26 | AM_CPPFLAGS = -Wall $(STD_DEFINES_AND_INCLUDES) -I${srcdir}/arch/common -I${srcdir}/device/common |
Pau Espin Pedrol | 43fedb6 | 2018-04-24 15:22:57 +0200 | [diff] [blame] | 27 | AM_CXXFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS) |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame] | 28 | |
kurtis.heimerl | 66ad2db | 2011-11-26 03:19:31 +0000 | [diff] [blame] | 29 | rev2dir = $(datadir)/usrp/rev2 |
| 30 | rev4dir = $(datadir)/usrp/rev4 |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 31 | |
kurtis.heimerl | 66ad2db | 2011-11-26 03:19:31 +0000 | [diff] [blame] | 32 | dist_rev2_DATA = std_inband.rbf |
| 33 | dist_rev4_DATA = std_inband.rbf |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 34 | |
Pau Espin Pedrol | 478f82f | 2018-04-27 11:32:12 +0200 | [diff] [blame] | 35 | EXTRA_DIST = README |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 36 | |
Pau Espin Pedrol | 2128a30 | 2018-04-24 16:16:06 +0200 | [diff] [blame] | 37 | noinst_LTLIBRARIES = libtransceiver_common.la |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 38 | |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 39 | COMMON_SOURCES = \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 40 | radioInterface.cpp \ |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 41 | radioVector.cpp \ |
| 42 | radioClock.cpp \ |
Tom Tsou | 28670fb | 2015-08-21 19:32:58 -0700 | [diff] [blame] | 43 | radioBuffer.cpp \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 44 | sigProcLib.cpp \ |
Thomas Tsou | 20eb6d6 | 2013-11-09 14:30:41 -0500 | [diff] [blame] | 45 | signalVector.cpp \ |
Tom Tsou | 3522229 | 2016-06-22 16:16:30 -0700 | [diff] [blame] | 46 | Transceiver.cpp \ |
| 47 | ChannelizerBase.cpp \ |
| 48 | Channelizer.cpp \ |
Pau Espin Pedrol | 8fbbd65 | 2018-03-07 20:21:06 +0100 | [diff] [blame] | 49 | Synthesis.cpp |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 50 | |
Pau Espin Pedrol | 2128a30 | 2018-04-24 16:16:06 +0200 | [diff] [blame] | 51 | libtransceiver_common_la_SOURCES = \ |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 52 | $(COMMON_SOURCES) \ |
Thomas Tsou | 03e6ecf | 2013-08-20 20:54:54 -0400 | [diff] [blame] | 53 | Resampler.cpp \ |
Thomas Tsou | e90a42b | 2013-11-13 23:38:09 -0500 | [diff] [blame] | 54 | radioInterfaceResamp.cpp \ |
Tom Tsou | d6ae864 | 2017-03-30 17:22:58 -0700 | [diff] [blame] | 55 | radioInterfaceMulti.cpp |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 56 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 57 | noinst_HEADERS = \ |
| 58 | Complex.h \ |
| 59 | radioInterface.h \ |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 60 | radioVector.h \ |
| 61 | radioClock.h \ |
Tom Tsou | 28670fb | 2015-08-21 19:32:58 -0700 | [diff] [blame] | 62 | radioBuffer.h \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 63 | sigProcLib.h \ |
Thomas Tsou | 20eb6d6 | 2013-11-09 14:30:41 -0500 | [diff] [blame] | 64 | signalVector.h \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 65 | Transceiver.h \ |
Thomas Tsou | 03e6ecf | 2013-08-20 20:54:54 -0400 | [diff] [blame] | 66 | Resampler.h \ |
Tom Tsou | 3522229 | 2016-06-22 16:16:30 -0700 | [diff] [blame] | 67 | ChannelizerBase.h \ |
| 68 | Channelizer.h \ |
Pau Espin Pedrol | 8fbbd65 | 2018-03-07 20:21:06 +0100 | [diff] [blame] | 69 | Synthesis.h |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 70 | |
Pau Espin Pedrol | 2128a30 | 2018-04-24 16:16:06 +0200 | [diff] [blame] | 71 | COMMON_LDADD = \ |
| 72 | libtransceiver_common.la \ |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame] | 73 | $(ARCH_LA) \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 74 | $(GSM_LA) \ |
Alexander Huemer | 6fafd33 | 2018-01-12 15:04:02 +0100 | [diff] [blame] | 75 | $(COMMON_LA) \ |
Pau Espin Pedrol | 8b843e5 | 2018-02-20 14:44:39 +0100 | [diff] [blame] | 76 | $(FFTWF_LIBS) \ |
Pau Espin Pedrol | 5ea1817 | 2018-02-20 16:48:15 +0100 | [diff] [blame] | 77 | $(LIBOSMOCORE_LIBS) \ |
| 78 | $(LIBOSMOCTRL_LIBS) \ |
| 79 | $(LIBOSMOVTY_LIBS) |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 80 | |
Pau Espin Pedrol | f3d7f44 | 2018-04-24 18:49:03 +0200 | [diff] [blame] | 81 | bin_PROGRAMS = |
Pau Espin Pedrol | 2128a30 | 2018-04-24 16:16:06 +0200 | [diff] [blame] | 82 | |
Pau Espin Pedrol | f3d7f44 | 2018-04-24 18:49:03 +0200 | [diff] [blame] | 83 | if DEVICE_UHD |
| 84 | bin_PROGRAMS += osmo-trx-uhd |
| 85 | osmo_trx_uhd_SOURCES = osmo-trx.cpp |
| 86 | osmo_trx_uhd_LDADD = \ |
Pau Espin Pedrol | 2a8183b | 2018-04-28 00:20:19 +0200 | [diff] [blame] | 87 | $(builddir)/device/uhd/libdevice.la \ |
Pau Espin Pedrol | 2128a30 | 2018-04-24 16:16:06 +0200 | [diff] [blame] | 88 | $(COMMON_LDADD) \ |
Pau Espin Pedrol | 2a8183b | 2018-04-28 00:20:19 +0200 | [diff] [blame] | 89 | $(UHD_LIBS) |
Pau Espin Pedrol | f3d7f44 | 2018-04-24 18:49:03 +0200 | [diff] [blame] | 90 | osmo_trx_uhd_CPPFLAGS = $(AM_CPPFLAGS) $(UHD_CFLAGS) |
| 91 | endif |
| 92 | |
| 93 | if DEVICE_USRP1 |
| 94 | bin_PROGRAMS += osmo-trx-usrp1 |
| 95 | osmo_trx_usrp1_SOURCES = osmo-trx.cpp |
| 96 | osmo_trx_usrp1_LDADD = \ |
Pau Espin Pedrol | 2a8183b | 2018-04-28 00:20:19 +0200 | [diff] [blame] | 97 | $(builddir)/device/usrp1/libdevice.la \ |
Pau Espin Pedrol | f3d7f44 | 2018-04-24 18:49:03 +0200 | [diff] [blame] | 98 | $(COMMON_LDADD) \ |
Pau Espin Pedrol | 2a8183b | 2018-04-28 00:20:19 +0200 | [diff] [blame] | 99 | $(USRP_LIBS) |
Pau Espin Pedrol | f3d7f44 | 2018-04-24 18:49:03 +0200 | [diff] [blame] | 100 | osmo_trx_usrp1_CPPFLAGS = $(AM_CPPFLAGS) $(USRP_CFLAGS) |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 101 | endif |
Pau Espin Pedrol | 1f50fed | 2018-04-25 11:12:06 +0200 | [diff] [blame] | 102 | |
| 103 | if DEVICE_LMS |
| 104 | bin_PROGRAMS += osmo-trx-lms |
| 105 | osmo_trx_lms_SOURCES = osmo-trx.cpp |
| 106 | osmo_trx_lms_LDADD = \ |
Pau Espin Pedrol | f7905ac | 2018-05-08 20:29:32 +0200 | [diff] [blame] | 107 | $(builddir)/device/lms/libdevice.la \ |
Pau Espin Pedrol | 1f50fed | 2018-04-25 11:12:06 +0200 | [diff] [blame] | 108 | $(COMMON_LDADD) \ |
Pau Espin Pedrol | f7905ac | 2018-05-08 20:29:32 +0200 | [diff] [blame] | 109 | $(LMS_LIBS) |
Pau Espin Pedrol | 1f50fed | 2018-04-25 11:12:06 +0200 | [diff] [blame] | 110 | osmo_trx_lms_CPPFLAGS = $(AM_CPPFLAGS) $(LMS_CFLAGS) |
| 111 | endif |