blob: d0a20f4fb27fbdec0a17a9dbd93348e265b37776 [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
Thomas Tsou3f32ab52013-11-15 16:32:54 -050024AM_CPPFLAGS = -Wall $(STD_DEFINES_AND_INCLUDES) -I./common
Thomas Tsou3eaae802013-08-20 19:31:14 -040025AM_CXXFLAGS = -ldl -lpthread
26
Thomas Tsou7e4e5362013-10-30 21:18:55 -040027SUBDIRS = arm x86
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040028
Thomas Tsou7e4e5362013-10-30 21:18:55 -040029if ARCH_ARM
30ARCH_LA = arm/libarch.la
31else
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040032ARCH_LA = x86/libarch.la
Thomas Tsou7e4e5362013-10-30 21:18:55 -040033endif
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040034
Thomas Tsoufffd9872013-11-04 10:20:21 -080035if USRP1
Thomas Tsou3eaae802013-08-20 19:31:14 -040036AM_CPPFLAGS += $(USRP_CFLAGS)
Thomas Tsoufffd9872013-11-04 10:20:21 -080037else
38AM_CPPFLAGS += $(UHD_CFLAGS)
kurtis.heimerl75336d92011-11-26 03:19:05 +000039endif
dburgessb3a0ca42011-10-12 07:44:40 +000040
kurtis.heimerl66ad2db2011-11-26 03:19:31 +000041rev2dir = $(datadir)/usrp/rev2
42rev4dir = $(datadir)/usrp/rev4
dburgessb3a0ca42011-10-12 07:44:40 +000043
kurtis.heimerl66ad2db2011-11-26 03:19:31 +000044dist_rev2_DATA = std_inband.rbf
45dist_rev4_DATA = std_inband.rbf
dburgessb3a0ca42011-10-12 07:44:40 +000046
47EXTRA_DIST = \
48 README \
49 README.Talgorithm
50
51noinst_LTLIBRARIES = libtransceiver.la
52
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000053COMMON_SOURCES = \
dburgessb3a0ca42011-10-12 07:44:40 +000054 radioInterface.cpp \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000055 radioVector.cpp \
56 radioClock.cpp \
dburgessb3a0ca42011-10-12 07:44:40 +000057 sigProcLib.cpp \
Thomas Tsou20eb6d62013-11-09 14:30:41 -050058 signalVector.cpp \
Thomas Tsou66e2dd22013-10-29 18:08:46 -040059 Transceiver.cpp
dburgessb3a0ca42011-10-12 07:44:40 +000060
kurtis.heimerl75336d92011-11-26 03:19:05 +000061libtransceiver_la_SOURCES = \
62 $(COMMON_SOURCES) \
Thomas Tsou03e6ecf2013-08-20 20:54:54 -040063 Resampler.cpp \
Thomas Tsoue90a42b2013-11-13 23:38:09 -050064 radioInterfaceResamp.cpp \
65 radioInterfaceDiversity.cpp
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000066
Thomas Tsou85b179d2013-11-15 21:14:33 -050067bin_PROGRAMS = osmo-trx
dburgessb3a0ca42011-10-12 07:44:40 +000068
69noinst_HEADERS = \
70 Complex.h \
71 radioInterface.h \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000072 radioVector.h \
73 radioClock.h \
dburgessb3a0ca42011-10-12 07:44:40 +000074 radioDevice.h \
75 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 \
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040080 common/convolve.h \
Thomas Tsou7e4e5362013-10-30 21:18:55 -040081 common/convert.h \
Thomas Tsou0a3dc4c2013-11-09 02:29:55 -050082 common/scale.h \
83 common/mult.h
dburgessb3a0ca42011-10-12 07:44:40 +000084
Thomas Tsou85b179d2013-11-15 21:14:33 -050085osmo_trx_SOURCES = osmo-trx.cpp
86osmo_trx_LDADD = \
dburgessb3a0ca42011-10-12 07:44:40 +000087 libtransceiver.la \
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040088 $(ARCH_LA) \
dburgessb3a0ca42011-10-12 07:44:40 +000089 $(GSM_LA) \
kurtis.heimerl75336d92011-11-26 03:19:05 +000090 $(COMMON_LA) $(SQLITE_LA)
dburgessb3a0ca42011-10-12 07:44:40 +000091
Thomas Tsoufffd9872013-11-04 10:20:21 -080092if USRP1
kurtis.heimerl75336d92011-11-26 03:19:05 +000093libtransceiver_la_SOURCES += USRPDevice.cpp
Thomas Tsou85b179d2013-11-15 21:14:33 -050094osmo_trx_LDADD += $(USRP_LIBS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +000095else
Thomas Tsoufffd9872013-11-04 10:20:21 -080096libtransceiver_la_SOURCES += UHDDevice.cpp
Thomas Tsou85b179d2013-11-15 21:14:33 -050097osmo_trx_LDADD += $(UHD_LIBS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +000098endif