blob: 0b63b16e4e8368943412df716d9af7bdeb867327 [file] [log] [blame]
dburgessb3a0ca42011-10-12 07:44:40 +00001#
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
22include $(top_srcdir)/Makefile.common
23
Pau Espin Pedrol2128a302018-04-24 16:16:06 +020024SUBDIRS = arch device
Thomas Tsou3eaae802013-08-20 19:31:14 -040025
Pau Espin Pedrolb5def412019-05-03 21:08:40 +020026AM_CPPFLAGS = -Wall $(STD_DEFINES_AND_INCLUDES) -I${srcdir}/arch/common -I${srcdir}/device/common
Pau Espin Pedrol43fedb62018-04-24 15:22:57 +020027AM_CXXFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS)
Pau Espin Pedrol778b30a2019-06-28 13:27:24 +020028AM_CFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS)
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040029
Pau Espin Pedrol2128a302018-04-24 16:16:06 +020030noinst_LTLIBRARIES = libtransceiver_common.la
dburgessb3a0ca42011-10-12 07:44:40 +000031
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000032COMMON_SOURCES = \
dburgessb3a0ca42011-10-12 07:44:40 +000033 radioInterface.cpp \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000034 radioVector.cpp \
35 radioClock.cpp \
Tom Tsou28670fb2015-08-21 19:32:58 -070036 radioBuffer.cpp \
dburgessb3a0ca42011-10-12 07:44:40 +000037 sigProcLib.cpp \
Thomas Tsou20eb6d62013-11-09 14:30:41 -050038 signalVector.cpp \
Tom Tsou35222292016-06-22 16:16:30 -070039 Transceiver.cpp \
40 ChannelizerBase.cpp \
41 Channelizer.cpp \
Pau Espin Pedrol15fa64b2019-07-01 20:41:55 +020042 Synthesis.cpp \
Ericcca5d932023-07-25 18:44:03 +020043 proto_trxd.c \
44 grgsm_vitac/grgsm_vitac.cpp \
45 grgsm_vitac/viterbi_detector.cc
dburgessb3a0ca42011-10-12 07:44:40 +000046
Pau Espin Pedrol2128a302018-04-24 16:16:06 +020047libtransceiver_common_la_SOURCES = \
kurtis.heimerl75336d92011-11-26 03:19:05 +000048 $(COMMON_SOURCES) \
Thomas Tsou03e6ecf2013-08-20 20:54:54 -040049 Resampler.cpp \
Thomas Tsoue90a42b2013-11-13 23:38:09 -050050 radioInterfaceResamp.cpp \
Tom Tsoud6ae8642017-03-30 17:22:58 -070051 radioInterfaceMulti.cpp
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000052
dburgessb3a0ca42011-10-12 07:44:40 +000053noinst_HEADERS = \
54 Complex.h \
55 radioInterface.h \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000056 radioVector.h \
57 radioClock.h \
Tom Tsou28670fb2015-08-21 19:32:58 -070058 radioBuffer.h \
dburgessb3a0ca42011-10-12 07:44:40 +000059 sigProcLib.h \
Thomas Tsou20eb6d62013-11-09 14:30:41 -050060 signalVector.h \
dburgessb3a0ca42011-10-12 07:44:40 +000061 Transceiver.h \
Thomas Tsou03e6ecf2013-08-20 20:54:54 -040062 Resampler.h \
Tom Tsou35222292016-06-22 16:16:30 -070063 ChannelizerBase.h \
64 Channelizer.h \
Pau Espin Pedrol778b30a2019-06-28 13:27:24 +020065 Synthesis.h \
66 proto_trxd.h
dburgessb3a0ca42011-10-12 07:44:40 +000067
Pau Espin Pedrol2128a302018-04-24 16:16:06 +020068COMMON_LDADD = \
69 libtransceiver_common.la \
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040070 $(ARCH_LA) \
dburgessb3a0ca42011-10-12 07:44:40 +000071 $(GSM_LA) \
Alexander Huemer6fafd332018-01-12 15:04:02 +010072 $(COMMON_LA) \
Pau Espin Pedrol8b843e52018-02-20 14:44:39 +010073 $(FFTWF_LIBS) \
Pau Espin Pedrol5ea18172018-02-20 16:48:15 +010074 $(LIBOSMOCORE_LIBS) \
75 $(LIBOSMOCTRL_LIBS) \
76 $(LIBOSMOVTY_LIBS)
dburgessb3a0ca42011-10-12 07:44:40 +000077
Ericb7253c62022-11-28 19:21:08 +010078if ENABLE_MS_TRX
79AM_CPPFLAGS += -I$(top_srcdir)/osmocom-bb/src/host/trxcon/include/
80AM_CPPFLAGS += -I${srcdir}
81
82TRXCON_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 \
Eric1499f032023-07-25 18:42:48 +020085 $(top_builddir)/osmocom-bb/src/host/trxcon/src/.libs/libl1gprs.a \
Ericb7253c62022-11-28 19:21:08 +010086 $(LIBOSMOCODING_LIBS)
87
Eric135d64b2023-04-21 13:59:56 +020088MS_LOWER_SRC = \
Ericb7253c62022-11-28 19:21:08 +010089 ms/sch.c \
90 ms/ms.cpp \
Eric989fe752023-10-06 16:06:13 +020091 ms/threadsched.cpp \
Ericb7253c62022-11-28 19:21:08 +010092 ms/ms_rx_lower.cpp \
93 grgsm_vitac/grgsm_vitac.cpp \
94 grgsm_vitac/viterbi_detector.cc
95
Eric135d64b2023-04-21 13:59:56 +020096MS_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
Ericb7253c62022-11-28 19:21:08 +0100103noinst_HEADERS += \
104 ms/ms.h \
Eric989fe752023-10-06 16:06:13 +0200105 ms/threadsched.h \
Ericb7253c62022-11-28 19:21:08 +0100106 ms/bladerf_specific.h \
107 ms/uhd_specific.h \
Ericb7253c62022-11-28 19:21:08 +0100108 ms/ms_upper.h \
Eric135d64b2023-04-21 13:59:56 +0200109 ms/ms_trxcon_if.h \
Ericb7253c62022-11-28 19:21:08 +0100110 ms/itrq.h \
111 ms/sch.h \
Eric3e7f4b02023-05-23 12:50:25 +0200112 ms/threadpool.h \
Ericb7253c62022-11-28 19:21:08 +0100113 grgsm_vitac/viterbi_detector.h \
114 grgsm_vitac/constants.h \
115 grgsm_vitac/grgsm_vitac.h
116
117endif
118
Pau Espin Pedrolf3d7f442018-04-24 18:49:03 +0200119bin_PROGRAMS =
Pau Espin Pedrol2128a302018-04-24 16:16:06 +0200120
Pau Espin Pedrolf3d7f442018-04-24 18:49:03 +0200121if DEVICE_UHD
122bin_PROGRAMS += osmo-trx-uhd
123osmo_trx_uhd_SOURCES = osmo-trx.cpp
124osmo_trx_uhd_LDADD = \
Pau Espin Pedrol2a8183b2018-04-28 00:20:19 +0200125 $(builddir)/device/uhd/libdevice.la \
Pau Espin Pedrol2128a302018-04-24 16:16:06 +0200126 $(COMMON_LDADD) \
Pau Espin Pedrol2a8183b2018-04-28 00:20:19 +0200127 $(UHD_LIBS)
Pau Espin Pedrolf3d7f442018-04-24 18:49:03 +0200128osmo_trx_uhd_CPPFLAGS = $(AM_CPPFLAGS) $(UHD_CFLAGS)
Ericb7253c62022-11-28 19:21:08 +0100129
Eric Wild3d8598d2024-03-21 09:54:59 +0100130#if ENABLE_MS_TRX
131#bin_PROGRAMS += osmo-trx-ms-uhd
132#osmo_trx_ms_uhd_SOURCES = $(MS_LOWER_SRC) $(MS_UPPER_SRC)
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
139#endif
Pau Espin Pedrolf3d7f442018-04-24 18:49:03 +0200140endif
141
142if DEVICE_USRP1
143bin_PROGRAMS += osmo-trx-usrp1
144osmo_trx_usrp1_SOURCES = osmo-trx.cpp
145osmo_trx_usrp1_LDADD = \
Pau Espin Pedrol2a8183b2018-04-28 00:20:19 +0200146 $(builddir)/device/usrp1/libdevice.la \
Pau Espin Pedrolf3d7f442018-04-24 18:49:03 +0200147 $(COMMON_LDADD) \
Pau Espin Pedrol2a8183b2018-04-28 00:20:19 +0200148 $(USRP_LIBS)
Pau Espin Pedrolf3d7f442018-04-24 18:49:03 +0200149osmo_trx_usrp1_CPPFLAGS = $(AM_CPPFLAGS) $(USRP_CFLAGS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000150endif
Pau Espin Pedrol1f50fed2018-04-25 11:12:06 +0200151
152if DEVICE_LMS
153bin_PROGRAMS += osmo-trx-lms
154osmo_trx_lms_SOURCES = osmo-trx.cpp
155osmo_trx_lms_LDADD = \
Pau Espin Pedrolf7905ac2018-05-08 20:29:32 +0200156 $(builddir)/device/lms/libdevice.la \
Pau Espin Pedrol1f50fed2018-04-25 11:12:06 +0200157 $(COMMON_LDADD) \
Pau Espin Pedrolf7905ac2018-05-08 20:29:32 +0200158 $(LMS_LIBS)
Pau Espin Pedrol1f50fed2018-04-25 11:12:06 +0200159osmo_trx_lms_CPPFLAGS = $(AM_CPPFLAGS) $(LMS_CFLAGS)
160endif
Eric Wild1e17c4f2020-03-24 17:19:27 +0100161
Eric7d897cb2022-11-28 19:20:32 +0100162if DEVICE_BLADE
163bin_PROGRAMS += osmo-trx-blade
164osmo_trx_blade_SOURCES = osmo-trx.cpp
165osmo_trx_blade_LDADD = \
166 $(builddir)/device/bladerf/libdevice.la \
167 $(COMMON_LDADD) \
168 $(BLADE_LIBS)
169osmo_trx_blade_CPPFLAGS = $(AM_CPPFLAGS) $(LMS_CFLAGS)
170
Ericb7253c62022-11-28 19:21:08 +0100171if ENABLE_MS_TRX
172bin_PROGRAMS += osmo-trx-ms-blade
Eric135d64b2023-04-21 13:59:56 +0200173osmo_trx_ms_blade_SOURCES = $(MS_LOWER_SRC) $(MS_UPPER_SRC)
Ericb7253c62022-11-28 19:21:08 +0100174osmo_trx_ms_blade_LDADD = \
175 $(builddir)/device/bladerf/libdevice.la \
176 $(COMMON_LDADD) \
177 $(BLADE_LIBS) \
178 $(TRXCON_LDADD)
179osmo_trx_ms_blade_CPPFLAGS = $(AM_CPPFLAGS) $(BLADE_CFLAGS) -DBUILDBLADE
Ericb7253c62022-11-28 19:21:08 +0100180endif
Eric7d897cb2022-11-28 19:20:32 +0100181endif
182
Eric Wild1e17c4f2020-03-24 17:19:27 +0100183if DEVICE_IPC
184bin_PROGRAMS += osmo-trx-ipc
185osmo_trx_ipc_SOURCES = osmo-trx.cpp
186osmo_trx_ipc_LDADD = \
187 $(builddir)/device/ipc/libdevice.la \
188 $(COMMON_LDADD)
189osmo_trx_ipc_CPPFLAGS = $(AM_CPPFLAGS)
190endif