blob: b4dcfed937a597e28069d015d83df99f92d03136 [file] [log] [blame]
Ivan Kluchnikov487a1412011-12-21 13:17:53 +03001#
2# Copyright 2008, 2009 Free Software Foundation, Inc.
3#
4# This software is distributed under the terms of the GNU Public License.
5# See the COPYING file in the main directory for details.
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20
Holger Hans Peter Freyther0b0f2c02012-07-23 10:47:33 +020021AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGB_CFLAGS) $(LIBOSMOGSM_CFLAGS)
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010022
23if ENABLE_SYSMODSP
24AM_CPPFLAGS += -DENABLE_SYSMODSP
25endif
26
Harald Welted6790092012-06-18 12:21:03 +080027AM_CXXFLAGS = -Wall -ldl -pthread
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030028
29noinst_LTLIBRARIES = libgprs.la
30
31libgprs_la_SOURCES = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040032 gprs_debug.cpp \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030033 csn1.cpp \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040034 gsm_rlcmac.cpp \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040035 gprs_bssgp_pcu.cpp \
36 gprs_rlcmac.cpp \
Andreas Eversberg5dac2f02012-06-27 15:52:04 +020037 gprs_rlcmac_data.cpp \
38 gprs_rlcmac_sched.cpp \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040039 gsm_timer.cpp \
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040040 bitvector.cpp \
Andreas Eversbergebde64f2012-07-12 09:18:42 +020041 pcu_l1_if.cpp \
42 pcu_vty.c
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030043
Andreas Eversberg0aed6542012-06-23 10:33:16 +020044if ENABLE_SYSMOBTS
45libgprs_la_SOURCES += \
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040046 sysmo_sock.cpp
Andreas Eversberg0aed6542012-06-23 10:33:16 +020047else
48libgprs_la_SOURCES += \
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040049 openbts_sock.cpp
Andreas Eversberg0aed6542012-06-23 10:33:16 +020050endif
51
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030052noinst_PROGRAMS = \
Harald Welteda628592012-07-22 22:59:08 +020053 RLCMACTest
54
55bin_PROGRAMS = \
Harald Welte3022a702012-07-22 22:58:22 +020056 osmo-pcu
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030057
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010058if ENABLE_SYSMODSP
59noinst_PROGRAMS += \
60 osmo-pcu-remote
61endif
62
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030063noinst_HEADERS = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040064 gprs_debug.h \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030065 csn1.h \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040066 gsm_rlcmac.h \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040067 gprs_bssgp_pcu.h \
68 gprs_rlcmac.h \
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040069 pcuif_proto.h \
Ivan Kluchnikovff447cd2012-04-12 15:16:23 +040070 pcu_l1_if.h \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040071 gsm_timer.h \
Andreas Eversbergebde64f2012-07-12 09:18:42 +020072 bitvector.h \
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010073 pcu_vty.h \
74 sysmo_l1_if.h \
75 femtobts.h
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030076
77RLCMACTest_SOURCES = RLCMACTest.cpp
Ivan Kluchnikov9c2c6992012-01-05 22:37:20 +030078RLCMACTest_LDADD = \
79 libgprs.la \
Harald Welte57f6b022012-06-14 21:05:44 +080080 $(LIBOSMOCORE_LIBS) \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040081 $(COMMON_LA)
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040082
Harald Welte3022a702012-07-22 22:58:22 +020083osmo_pcu_SOURCES = pcu_main.cpp
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010084
85if ENABLE_SYSMODSP
86osmo_pcu_SOURCES += sysmo_l1_if.c \
87 sysmo_l1_hw.c \
88 femtobts.c
89
90osmo_pcu_remote_SOURCES = pcu_main.cpp \
91 sysmo_l1_if.c \
92 sysmo_l1_fwd.c \
93 femtobts.c
94endif
95
Harald Welte3022a702012-07-22 22:58:22 +020096osmo_pcu_LDADD = \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040097 libgprs.la \
Harald Welte477e79e2012-06-18 12:21:03 +080098 $(LIBOSMOGB_LIBS) \
Harald Welte57f6b022012-06-14 21:05:44 +080099 $(LIBOSMOCORE_LIBS) \
100 $(LIBOSMOGSM_LIBS) \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400101 $(COMMON_LA)
102
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100103if ENABLE_SYSMODSP
104osmo_pcu_remote_LDADD = \
105 libgprs.la \
106 $(LIBOSMOGB_LIBS) \
107 $(LIBOSMOCORE_LIBS) \
108 $(LIBOSMOGSM_LIBS) \
109 $(COMMON_LA)
110endif
111
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400112#MOSTLYCLEANFILES += testSource testDestination