blob: 4f8a548cb617c488610eae68cc71334dd1374bca [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 Welte57f6b022012-06-14 21:05:44 +080021# FIXME: This has to go!!
22OPENBSC_DIR = $(top_srcdir)/../openbsc/openbsc
23OPENGGSN_DIR = $(top_srcdir)/../openggsn
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030024
Harald Welte57f6b022012-06-14 21:05:44 +080025AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) -I$(OPENBSC_DIR)/include
Andreas Eversbergf6b7ca52012-06-23 10:17:07 +020026AM_CXXFLAGS = -Wall -ldl -pthread -lgtp
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030027
28noinst_LTLIBRARIES = libgprs.la
29
30libgprs_la_SOURCES = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040031 gprs_debug.cpp \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030032 csn1.cpp \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040033 gsm_rlcmac.cpp \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040034 gprs_bssgp_pcu.cpp \
35 gprs_rlcmac.cpp \
Andreas Eversberg5dac2f02012-06-27 15:52:04 +020036 gprs_rlcmac_data.cpp \
37 gprs_rlcmac_sched.cpp \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040038 gsm_timer.cpp \
39 bitvector.cpp
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030040
Andreas Eversberg0aed6542012-06-23 10:33:16 +020041if ENABLE_SYSMOBTS
42libgprs_la_SOURCES += \
43 sysmo_l1_if.cpp
44else
45libgprs_la_SOURCES += \
46 pcu_l1_if.cpp
47endif
48
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030049noinst_PROGRAMS = \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040050 RLCMACTest \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040051 pcu
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030052
53noinst_HEADERS = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040054 gprs_debug.h \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030055 csn1.h \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040056 gsm_rlcmac.h \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040057 gprs_bssgp_pcu.h \
58 gprs_rlcmac.h \
Ivan Kluchnikovff447cd2012-04-12 15:16:23 +040059 pcu_l1_if.h \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040060 gsm_timer.h \
61 bitvector.h
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030062
63RLCMACTest_SOURCES = RLCMACTest.cpp
Ivan Kluchnikov9c2c6992012-01-05 22:37:20 +030064RLCMACTest_LDADD = \
65 libgprs.la \
Harald Welte57f6b022012-06-14 21:05:44 +080066 $(LIBOSMOCORE_LIBS) \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040067 $(COMMON_LA)
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040068
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040069pcu_SOURCES = pcu_main.cpp
70pcu_LDADD = \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040071 libgprs.la \
72 $(OPENBSC_DIR)/src/libgb/gprs_ns.o \
73 $(OPENBSC_DIR)/src/libgb/gprs_bssgp.o \
74 $(OPENBSC_DIR)/src/libgb/gprs_bssgp_bss.o \
75 $(OPENBSC_DIR)/src/libgb/gprs_bssgp_util.o \
76 $(OPENBSC_DIR)/src/libgb/gprs_ns_frgre.o \
Andreas Eversbergf6b7ca52012-06-23 10:17:07 +020077 $(OPENBSC_DIR)/src/libcommon/socket.o \
78 $(OPENBSC_DIR)/src/gprs/gprs_llc.o \
79 $(OPENBSC_DIR)/src/gprs/gprs_gmm.o \
80 $(OPENBSC_DIR)/src/gprs/gprs_sgsn.o \
81 $(OPENBSC_DIR)/src/gprs/sgsn_libgtp.o \
82 $(OPENBSC_DIR)/src/gprs/gprs_sndcp.o \
83 $(OPENBSC_DIR)/src/gprs/crc24.o \
Harald Welte57f6b022012-06-14 21:05:44 +080084 $(LIBOSMOCORE_LIBS) \
85 $(LIBOSMOGSM_LIBS) \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040086 $(COMMON_LA)
87
88#MOSTLYCLEANFILES += testSource testDestination