blob: aae731069776a776c53d1bed3d66bb628c37f518 [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.heimerl75336d92011-11-26 03:19:05 +000024if UHD
25AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(UHD_CFLAGS)
26else
dburgessb3a0ca42011-10-12 07:44:40 +000027AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(USRP_CFLAGS)
kurtis.heimerl75336d92011-11-26 03:19:05 +000028endif
dburgessb3a0ca42011-10-12 07:44:40 +000029AM_CXXFLAGS = -ldl -lpthread
30
31#rev2dir = $(datadir)/usrp/rev2
32#rev4dir = $(datadir)/usrp/rev4
33
34#dist_rev2_DATA = std_inband.rbf
35#dist_rev4_DATA = std_inband.rbf
36
37EXTRA_DIST = \
38 README \
39 README.Talgorithm
40
41noinst_LTLIBRARIES = libtransceiver.la
42
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000043COMMON_SOURCES = \
dburgessb3a0ca42011-10-12 07:44:40 +000044 radioInterface.cpp \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000045 radioVector.cpp \
46 radioClock.cpp \
dburgessb3a0ca42011-10-12 07:44:40 +000047 sigProcLib.cpp \
48 Transceiver.cpp \
dburgessb3a0ca42011-10-12 07:44:40 +000049 DummyLoad.cpp
50
kurtis.heimerl75336d92011-11-26 03:19:05 +000051if RESAMPLE
52libtransceiver_la_SOURCES = \
53 $(COMMON_SOURCES) \
54 radioIOResamp.cpp
55else
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000056libtransceiver_la_SOURCES = \
kurtis.heimerl9b557832011-11-26 03:18:34 +000057 $(COMMON_SOURCES) \
58 radioIO.cpp
kurtis.heimerl75336d92011-11-26 03:19:05 +000059endif
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000060
dburgessb3a0ca42011-10-12 07:44:40 +000061noinst_PROGRAMS = \
62 USRPping \
63 transceiver \
64 sigProcLibTest
65
66noinst_HEADERS = \
67 Complex.h \
68 radioInterface.h \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000069 radioVector.h \
70 radioClock.h \
dburgessb3a0ca42011-10-12 07:44:40 +000071 radioDevice.h \
72 sigProcLib.h \
73 Transceiver.h \
74 USRPDevice.h \
75 DummyLoad.h
76
77USRPping_SOURCES = USRPping.cpp
78USRPping_LDADD = \
79 libtransceiver.la \
kurtis.heimerl75336d92011-11-26 03:19:05 +000080 $(COMMON_LA) $(SQLITE_LA)
dburgessb3a0ca42011-10-12 07:44:40 +000081
82transceiver_SOURCES = runTransceiver.cpp
83transceiver_LDADD = \
84 libtransceiver.la \
85 $(GSM_LA) \
kurtis.heimerl75336d92011-11-26 03:19:05 +000086 $(COMMON_LA) $(SQLITE_LA)
dburgessb3a0ca42011-10-12 07:44:40 +000087
88sigProcLibTest_SOURCES = sigProcLibTest.cpp
89sigProcLibTest_LDADD = \
90 libtransceiver.la \
91 $(GSM_LA) \
kurtis.heimerl75336d92011-11-26 03:19:05 +000092 $(COMMON_LA) $(SQLITE_LA)
93
94if UHD
95libtransceiver_la_SOURCES += UHDDevice.cpp
96transceiver_LDADD += $(UHD_LIBS)
97USRPping_LDADD += $(UHD_LIBS)
98sigProcLibTest_LDADD += $(UHD_LIBS)
99else
100libtransceiver_la_SOURCES += USRPDevice.cpp
101transceiver_LDADD += $(USRP_LIBS)
102USRPping_LDADD += $(USRP_LIBS)
103sigProcLibTest_LDADD += $(USRP_LIBS)
104endif
dburgessb3a0ca42011-10-12 07:44:40 +0000105
106
107MOSTLYCLEANFILES +=
108
109#radioInterface.cpp
110#ComplexTest.cpp
111#sigProcLibTest.cpp
112#sweepGenerator.cpp
113#testRadio.cpp
114