blob: 9424b8ee112e47aa39b052e23eb42b567000f10d [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
Alexander Chemerise4762312016-04-29 14:05:59 +030024AM_CPPFLAGS = -Wall $(STD_DEFINES_AND_INCLUDES) -I${srcdir}/common
Pau Espin Pedrol5ea18172018-02-20 16:48:15 +010025AM_CXXFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOVTY_CFLAGS)
Thomas Tsou3eaae802013-08-20 19:31:14 -040026
Pau Espin Pedrol8fbbd652018-03-07 20:21:06 +010027SUBDIRS = common
Pau Espin Pedrolb35cba62018-03-07 14:39:26 +010028if ARCH_ARM
Pau Espin Pedrol8fbbd652018-03-07 20:21:06 +010029SUBDIRS += arm
Pau Espin Pedrolb35cba62018-03-07 14:39:26 +010030else
Pau Espin Pedrol8fbbd652018-03-07 20:21:06 +010031SUBDIRS += x86
Pau Espin Pedrolb35cba62018-03-07 14:39:26 +010032endif
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040033
Pau Espin Pedrol82f83ce2018-01-09 15:09:31 +010034if USRP1
Thomas Tsou3eaae802013-08-20 19:31:14 -040035AM_CPPFLAGS += $(USRP_CFLAGS)
Thomas Tsoufffd9872013-11-04 10:20:21 -080036else
37AM_CPPFLAGS += $(UHD_CFLAGS)
kurtis.heimerl75336d92011-11-26 03:19:05 +000038endif
dburgessb3a0ca42011-10-12 07:44:40 +000039
kurtis.heimerl66ad2db2011-11-26 03:19:31 +000040rev2dir = $(datadir)/usrp/rev2
41rev4dir = $(datadir)/usrp/rev4
dburgessb3a0ca42011-10-12 07:44:40 +000042
kurtis.heimerl66ad2db2011-11-26 03:19:31 +000043dist_rev2_DATA = std_inband.rbf
44dist_rev4_DATA = std_inband.rbf
dburgessb3a0ca42011-10-12 07:44:40 +000045
46EXTRA_DIST = \
47 README \
48 README.Talgorithm
49
50noinst_LTLIBRARIES = libtransceiver.la
51
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000052COMMON_SOURCES = \
dburgessb3a0ca42011-10-12 07:44:40 +000053 radioInterface.cpp \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000054 radioVector.cpp \
55 radioClock.cpp \
Tom Tsou28670fb2015-08-21 19:32:58 -070056 radioBuffer.cpp \
dburgessb3a0ca42011-10-12 07:44:40 +000057 sigProcLib.cpp \
Thomas Tsou20eb6d62013-11-09 14:30:41 -050058 signalVector.cpp \
Tom Tsou35222292016-06-22 16:16:30 -070059 Transceiver.cpp \
60 ChannelizerBase.cpp \
61 Channelizer.cpp \
Pau Espin Pedrol8fbbd652018-03-07 20:21:06 +010062 Synthesis.cpp
dburgessb3a0ca42011-10-12 07:44:40 +000063
kurtis.heimerl75336d92011-11-26 03:19:05 +000064libtransceiver_la_SOURCES = \
65 $(COMMON_SOURCES) \
Thomas Tsou03e6ecf2013-08-20 20:54:54 -040066 Resampler.cpp \
Thomas Tsoue90a42b2013-11-13 23:38:09 -050067 radioInterfaceResamp.cpp \
Tom Tsoud6ae8642017-03-30 17:22:58 -070068 radioInterfaceMulti.cpp
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000069
Thomas Tsou85b179d2013-11-15 21:14:33 -050070bin_PROGRAMS = osmo-trx
dburgessb3a0ca42011-10-12 07:44:40 +000071
72noinst_HEADERS = \
73 Complex.h \
74 radioInterface.h \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000075 radioVector.h \
76 radioClock.h \
dburgessb3a0ca42011-10-12 07:44:40 +000077 radioDevice.h \
Tom Tsou28670fb2015-08-21 19:32:58 -070078 radioBuffer.h \
dburgessb3a0ca42011-10-12 07:44:40 +000079 sigProcLib.h \
Thomas Tsou20eb6d62013-11-09 14:30:41 -050080 signalVector.h \
dburgessb3a0ca42011-10-12 07:44:40 +000081 Transceiver.h \
82 USRPDevice.h \
Thomas Tsou03e6ecf2013-08-20 20:54:54 -040083 Resampler.h \
Tom Tsou35222292016-06-22 16:16:30 -070084 ChannelizerBase.h \
85 Channelizer.h \
Pau Espin Pedrol8fbbd652018-03-07 20:21:06 +010086 Synthesis.h
dburgessb3a0ca42011-10-12 07:44:40 +000087
Thomas Tsou85b179d2013-11-15 21:14:33 -050088osmo_trx_SOURCES = osmo-trx.cpp
89osmo_trx_LDADD = \
dburgessb3a0ca42011-10-12 07:44:40 +000090 libtransceiver.la \
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040091 $(ARCH_LA) \
dburgessb3a0ca42011-10-12 07:44:40 +000092 $(GSM_LA) \
Alexander Huemer6fafd332018-01-12 15:04:02 +010093 $(COMMON_LA) \
Pau Espin Pedrol8b843e52018-02-20 14:44:39 +010094 $(FFTWF_LIBS) \
Pau Espin Pedrol5ea18172018-02-20 16:48:15 +010095 $(LIBOSMOCORE_LIBS) \
96 $(LIBOSMOCTRL_LIBS) \
97 $(LIBOSMOVTY_LIBS)
dburgessb3a0ca42011-10-12 07:44:40 +000098
Pau Espin Pedrol82f83ce2018-01-09 15:09:31 +010099if USRP1
kurtis.heimerl75336d92011-11-26 03:19:05 +0000100libtransceiver_la_SOURCES += USRPDevice.cpp
Thomas Tsou85b179d2013-11-15 21:14:33 -0500101osmo_trx_LDADD += $(USRP_LIBS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000102else
Thomas Tsoufffd9872013-11-04 10:20:21 -0800103libtransceiver_la_SOURCES += UHDDevice.cpp
Alexander Huemer6fafd332018-01-12 15:04:02 +0100104osmo_trx_LDADD += $(UHD_LIBS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000105endif