blob: c03116e95f80a3589c67834bc433357584dd67df [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 Tsou17bbb9b2013-10-30 21:24:40 -040024AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) -I./common
Thomas Tsou3eaae802013-08-20 19:31:14 -040025AM_CXXFLAGS = -ldl -lpthread
26
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040027SUBDIRS = x86
28
29ARCH_LA = x86/libarch.la
30
kurtis.heimerl4ba47182011-11-26 03:19:36 +000031#UHD wins if both are defined
kurtis.heimerl75336d92011-11-26 03:19:05 +000032if UHD
Thomas Tsou3eaae802013-08-20 19:31:14 -040033AM_CPPFLAGS += $(UHD_CFLAGS)
kurtis.heimerl75336d92011-11-26 03:19:05 +000034else
kurtis.heimerl4ba47182011-11-26 03:19:36 +000035if USRP1
Thomas Tsou3eaae802013-08-20 19:31:14 -040036AM_CPPFLAGS += $(USRP_CFLAGS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +000037endif
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 \
dburgessb3a0ca42011-10-12 07:44:40 +000056 sigProcLib.cpp \
57 Transceiver.cpp \
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040058 DummyLoad.cpp
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 Tsoucb69f082013-04-08 14:18:26 -040063 radioInterfaceResamp.cpp
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000064
dburgessb3a0ca42011-10-12 07:44:40 +000065noinst_PROGRAMS = \
66 USRPping \
67 transceiver \
68 sigProcLibTest
69
70noinst_HEADERS = \
71 Complex.h \
72 radioInterface.h \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000073 radioVector.h \
74 radioClock.h \
dburgessb3a0ca42011-10-12 07:44:40 +000075 radioDevice.h \
76 sigProcLib.h \
77 Transceiver.h \
78 USRPDevice.h \
kurtis.heimerla198d452011-11-26 03:19:28 +000079 DummyLoad.h \
80 rcvLPF_651.h \
Thomas Tsou3eaae802013-08-20 19:31:14 -040081 sendLPF_961.h \
Thomas Tsou03e6ecf2013-08-20 20:54:54 -040082 Resampler.h \
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040083 common/convolve.h \
84 common/convert.h
dburgessb3a0ca42011-10-12 07:44:40 +000085
86USRPping_SOURCES = USRPping.cpp
87USRPping_LDADD = \
88 libtransceiver.la \
kurtis.heimerl75336d92011-11-26 03:19:05 +000089 $(COMMON_LA) $(SQLITE_LA)
dburgessb3a0ca42011-10-12 07:44:40 +000090
91transceiver_SOURCES = runTransceiver.cpp
92transceiver_LDADD = \
93 libtransceiver.la \
Thomas Tsou17bbb9b2013-10-30 21:24:40 -040094 $(ARCH_LA) \
dburgessb3a0ca42011-10-12 07:44:40 +000095 $(GSM_LA) \
kurtis.heimerl75336d92011-11-26 03:19:05 +000096 $(COMMON_LA) $(SQLITE_LA)
dburgessb3a0ca42011-10-12 07:44:40 +000097
98sigProcLibTest_SOURCES = sigProcLibTest.cpp
99sigProcLibTest_LDADD = \
100 libtransceiver.la \
Thomas Tsou17bbb9b2013-10-30 21:24:40 -0400101 $(ARCH_LA) \
dburgessb3a0ca42011-10-12 07:44:40 +0000102 $(GSM_LA) \
kurtis.heimerl75336d92011-11-26 03:19:05 +0000103 $(COMMON_LA) $(SQLITE_LA)
104
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000105#uhd wins
kurtis.heimerl75336d92011-11-26 03:19:05 +0000106if UHD
107libtransceiver_la_SOURCES += UHDDevice.cpp
108transceiver_LDADD += $(UHD_LIBS)
109USRPping_LDADD += $(UHD_LIBS)
110sigProcLibTest_LDADD += $(UHD_LIBS)
111else
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000112if USRP1
kurtis.heimerl75336d92011-11-26 03:19:05 +0000113libtransceiver_la_SOURCES += USRPDevice.cpp
114transceiver_LDADD += $(USRP_LIBS)
115USRPping_LDADD += $(USRP_LIBS)
116sigProcLibTest_LDADD += $(USRP_LIBS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000117else
118#we should never be here, as one of the above mustbe defined for us to build
119endif
kurtis.heimerl75336d92011-11-26 03:19:05 +0000120endif
dburgessb3a0ca42011-10-12 07:44:40 +0000121
122
123MOSTLYCLEANFILES +=
124
125#radioInterface.cpp
126#ComplexTest.cpp
127#sigProcLibTest.cpp
128#sweepGenerator.cpp
129#testRadio.cpp
130