blob: 7bdc1815b60d7a52fb9765529e8b977ee3533e93 [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
kurtis.heimerl4ba47182011-11-26 03:19:36 +000024#UHD wins if both are defined
kurtis.heimerl75336d92011-11-26 03:19:05 +000025if UHD
26AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(UHD_CFLAGS)
27else
kurtis.heimerl4ba47182011-11-26 03:19:36 +000028if USRP1
dburgessb3a0ca42011-10-12 07:44:40 +000029AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(USRP_CFLAGS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +000030else
31#we should never be here, as this doesn't build if one of the above
32#doesn't exist
33AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES)
34endif
kurtis.heimerl75336d92011-11-26 03:19:05 +000035endif
dburgessb3a0ca42011-10-12 07:44:40 +000036AM_CXXFLAGS = -ldl -lpthread
37
kurtis.heimerl66ad2db2011-11-26 03:19:31 +000038rev2dir = $(datadir)/usrp/rev2
39rev4dir = $(datadir)/usrp/rev4
dburgessb3a0ca42011-10-12 07:44:40 +000040
kurtis.heimerl66ad2db2011-11-26 03:19:31 +000041dist_rev2_DATA = std_inband.rbf
42dist_rev4_DATA = std_inband.rbf
dburgessb3a0ca42011-10-12 07:44:40 +000043
44EXTRA_DIST = \
45 README \
46 README.Talgorithm
47
48noinst_LTLIBRARIES = libtransceiver.la
49
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000050COMMON_SOURCES = \
dburgessb3a0ca42011-10-12 07:44:40 +000051 radioInterface.cpp \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000052 radioVector.cpp \
53 radioClock.cpp \
dburgessb3a0ca42011-10-12 07:44:40 +000054 sigProcLib.cpp \
55 Transceiver.cpp \
dburgessb3a0ca42011-10-12 07:44:40 +000056 DummyLoad.cpp
57
kurtis.heimerl75336d92011-11-26 03:19:05 +000058if RESAMPLE
59libtransceiver_la_SOURCES = \
60 $(COMMON_SOURCES) \
61 radioIOResamp.cpp
62else
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000063libtransceiver_la_SOURCES = \
kurtis.heimerl9b557832011-11-26 03:18:34 +000064 $(COMMON_SOURCES) \
65 radioIO.cpp
kurtis.heimerl75336d92011-11-26 03:19:05 +000066endif
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000067
dburgessb3a0ca42011-10-12 07:44:40 +000068noinst_PROGRAMS = \
69 USRPping \
70 transceiver \
71 sigProcLibTest
72
73noinst_HEADERS = \
74 Complex.h \
75 radioInterface.h \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000076 radioVector.h \
77 radioClock.h \
dburgessb3a0ca42011-10-12 07:44:40 +000078 radioDevice.h \
79 sigProcLib.h \
80 Transceiver.h \
81 USRPDevice.h \
kurtis.heimerla198d452011-11-26 03:19:28 +000082 DummyLoad.h \
83 rcvLPF_651.h \
84 sendLPF_961.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 \
94 $(GSM_LA) \
kurtis.heimerl75336d92011-11-26 03:19:05 +000095 $(COMMON_LA) $(SQLITE_LA)
dburgessb3a0ca42011-10-12 07:44:40 +000096
97sigProcLibTest_SOURCES = sigProcLibTest.cpp
98sigProcLibTest_LDADD = \
99 libtransceiver.la \
100 $(GSM_LA) \
kurtis.heimerl75336d92011-11-26 03:19:05 +0000101 $(COMMON_LA) $(SQLITE_LA)
102
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000103#uhd wins
kurtis.heimerl75336d92011-11-26 03:19:05 +0000104if UHD
105libtransceiver_la_SOURCES += UHDDevice.cpp
106transceiver_LDADD += $(UHD_LIBS)
107USRPping_LDADD += $(UHD_LIBS)
108sigProcLibTest_LDADD += $(UHD_LIBS)
109else
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000110if USRP1
kurtis.heimerl75336d92011-11-26 03:19:05 +0000111libtransceiver_la_SOURCES += USRPDevice.cpp
112transceiver_LDADD += $(USRP_LIBS)
113USRPping_LDADD += $(USRP_LIBS)
114sigProcLibTest_LDADD += $(USRP_LIBS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000115else
116#we should never be here, as one of the above mustbe defined for us to build
117endif
kurtis.heimerl75336d92011-11-26 03:19:05 +0000118endif
dburgessb3a0ca42011-10-12 07:44:40 +0000119
120
121MOSTLYCLEANFILES +=
122
123#radioInterface.cpp
124#ComplexTest.cpp
125#sigProcLibTest.cpp
126#sweepGenerator.cpp
127#testRadio.cpp
128