blob: 21104dcc860362e241603a76fd9456b00aaef7bf [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 Pedrol8b843e52018-02-20 14:44:39 +010025AM_CXXFLAGS = -lpthread $(LIBOSMOCORE_CFLAGS)
Thomas Tsou3eaae802013-08-20 19:31:14 -040026
Thomas Tsou7e4e5362013-10-30 21:18:55 -040027SUBDIRS = arm x86
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040028
Pau Espin Pedrol82f83ce2018-01-09 15:09:31 +010029if USRP1
Thomas Tsou3eaae802013-08-20 19:31:14 -040030AM_CPPFLAGS += $(USRP_CFLAGS)
Thomas Tsoufffd9872013-11-04 10:20:21 -080031else
32AM_CPPFLAGS += $(UHD_CFLAGS)
kurtis.heimerl75336d92011-11-26 03:19:05 +000033endif
dburgessb3a0ca42011-10-12 07:44:40 +000034
kurtis.heimerl66ad2db2011-11-26 03:19:31 +000035rev2dir = $(datadir)/usrp/rev2
36rev4dir = $(datadir)/usrp/rev4
dburgessb3a0ca42011-10-12 07:44:40 +000037
kurtis.heimerl66ad2db2011-11-26 03:19:31 +000038dist_rev2_DATA = std_inband.rbf
39dist_rev4_DATA = std_inband.rbf
dburgessb3a0ca42011-10-12 07:44:40 +000040
41EXTRA_DIST = \
42 README \
43 README.Talgorithm
44
45noinst_LTLIBRARIES = libtransceiver.la
46
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000047COMMON_SOURCES = \
dburgessb3a0ca42011-10-12 07:44:40 +000048 radioInterface.cpp \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000049 radioVector.cpp \
50 radioClock.cpp \
Tom Tsou28670fb2015-08-21 19:32:58 -070051 radioBuffer.cpp \
dburgessb3a0ca42011-10-12 07:44:40 +000052 sigProcLib.cpp \
Thomas Tsou20eb6d62013-11-09 14:30:41 -050053 signalVector.cpp \
Tom Tsou35222292016-06-22 16:16:30 -070054 Transceiver.cpp \
55 ChannelizerBase.cpp \
56 Channelizer.cpp \
57 Synthesis.cpp \
58 common/fft.c
dburgessb3a0ca42011-10-12 07:44:40 +000059
kurtis.heimerl75336d92011-11-26 03:19:05 +000060libtransceiver_la_SOURCES = \
61 $(COMMON_SOURCES) \
Thomas Tsou03e6ecf2013-08-20 20:54:54 -040062 Resampler.cpp \
Thomas Tsoue90a42b2013-11-13 23:38:09 -050063 radioInterfaceResamp.cpp \
Tom Tsoud6ae8642017-03-30 17:22:58 -070064 radioInterfaceMulti.cpp
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000065
Thomas Tsou85b179d2013-11-15 21:14:33 -050066bin_PROGRAMS = osmo-trx
dburgessb3a0ca42011-10-12 07:44:40 +000067
68noinst_HEADERS = \
69 Complex.h \
70 radioInterface.h \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000071 radioVector.h \
72 radioClock.h \
dburgessb3a0ca42011-10-12 07:44:40 +000073 radioDevice.h \
Tom Tsou28670fb2015-08-21 19:32:58 -070074 radioBuffer.h \
dburgessb3a0ca42011-10-12 07:44:40 +000075 sigProcLib.h \
Thomas Tsou20eb6d62013-11-09 14:30:41 -050076 signalVector.h \
dburgessb3a0ca42011-10-12 07:44:40 +000077 Transceiver.h \
78 USRPDevice.h \
Thomas Tsou03e6ecf2013-08-20 20:54:54 -040079 Resampler.h \
Tom Tsou35222292016-06-22 16:16:30 -070080 ChannelizerBase.h \
81 Channelizer.h \
82 Synthesis.h \
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040083 common/convolve.h \
Thomas Tsou7e4e5362013-10-30 21:18:55 -040084 common/convert.h \
Thomas Tsou0a3dc4c2013-11-09 02:29:55 -050085 common/scale.h \
Tom Tsou35222292016-06-22 16:16:30 -070086 common/mult.h \
87 common/fft.h
dburgessb3a0ca42011-10-12 07:44:40 +000088
Thomas Tsou85b179d2013-11-15 21:14:33 -050089osmo_trx_SOURCES = osmo-trx.cpp
90osmo_trx_LDADD = \
dburgessb3a0ca42011-10-12 07:44:40 +000091 libtransceiver.la \
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040092 $(ARCH_LA) \
dburgessb3a0ca42011-10-12 07:44:40 +000093 $(GSM_LA) \
Alexander Huemer6fafd332018-01-12 15:04:02 +010094 $(COMMON_LA) \
Pau Espin Pedrol8b843e52018-02-20 14:44:39 +010095 $(FFTWF_LIBS) \
96 $(LIBOSMOCORE_LIBS)
dburgessb3a0ca42011-10-12 07:44:40 +000097
Pau Espin Pedrol82f83ce2018-01-09 15:09:31 +010098if USRP1
kurtis.heimerl75336d92011-11-26 03:19:05 +000099libtransceiver_la_SOURCES += USRPDevice.cpp
Thomas Tsou85b179d2013-11-15 21:14:33 -0500100osmo_trx_LDADD += $(USRP_LIBS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000101else
Thomas Tsoufffd9872013-11-04 10:20:21 -0800102libtransceiver_la_SOURCES += UHDDevice.cpp
Alexander Huemer6fafd332018-01-12 15:04:02 +0100103osmo_trx_LDADD += $(UHD_LIBS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000104endif