blob: 3c2c78cc0cf30d81328fe1209d777760cbcaacd4 [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 \
Andreas Eversberg050ace22013-03-16 16:22:02 +010039 gprs_rlcmac_meas.cpp \
Holger Hans Peter Freyther02ab4a82013-09-29 07:37:40 +020040 gprs_rlcmac_ts_alloc.cpp \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040041 gsm_timer.cpp \
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040042 bitvector.cpp \
Andreas Eversbergebde64f2012-07-12 09:18:42 +020043 pcu_l1_if.cpp \
Holger Hans Peter Freyther17c31ce2013-08-24 18:31:27 +020044 pcu_vty.c \
Holger Hans Peter Freytherb6acfda2013-10-17 19:41:11 +020045 tbf.cpp \
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +020046 bts.cpp \
Holger Hans Peter Freyther6ca0a902013-10-19 18:50:22 +020047 poll_controller.cpp \
Holger Hans Peter Freytherd6ef5342013-10-19 19:50:00 +020048 encoding.cpp \
49 ta.cpp
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030050
Andreas Eversberg0aed6542012-06-23 10:33:16 +020051if ENABLE_SYSMOBTS
52libgprs_la_SOURCES += \
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040053 sysmo_sock.cpp
Andreas Eversberg0aed6542012-06-23 10:33:16 +020054else
55libgprs_la_SOURCES += \
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040056 openbts_sock.cpp
Andreas Eversberg0aed6542012-06-23 10:33:16 +020057endif
58
Harald Welteda628592012-07-22 22:59:08 +020059bin_PROGRAMS = \
Harald Welte3022a702012-07-22 22:58:22 +020060 osmo-pcu
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030061
Holger Hans Peter Freythere13298d2013-07-28 16:45:54 +020062noinst_PROGRAMS =
63
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010064if ENABLE_SYSMODSP
65noinst_PROGRAMS += \
66 osmo-pcu-remote
67endif
68
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030069noinst_HEADERS = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040070 gprs_debug.h \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030071 csn1.h \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040072 gsm_rlcmac.h \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040073 gprs_bssgp_pcu.h \
74 gprs_rlcmac.h \
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040075 pcuif_proto.h \
Ivan Kluchnikovff447cd2012-04-12 15:16:23 +040076 pcu_l1_if.h \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040077 gsm_timer.h \
Andreas Eversbergebde64f2012-07-12 09:18:42 +020078 bitvector.h \
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010079 pcu_vty.h \
80 sysmo_l1_if.h \
Holger Hans Peter Freyther17c31ce2013-08-24 18:31:27 +020081 femtobts.h \
Holger Hans Peter Freyther67ed34e2013-10-17 17:01:54 +020082 tbf.h \
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +020083 bts.h \
Holger Hans Peter Freyther63f29d62013-10-19 19:04:03 +020084 poll_controller.h \
85 encoding.h
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030086
Harald Welte3022a702012-07-22 22:58:22 +020087osmo_pcu_SOURCES = pcu_main.cpp
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010088
89if ENABLE_SYSMODSP
90osmo_pcu_SOURCES += sysmo_l1_if.c \
91 sysmo_l1_hw.c \
92 femtobts.c
93
94osmo_pcu_remote_SOURCES = pcu_main.cpp \
95 sysmo_l1_if.c \
96 sysmo_l1_fwd.c \
97 femtobts.c
98endif
99
Harald Welte3022a702012-07-22 22:58:22 +0200100osmo_pcu_LDADD = \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400101 libgprs.la \
Harald Welte477e79e2012-06-18 12:21:03 +0800102 $(LIBOSMOGB_LIBS) \
Harald Welte57f6b022012-06-14 21:05:44 +0800103 $(LIBOSMOCORE_LIBS) \
104 $(LIBOSMOGSM_LIBS) \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400105 $(COMMON_LA)
106
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100107if ENABLE_SYSMODSP
108osmo_pcu_remote_LDADD = \
109 libgprs.la \
110 $(LIBOSMOGB_LIBS) \
111 $(LIBOSMOCORE_LIBS) \
112 $(LIBOSMOGSM_LIBS) \
113 $(COMMON_LA)
114endif
115
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400116#MOSTLYCLEANFILES += testSource testDestination