blob: c2f8eced0e4209f3097028b6844ee1936d74dd69 [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 Tsou3eaae802013-08-20 19:31:14 -040024AM_CFLAGS = $(STD_DEFINES_AND_INCLUDES) -std=gnu99 -march=native
25AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES)
26AM_CXXFLAGS = -ldl -lpthread
27
kurtis.heimerl4ba47182011-11-26 03:19:36 +000028#UHD wins if both are defined
kurtis.heimerl75336d92011-11-26 03:19:05 +000029if UHD
Thomas Tsou3eaae802013-08-20 19:31:14 -040030AM_CPPFLAGS += $(UHD_CFLAGS)
kurtis.heimerl75336d92011-11-26 03:19:05 +000031else
kurtis.heimerl4ba47182011-11-26 03:19:36 +000032if USRP1
Thomas Tsou3eaae802013-08-20 19:31:14 -040033AM_CPPFLAGS += $(USRP_CFLAGS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +000034endif
kurtis.heimerl75336d92011-11-26 03:19:05 +000035endif
dburgessb3a0ca42011-10-12 07:44:40 +000036
kurtis.heimerl66ad2db2011-11-26 03:19:31 +000037rev2dir = $(datadir)/usrp/rev2
38rev4dir = $(datadir)/usrp/rev4
dburgessb3a0ca42011-10-12 07:44:40 +000039
kurtis.heimerl66ad2db2011-11-26 03:19:31 +000040dist_rev2_DATA = std_inband.rbf
41dist_rev4_DATA = std_inband.rbf
dburgessb3a0ca42011-10-12 07:44:40 +000042
43EXTRA_DIST = \
44 README \
45 README.Talgorithm
46
47noinst_LTLIBRARIES = libtransceiver.la
48
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000049COMMON_SOURCES = \
dburgessb3a0ca42011-10-12 07:44:40 +000050 radioInterface.cpp \
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000051 radioVector.cpp \
52 radioClock.cpp \
dburgessb3a0ca42011-10-12 07:44:40 +000053 sigProcLib.cpp \
54 Transceiver.cpp \
Thomas Tsou3eaae802013-08-20 19:31:14 -040055 DummyLoad.cpp \
56 convolve.c
dburgessb3a0ca42011-10-12 07:44:40 +000057
kurtis.heimerl75336d92011-11-26 03:19:05 +000058libtransceiver_la_SOURCES = \
59 $(COMMON_SOURCES) \
Thomas Tsou03e6ecf2013-08-20 20:54:54 -040060 Resampler.cpp \
Thomas Tsoucb69f082013-04-08 14:18:26 -040061 radioInterfaceResamp.cpp
kurtis.heimerl8aea56e2011-11-26 03:18:30 +000062
dburgessb3a0ca42011-10-12 07:44:40 +000063noinst_PROGRAMS = \
64 USRPping \
65 transceiver \
66 sigProcLibTest
67
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 \
74 sigProcLib.h \
75 Transceiver.h \
76 USRPDevice.h \
kurtis.heimerla198d452011-11-26 03:19:28 +000077 DummyLoad.h \
78 rcvLPF_651.h \
Thomas Tsou3eaae802013-08-20 19:31:14 -040079 sendLPF_961.h \
Thomas Tsou03e6ecf2013-08-20 20:54:54 -040080 Resampler.h \
Thomas Tsou3eaae802013-08-20 19:31:14 -040081 convolve.h
dburgessb3a0ca42011-10-12 07:44:40 +000082
83USRPping_SOURCES = USRPping.cpp
84USRPping_LDADD = \
85 libtransceiver.la \
kurtis.heimerl75336d92011-11-26 03:19:05 +000086 $(COMMON_LA) $(SQLITE_LA)
dburgessb3a0ca42011-10-12 07:44:40 +000087
88transceiver_SOURCES = runTransceiver.cpp
89transceiver_LDADD = \
90 libtransceiver.la \
91 $(GSM_LA) \
kurtis.heimerl75336d92011-11-26 03:19:05 +000092 $(COMMON_LA) $(SQLITE_LA)
dburgessb3a0ca42011-10-12 07:44:40 +000093
94sigProcLibTest_SOURCES = sigProcLibTest.cpp
95sigProcLibTest_LDADD = \
96 libtransceiver.la \
97 $(GSM_LA) \
kurtis.heimerl75336d92011-11-26 03:19:05 +000098 $(COMMON_LA) $(SQLITE_LA)
99
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000100#uhd wins
kurtis.heimerl75336d92011-11-26 03:19:05 +0000101if UHD
102libtransceiver_la_SOURCES += UHDDevice.cpp
103transceiver_LDADD += $(UHD_LIBS)
104USRPping_LDADD += $(UHD_LIBS)
105sigProcLibTest_LDADD += $(UHD_LIBS)
106else
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000107if USRP1
kurtis.heimerl75336d92011-11-26 03:19:05 +0000108libtransceiver_la_SOURCES += USRPDevice.cpp
109transceiver_LDADD += $(USRP_LIBS)
110USRPping_LDADD += $(USRP_LIBS)
111sigProcLibTest_LDADD += $(USRP_LIBS)
kurtis.heimerl4ba47182011-11-26 03:19:36 +0000112else
113#we should never be here, as one of the above mustbe defined for us to build
114endif
kurtis.heimerl75336d92011-11-26 03:19:05 +0000115endif
dburgessb3a0ca42011-10-12 07:44:40 +0000116
117
118MOSTLYCLEANFILES +=
119
120#radioInterface.cpp
121#ComplexTest.cpp
122#sigProcLibTest.cpp
123#sweepGenerator.cpp
124#testRadio.cpp
125