blob: 19dcc0f89ef5892edc0eb498ef132b623716e6d4 [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)
Harald Welted6790092012-06-18 12:21:03 +080022AM_CXXFLAGS = -Wall -ldl -pthread
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030023
24noinst_LTLIBRARIES = libgprs.la
25
26libgprs_la_SOURCES = \
Andreas Eversberg31dcbb62012-07-26 13:18:48 +020027 gprs_debug.c \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030028 csn1.cpp \
Andreas Eversberg31dcbb62012-07-26 13:18:48 +020029 gsm_rlcmac.c \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040030 gprs_bssgp_pcu.cpp \
Andreas Eversberg31dcbb62012-07-26 13:18:48 +020031 gprs_rlcmac.c \
32 gprs_rlcmac_data.c \
Andreas Eversbergfc1dfd82012-07-26 10:50:23 +020033 gprs_rlcmac_ctrl.cpp \
Andreas Eversberg31dcbb62012-07-26 13:18:48 +020034 gprs_rlcmac_sched.c \
35 gsm_timer.c \
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040036 bitvector.cpp \
Andreas Eversberg31dcbb62012-07-26 13:18:48 +020037 pcu_l1_if.c \
Andreas Eversbergebde64f2012-07-12 09:18:42 +020038 pcu_vty.c
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030039
Andreas Eversberg0aed6542012-06-23 10:33:16 +020040if ENABLE_SYSMOBTS
41libgprs_la_SOURCES += \
Andreas Eversberg31dcbb62012-07-26 13:18:48 +020042 sysmo_sock.c
Andreas Eversberg0aed6542012-06-23 10:33:16 +020043else
44libgprs_la_SOURCES += \
Andreas Eversberg31dcbb62012-07-26 13:18:48 +020045 openbts_sock.c
Andreas Eversberg0aed6542012-06-23 10:33:16 +020046endif
47
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030048noinst_PROGRAMS = \
Harald Welteda628592012-07-22 22:59:08 +020049 RLCMACTest
50
51bin_PROGRAMS = \
Harald Welte3022a702012-07-22 22:58:22 +020052 osmo-pcu
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030053
54noinst_HEADERS = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040055 gprs_debug.h \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030056 csn1.h \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040057 gsm_rlcmac.h \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040058 gprs_bssgp_pcu.h \
59 gprs_rlcmac.h \
Andreas Eversberg31dcbb62012-07-26 13:18:48 +020060 gprs_rlcmac_ctrl.h \
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040061 pcuif_proto.h \
Ivan Kluchnikovff447cd2012-04-12 15:16:23 +040062 pcu_l1_if.h \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040063 gsm_timer.h \
Andreas Eversbergebde64f2012-07-12 09:18:42 +020064 bitvector.h \
65 pcu_vty.h
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030066
67RLCMACTest_SOURCES = RLCMACTest.cpp
Ivan Kluchnikov9c2c6992012-01-05 22:37:20 +030068RLCMACTest_LDADD = \
69 libgprs.la \
Harald Welte57f6b022012-06-14 21:05:44 +080070 $(LIBOSMOCORE_LIBS) \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040071 $(COMMON_LA)
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040072
Harald Welte3022a702012-07-22 22:58:22 +020073osmo_pcu_SOURCES = pcu_main.cpp
74osmo_pcu_LDADD = \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040075 libgprs.la \
Harald Welte477e79e2012-06-18 12:21:03 +080076 $(LIBOSMOGB_LIBS) \
Harald Welte57f6b022012-06-14 21:05:44 +080077 $(LIBOSMOCORE_LIBS) \
78 $(LIBOSMOGSM_LIBS) \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040079 $(COMMON_LA)
80
81#MOSTLYCLEANFILES += testSource testDestination