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