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) |
Pau Espin Pedrol | 778b30a | 2019-06-28 13:27:24 +0200 | [diff] [blame] | 28 | AM_CFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS) |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame] | 29 | |
Pau Espin Pedrol | 2128a30 | 2018-04-24 16:16:06 +0200 | [diff] [blame] | 30 | noinst_LTLIBRARIES = libtransceiver_common.la |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 31 | |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 32 | COMMON_SOURCES = \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 33 | radioInterface.cpp \ |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 34 | radioVector.cpp \ |
| 35 | radioClock.cpp \ |
Tom Tsou | 28670fb | 2015-08-21 19:32:58 -0700 | [diff] [blame] | 36 | radioBuffer.cpp \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 37 | sigProcLib.cpp \ |
Thomas Tsou | 20eb6d6 | 2013-11-09 14:30:41 -0500 | [diff] [blame] | 38 | signalVector.cpp \ |
Tom Tsou | 3522229 | 2016-06-22 16:16:30 -0700 | [diff] [blame] | 39 | Transceiver.cpp \ |
| 40 | ChannelizerBase.cpp \ |
| 41 | Channelizer.cpp \ |
Pau Espin Pedrol | 15fa64b | 2019-07-01 20:41:55 +0200 | [diff] [blame] | 42 | Synthesis.cpp \ |
| 43 | proto_trxd.c |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 44 | |
Pau Espin Pedrol | 2128a30 | 2018-04-24 16:16:06 +0200 | [diff] [blame] | 45 | libtransceiver_common_la_SOURCES = \ |
kurtis.heimerl | 75336d9 | 2011-11-26 03:19:05 +0000 | [diff] [blame] | 46 | $(COMMON_SOURCES) \ |
Thomas Tsou | 03e6ecf | 2013-08-20 20:54:54 -0400 | [diff] [blame] | 47 | Resampler.cpp \ |
Thomas Tsou | e90a42b | 2013-11-13 23:38:09 -0500 | [diff] [blame] | 48 | radioInterfaceResamp.cpp \ |
Tom Tsou | d6ae864 | 2017-03-30 17:22:58 -0700 | [diff] [blame] | 49 | radioInterfaceMulti.cpp |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 50 | |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 51 | noinst_HEADERS = \ |
| 52 | Complex.h \ |
| 53 | radioInterface.h \ |
kurtis.heimerl | 8aea56e | 2011-11-26 03:18:30 +0000 | [diff] [blame] | 54 | radioVector.h \ |
| 55 | radioClock.h \ |
Tom Tsou | 28670fb | 2015-08-21 19:32:58 -0700 | [diff] [blame] | 56 | radioBuffer.h \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 57 | sigProcLib.h \ |
Thomas Tsou | 20eb6d6 | 2013-11-09 14:30:41 -0500 | [diff] [blame] | 58 | signalVector.h \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 59 | Transceiver.h \ |
Thomas Tsou | 03e6ecf | 2013-08-20 20:54:54 -0400 | [diff] [blame] | 60 | Resampler.h \ |
Tom Tsou | 3522229 | 2016-06-22 16:16:30 -0700 | [diff] [blame] | 61 | ChannelizerBase.h \ |
| 62 | Channelizer.h \ |
Pau Espin Pedrol | 778b30a | 2019-06-28 13:27:24 +0200 | [diff] [blame] | 63 | Synthesis.h \ |
| 64 | proto_trxd.h |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 65 | |
Pau Espin Pedrol | 2128a30 | 2018-04-24 16:16:06 +0200 | [diff] [blame] | 66 | COMMON_LDADD = \ |
| 67 | libtransceiver_common.la \ |
Thomas Tsou | 17bbb9b | 2013-10-30 21:24:40 -0400 | [diff] [blame] | 68 | $(ARCH_LA) \ |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 69 | $(GSM_LA) \ |
Alexander Huemer | 6fafd33 | 2018-01-12 15:04:02 +0100 | [diff] [blame] | 70 | $(COMMON_LA) \ |
Pau Espin Pedrol | 8b843e5 | 2018-02-20 14:44:39 +0100 | [diff] [blame] | 71 | $(FFTWF_LIBS) \ |
Pau Espin Pedrol | 5ea1817 | 2018-02-20 16:48:15 +0100 | [diff] [blame] | 72 | $(LIBOSMOCORE_LIBS) \ |
| 73 | $(LIBOSMOCTRL_LIBS) \ |
| 74 | $(LIBOSMOVTY_LIBS) |
dburgess | b3a0ca4 | 2011-10-12 07:44:40 +0000 | [diff] [blame] | 75 | |
Eric | b7253c6 | 2022-11-28 19:21:08 +0100 | [diff] [blame^] | 76 | if ENABLE_MS_TRX |
| 77 | AM_CPPFLAGS += -I$(top_srcdir)/osmocom-bb/src/host/trxcon/include/ |
| 78 | AM_CPPFLAGS += -I${srcdir} |
| 79 | |
| 80 | TRXCON_LDADD = \ |
| 81 | $(top_builddir)/osmocom-bb/src/host/trxcon/src/.libs/libtrxcon.a \ |
| 82 | $(top_builddir)/osmocom-bb/src/host/trxcon/src/.libs/libl1sched.a \ |
| 83 | $(LIBOSMOCODING_LIBS) |
| 84 | |
| 85 | MS_SOURCES = \ |
| 86 | ms/sch.c \ |
| 87 | ms/ms.cpp \ |
| 88 | ms/ms_rx_lower.cpp \ |
| 89 | grgsm_vitac/grgsm_vitac.cpp \ |
| 90 | grgsm_vitac/viterbi_detector.cc |
| 91 | |
| 92 | noinst_HEADERS += \ |
| 93 | ms/ms.h \ |
| 94 | ms/bladerf_specific.h \ |
| 95 | ms/uhd_specific.h \ |
| 96 | ms/ms_rx_burst.h \ |
| 97 | ms/ms_upper.h \ |
| 98 | ms/itrq.h \ |
| 99 | ms/sch.h \ |
| 100 | grgsm_vitac/viterbi_detector.h \ |
| 101 | grgsm_vitac/constants.h \ |
| 102 | grgsm_vitac/grgsm_vitac.h |
| 103 | |
| 104 | endif |
| 105 | |
Pau Espin Pedrol | f3d7f44 | 2018-04-24 18:49:03 +0200 | [diff] [blame] | 106 | bin_PROGRAMS = |
Pau Espin Pedrol | 2128a30 | 2018-04-24 16:16:06 +0200 | [diff] [blame] | 107 | |
Pau Espin Pedrol | f3d7f44 | 2018-04-24 18:49:03 +0200 | [diff] [blame] | 108 | if DEVICE_UHD |
| 109 | bin_PROGRAMS += osmo-trx-uhd |
| 110 | osmo_trx_uhd_SOURCES = osmo-trx.cpp |
| 111 | osmo_trx_uhd_LDADD = \ |
Pau Espin Pedrol | 2a8183b | 2018-04-28 00:20:19 +0200 | [diff] [blame] | 112 | $(builddir)/device/uhd/libdevice.la \ |
Pau Espin Pedrol | 2128a30 | 2018-04-24 16:16:06 +0200 | [diff] [blame] | 113 | $(COMMON_LDADD) \ |
Pau Espin Pedrol | 2a8183b | 2018-04-28 00:20:19 +0200 | [diff] [blame] | 114 | $(UHD_LIBS) |
Pau Espin Pedrol | f3d7f44 | 2018-04-24 18:49:03 +0200 | [diff] [blame] | 115 | osmo_trx_uhd_CPPFLAGS = $(AM_CPPFLAGS) $(UHD_CFLAGS) |
Eric | b7253c6 | 2022-11-28 19:21:08 +0100 | [diff] [blame^] | 116 | |
| 117 | if ENABLE_MS_TRX |
| 118 | bin_PROGRAMS += osmo-trx-ms-uhd |
| 119 | osmo_trx_ms_uhd_SOURCES = $(MS_SOURCES) ms/ms_upper.cpp ms/l1ctl_server.c ms/logging.c ms/l1ctl_server_cb.cpp |
| 120 | osmo_trx_ms_uhd_LDADD = \ |
| 121 | $(builddir)/device/uhd/libdevice.la \ |
| 122 | $(COMMON_LDADD) \ |
| 123 | $(UHD_LIBS) \ |
| 124 | $(TRXCON_LDADD) |
| 125 | osmo_trx_ms_uhd_CPPFLAGS = $(AM_CPPFLAGS) $(UHD_CFLAGS) -DBUILDUHD |
| 126 | |
| 127 | bin_PROGRAMS += osmo-trx-syncthing-uhd |
| 128 | osmo_trx_syncthing_uhd_SOURCES = $(MS_SOURCES) ms/ms_rx_burst_test.cpp |
| 129 | osmo_trx_syncthing_uhd_LDADD = \ |
| 130 | $(builddir)/device/uhd/libdevice.la \ |
| 131 | $(COMMON_LDADD) \ |
| 132 | $(UHD_LIBS) \ |
| 133 | $(TRXCON_LDADD) |
| 134 | osmo_trx_syncthing_uhd_CPPFLAGS = $(AM_CPPFLAGS) $(UHD_CFLAGS) -DSYNCTHINGONLY -DBUILDUHD |
| 135 | endif |
Pau Espin Pedrol | f3d7f44 | 2018-04-24 18:49:03 +0200 | [diff] [blame] | 136 | endif |
| 137 | |
| 138 | if DEVICE_USRP1 |
| 139 | bin_PROGRAMS += osmo-trx-usrp1 |
| 140 | osmo_trx_usrp1_SOURCES = osmo-trx.cpp |
| 141 | osmo_trx_usrp1_LDADD = \ |
Pau Espin Pedrol | 2a8183b | 2018-04-28 00:20:19 +0200 | [diff] [blame] | 142 | $(builddir)/device/usrp1/libdevice.la \ |
Pau Espin Pedrol | f3d7f44 | 2018-04-24 18:49:03 +0200 | [diff] [blame] | 143 | $(COMMON_LDADD) \ |
Pau Espin Pedrol | 2a8183b | 2018-04-28 00:20:19 +0200 | [diff] [blame] | 144 | $(USRP_LIBS) |
Pau Espin Pedrol | f3d7f44 | 2018-04-24 18:49:03 +0200 | [diff] [blame] | 145 | osmo_trx_usrp1_CPPFLAGS = $(AM_CPPFLAGS) $(USRP_CFLAGS) |
kurtis.heimerl | 4ba4718 | 2011-11-26 03:19:36 +0000 | [diff] [blame] | 146 | endif |
Pau Espin Pedrol | 1f50fed | 2018-04-25 11:12:06 +0200 | [diff] [blame] | 147 | |
| 148 | if DEVICE_LMS |
| 149 | bin_PROGRAMS += osmo-trx-lms |
| 150 | osmo_trx_lms_SOURCES = osmo-trx.cpp |
| 151 | osmo_trx_lms_LDADD = \ |
Pau Espin Pedrol | f7905ac | 2018-05-08 20:29:32 +0200 | [diff] [blame] | 152 | $(builddir)/device/lms/libdevice.la \ |
Pau Espin Pedrol | 1f50fed | 2018-04-25 11:12:06 +0200 | [diff] [blame] | 153 | $(COMMON_LDADD) \ |
Pau Espin Pedrol | f7905ac | 2018-05-08 20:29:32 +0200 | [diff] [blame] | 154 | $(LMS_LIBS) |
Pau Espin Pedrol | 1f50fed | 2018-04-25 11:12:06 +0200 | [diff] [blame] | 155 | osmo_trx_lms_CPPFLAGS = $(AM_CPPFLAGS) $(LMS_CFLAGS) |
| 156 | endif |
Eric Wild | 1e17c4f | 2020-03-24 17:19:27 +0100 | [diff] [blame] | 157 | |
Eric | 7d897cb | 2022-11-28 19:20:32 +0100 | [diff] [blame] | 158 | if DEVICE_BLADE |
| 159 | bin_PROGRAMS += osmo-trx-blade |
| 160 | osmo_trx_blade_SOURCES = osmo-trx.cpp |
| 161 | osmo_trx_blade_LDADD = \ |
| 162 | $(builddir)/device/bladerf/libdevice.la \ |
| 163 | $(COMMON_LDADD) \ |
| 164 | $(BLADE_LIBS) |
| 165 | osmo_trx_blade_CPPFLAGS = $(AM_CPPFLAGS) $(LMS_CFLAGS) |
| 166 | |
Eric | b7253c6 | 2022-11-28 19:21:08 +0100 | [diff] [blame^] | 167 | if ENABLE_MS_TRX |
| 168 | bin_PROGRAMS += osmo-trx-ms-blade |
| 169 | osmo_trx_ms_blade_SOURCES = $(MS_SOURCES) ms/ms_upper.cpp ms/l1ctl_server.c ms/logging.c ms/l1ctl_server_cb.cpp |
| 170 | osmo_trx_ms_blade_LDADD = \ |
| 171 | $(builddir)/device/bladerf/libdevice.la \ |
| 172 | $(COMMON_LDADD) \ |
| 173 | $(BLADE_LIBS) \ |
| 174 | $(TRXCON_LDADD) |
| 175 | osmo_trx_ms_blade_CPPFLAGS = $(AM_CPPFLAGS) $(BLADE_CFLAGS) -DBUILDBLADE |
| 176 | |
| 177 | bin_PROGRAMS += osmo-trx-syncthing-blade |
| 178 | osmo_trx_syncthing_blade_SOURCES = $(MS_SOURCES) ms/ms_rx_burst_test.cpp |
| 179 | osmo_trx_syncthing_blade_LDADD = \ |
| 180 | $(builddir)/device/bladerf/libdevice.la \ |
| 181 | $(COMMON_LDADD) \ |
| 182 | $(BLADE_LIBS) \ |
| 183 | $(TRXCON_LDADD) |
| 184 | osmo_trx_syncthing_blade_CPPFLAGS = $(AM_CPPFLAGS) $(BLADE_CFLAGS) -DSYNCTHINGONLY -DBUILDBLADE -I../device/ipc |
| 185 | endif |
Eric | 7d897cb | 2022-11-28 19:20:32 +0100 | [diff] [blame] | 186 | endif |
| 187 | |
Eric Wild | 1e17c4f | 2020-03-24 17:19:27 +0100 | [diff] [blame] | 188 | if DEVICE_IPC |
| 189 | bin_PROGRAMS += osmo-trx-ipc |
| 190 | osmo_trx_ipc_SOURCES = osmo-trx.cpp |
| 191 | osmo_trx_ipc_LDADD = \ |
| 192 | $(builddir)/device/ipc/libdevice.la \ |
| 193 | $(COMMON_LDADD) |
| 194 | osmo_trx_ipc_CPPFLAGS = $(AM_CPPFLAGS) |
| 195 | endif |