blob: 3a872efebde3d2208706d0c55cbaa0b5b04d99a2 [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 Pedrol2128a302018-04-24 16:16:06 +020026AM_CPPFLAGS = -Wall $(STD_DEFINES_AND_INCLUDES) -I${srcdir}/arch/common -I${srcdir}/device
Pau Espin Pedrol43fedb62018-04-24 15:22:57 +020027AM_CXXFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS)
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040028
kurtis.heimerl66ad2db2011-11-26 03:19:31 +000029rev2dir = $(datadir)/usrp/rev2
30rev4dir = $(datadir)/usrp/rev4
dburgessb3a0ca42011-10-12 07:44:40 +000031
kurtis.heimerl66ad2db2011-11-26 03:19:31 +000032dist_rev2_DATA = std_inband.rbf
33dist_rev4_DATA = std_inband.rbf
dburgessb3a0ca42011-10-12 07:44:40 +000034
35EXTRA_DIST = \
36 README \
37 README.Talgorithm
38
Pau Espin Pedrol2128a302018-04-24 16:16:06 +020039noinst_LTLIBRARIES = libtransceiver_common.la
dburgessb3a0ca42011-10-12 07:44:40 +000040
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000041COMMON_SOURCES = \
dburgessb3a0ca42011-10-12 07:44:40 +000042 radioInterface.cpp \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000043 radioVector.cpp \
44 radioClock.cpp \
Tom Tsou28670fb2015-08-21 19:32:58 -070045 radioBuffer.cpp \
dburgessb3a0ca42011-10-12 07:44:40 +000046 sigProcLib.cpp \
Thomas Tsou20eb6d62013-11-09 14:30:41 -050047 signalVector.cpp \
Tom Tsou35222292016-06-22 16:16:30 -070048 Transceiver.cpp \
49 ChannelizerBase.cpp \
50 Channelizer.cpp \
Pau Espin Pedrol8fbbd652018-03-07 20:21:06 +010051 Synthesis.cpp
dburgessb3a0ca42011-10-12 07:44:40 +000052
Pau Espin Pedrol2128a302018-04-24 16:16:06 +020053libtransceiver_common_la_SOURCES = \
kurtis.heimerl75336d92011-11-26 03:19:05 +000054 $(COMMON_SOURCES) \
Thomas Tsou03e6ecf2013-08-20 20:54:54 -040055 Resampler.cpp \
Thomas Tsoue90a42b2013-11-13 23:38:09 -050056 radioInterfaceResamp.cpp \
Tom Tsoud6ae8642017-03-30 17:22:58 -070057 radioInterfaceMulti.cpp
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000058
dburgessb3a0ca42011-10-12 07:44:40 +000059noinst_HEADERS = \
60 Complex.h \
61 radioInterface.h \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000062 radioVector.h \
63 radioClock.h \
Tom Tsou28670fb2015-08-21 19:32:58 -070064 radioBuffer.h \
dburgessb3a0ca42011-10-12 07:44:40 +000065 sigProcLib.h \
Thomas Tsou20eb6d62013-11-09 14:30:41 -050066 signalVector.h \
dburgessb3a0ca42011-10-12 07:44:40 +000067 Transceiver.h \
Thomas Tsou03e6ecf2013-08-20 20:54:54 -040068 Resampler.h \
Tom Tsou35222292016-06-22 16:16:30 -070069 ChannelizerBase.h \
70 Channelizer.h \
Pau Espin Pedrol8fbbd652018-03-07 20:21:06 +010071 Synthesis.h
dburgessb3a0ca42011-10-12 07:44:40 +000072
Pau Espin Pedrol2128a302018-04-24 16:16:06 +020073COMMON_LDADD = \
74 libtransceiver_common.la \
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040075 $(ARCH_LA) \
dburgessb3a0ca42011-10-12 07:44:40 +000076 $(GSM_LA) \
Alexander Huemer6fafd332018-01-12 15:04:02 +010077 $(COMMON_LA) \
Pau Espin Pedrol8b843e52018-02-20 14:44:39 +010078 $(FFTWF_LIBS) \
Pau Espin Pedrol5ea18172018-02-20 16:48:15 +010079 $(LIBOSMOCORE_LIBS) \
80 $(LIBOSMOCTRL_LIBS) \
81 $(LIBOSMOVTY_LIBS)
dburgessb3a0ca42011-10-12 07:44:40 +000082
Pau Espin Pedrolf3d7f442018-04-24 18:49:03 +020083bin_PROGRAMS =
Pau Espin Pedrol2128a302018-04-24 16:16:06 +020084
Pau Espin Pedrolf3d7f442018-04-24 18:49:03 +020085if DEVICE_UHD
86bin_PROGRAMS += osmo-trx-uhd
87osmo_trx_uhd_SOURCES = osmo-trx.cpp
88osmo_trx_uhd_LDADD = \
Pau Espin Pedrol2128a302018-04-24 16:16:06 +020089 $(COMMON_LDADD) \
90 $(UHD_LIBS) \
91 $(builddir)/device/uhd/libdevice.la
Pau Espin Pedrolf3d7f442018-04-24 18:49:03 +020092osmo_trx_uhd_CPPFLAGS = $(AM_CPPFLAGS) $(UHD_CFLAGS)
93endif
94
95if DEVICE_USRP1
96bin_PROGRAMS += osmo-trx-usrp1
97osmo_trx_usrp1_SOURCES = osmo-trx.cpp
98osmo_trx_usrp1_LDADD = \
99 $(COMMON_LDADD) \
100 $(USRP_LIBS) \
101 $(builddir)/device/usrp1/libdevice.la
102osmo_trx_usrp1_CPPFLAGS = $(AM_CPPFLAGS) $(USRP_CFLAGS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000103endif