blob: 78c01e1d50aa63669cec10c886f005be044c53c9 [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
Harald Welted6790092012-06-18 12:21:03 +080021AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES)
22AM_CXXFLAGS = -Wall -ldl -pthread
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030023
24noinst_LTLIBRARIES = libgprs.la
25
26libgprs_la_SOURCES = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040027 gprs_debug.cpp \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030028 csn1.cpp \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040029 gsm_rlcmac.cpp \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040030 gprs_bssgp_pcu.cpp \
31 gprs_rlcmac.cpp \
Andreas Eversberg5dac2f02012-06-27 15:52:04 +020032 gprs_rlcmac_data.cpp \
33 gprs_rlcmac_sched.cpp \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040034 gsm_timer.cpp \
35 bitvector.cpp
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030036
Andreas Eversberg0aed6542012-06-23 10:33:16 +020037if ENABLE_SYSMOBTS
38libgprs_la_SOURCES += \
39 sysmo_l1_if.cpp
40else
41libgprs_la_SOURCES += \
42 pcu_l1_if.cpp
43endif
44
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030045noinst_PROGRAMS = \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040046 RLCMACTest \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040047 pcu
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030048
49noinst_HEADERS = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040050 gprs_debug.h \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030051 csn1.h \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040052 gsm_rlcmac.h \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040053 gprs_bssgp_pcu.h \
54 gprs_rlcmac.h \
Ivan Kluchnikovff447cd2012-04-12 15:16:23 +040055 pcu_l1_if.h \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040056 gsm_timer.h \
57 bitvector.h
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030058
59RLCMACTest_SOURCES = RLCMACTest.cpp
Ivan Kluchnikov9c2c6992012-01-05 22:37:20 +030060RLCMACTest_LDADD = \
61 libgprs.la \
Harald Welte57f6b022012-06-14 21:05:44 +080062 $(LIBOSMOCORE_LIBS) \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040063 $(COMMON_LA)
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040064
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040065pcu_SOURCES = pcu_main.cpp
66pcu_LDADD = \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040067 libgprs.la \
Harald Welted6790092012-06-18 12:21:03 +080068 $(LIBOSMOGB_LIBS) \
Harald Welte57f6b022012-06-14 21:05:44 +080069 $(LIBOSMOCORE_LIBS) \
70 $(LIBOSMOGSM_LIBS) \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040071 $(COMMON_LA)
72
73#MOSTLYCLEANFILES += testSource testDestination