blob: e08ba07fbbc8859d44cff9a825347d83693ee41b [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
Yves Godinf0bb2542016-05-13 10:50:47 +020021AUTOMAKE_OPTIONS = subdir-objects
Holger Hans Peter Freyther0b0f2c02012-07-23 10:47:33 +020022AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGB_CFLAGS) $(LIBOSMOGSM_CFLAGS)
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010023
24if ENABLE_SYSMODSP
Maxcad867e2016-04-21 14:35:55 +020025AM_CPPFLAGS += -DENABLE_DIRECT_PHY
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010026endif
27
Harald Welted6790092012-06-18 12:21:03 +080028AM_CXXFLAGS = -Wall -ldl -pthread
Jacob Erlbeckb4584ff2015-06-22 10:19:46 +020029AM_LDFLAGS = -lrt
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030030
31noinst_LTLIBRARIES = libgprs.la
32
33libgprs_la_SOURCES = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040034 gprs_debug.cpp \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030035 csn1.cpp \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040036 gsm_rlcmac.cpp \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040037 gprs_bssgp_pcu.cpp \
38 gprs_rlcmac.cpp \
Andreas Eversberg5dac2f02012-06-27 15:52:04 +020039 gprs_rlcmac_sched.cpp \
Andreas Eversberg050ace22013-03-16 16:22:02 +010040 gprs_rlcmac_meas.cpp \
Holger Hans Peter Freyther02ab4a82013-09-29 07:37:40 +020041 gprs_rlcmac_ts_alloc.cpp \
Jacob Erlbecke04e0b02015-05-06 18:30:48 +020042 gprs_ms.cpp \
Jacob Erlbeck53670862015-05-12 17:54:33 +020043 gprs_ms_storage.cpp \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040044 gsm_timer.cpp \
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040045 bitvector.cpp \
Andreas Eversbergebde64f2012-07-12 09:18:42 +020046 pcu_l1_if.cpp \
Holger Hans Peter Freyther17c31ce2013-08-24 18:31:27 +020047 pcu_vty.c \
Jacob Erlbeck62e96a32015-06-04 09:42:14 +020048 pcu_vty_functions.cpp \
Holger Hans Peter Freytherb6acfda2013-10-17 19:41:11 +020049 tbf.cpp \
Daniel Willmannca102af2014-08-08 12:14:12 +020050 tbf_ul.cpp \
51 tbf_dl.cpp \
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +020052 bts.cpp \
Holger Hans Peter Freyther6ca0a902013-10-19 18:50:22 +020053 poll_controller.cpp \
Holger Hans Peter Freytherd6ef5342013-10-19 19:50:00 +020054 encoding.cpp \
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +020055 sba.cpp \
Holger Hans Peter Freyther096f6f92013-11-07 07:21:06 +010056 decoding.cpp \
Holger Hans Peter Freyther58db60c2013-11-13 20:45:40 +010057 llc.cpp \
Jacob Erlbeck4f666bc2015-07-20 12:40:42 +020058 rlc.cpp \
Harald Welte08e5d602015-11-13 16:07:25 +010059 osmobts_sock.cpp \
Jacob Erlbeck409f9802015-11-30 18:06:50 +010060 gprs_codel.c \
61 gprs_coding_scheme.cpp
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030062
Harald Welteda628592012-07-22 22:59:08 +020063bin_PROGRAMS = \
Harald Welte3022a702012-07-22 22:58:22 +020064 osmo-pcu
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030065
Holger Hans Peter Freythere13298d2013-07-28 16:45:54 +020066noinst_PROGRAMS =
67
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030068noinst_HEADERS = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040069 gprs_debug.h \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030070 csn1.h \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040071 gsm_rlcmac.h \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040072 gprs_bssgp_pcu.h \
73 gprs_rlcmac.h \
Jacob Erlbecke04e0b02015-05-06 18:30:48 +020074 gprs_ms.h \
Jacob Erlbeck53670862015-05-12 17:54:33 +020075 gprs_ms_storage.h \
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040076 pcuif_proto.h \
Ivan Kluchnikovff447cd2012-04-12 15:16:23 +040077 pcu_l1_if.h \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040078 gsm_timer.h \
Andreas Eversbergebde64f2012-07-12 09:18:42 +020079 bitvector.h \
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010080 pcu_vty.h \
Jacob Erlbeck62e96a32015-06-04 09:42:14 +020081 pcu_vty_functions.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 \
Holger Hans Peter Freyther111614a2013-10-19 20:04:57 +020085 encoding.h \
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +020086 sba.h \
87 rlc.h \
Holger Hans Peter Freytherbe570812013-11-07 08:01:49 +010088 decoding.h \
Jacob Erlbeck0a0b5dc2015-03-29 13:53:01 +020089 llc.h \
Jacob Erlbeckdfef28d2015-05-11 14:13:47 +020090 pcu_utils.h \
Jacob Erlbeck4f666bc2015-07-20 12:40:42 +020091 cxx_linuxlist.h \
Jacob Erlbeck409f9802015-11-30 18:06:50 +010092 gprs_codel.h \
93 gprs_coding_scheme.h
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030094
Harald Welte3022a702012-07-22 22:58:22 +020095osmo_pcu_SOURCES = pcu_main.cpp
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010096
97if ENABLE_SYSMODSP
Maxde810f22016-05-13 10:27:35 +020098AM_CPPFLAGS += -I$(srcdir)/osmo-bts-sysmo
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010099
Maxde810f22016-05-13 10:27:35 +0200100EXTRA_DIST = \
101 osmo-bts-sysmo/sysmo_l1_if.c \
102 osmo-bts-sysmo/sysmo_l1_if.h \
103 osmo-bts-sysmo/sysmo_l1_hw.c \
104 osmo-bts-sysmo/femtobts.c \
105 osmo-bts-sysmo/femtobts.h
106
107noinst_HEADERS += \
108 osmo-bts-sysmo/sysmo_l1_if.h \
109 osmo-bts-sysmo/femtobts.h
110
111noinst_PROGRAMS += \
112 osmo-pcu-remote
113
114osmo_pcu_SOURCES += \
115 osmo-bts-sysmo/sysmo_l1_if.c \
116 osmo-bts-sysmo/sysmo_l1_hw.c \
117 osmo-bts-sysmo/femtobts.c
118
119osmo_pcu_remote_SOURCES = \
120 pcu_main.cpp \
121 osmo-bts-sysmo/sysmo_l1_if.c \
122 osmo-bts-sysmo/sysmo_l1_fwd.c \
123 osmo-bts-sysmo/femtobts.c
124
125osmo_pcu_remote_LDADD = \
126 libgprs.la \
127 $(LIBOSMOGB_LIBS) \
128 $(LIBOSMOCORE_LIBS) \
129 $(LIBOSMOGSM_LIBS) \
130 $(COMMON_LA)
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100131endif
132
Harald Welte3022a702012-07-22 22:58:22 +0200133osmo_pcu_LDADD = \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400134 libgprs.la \
Harald Welte477e79e2012-06-18 12:21:03 +0800135 $(LIBOSMOGB_LIBS) \
Harald Welte57f6b022012-06-14 21:05:44 +0800136 $(LIBOSMOCORE_LIBS) \
137 $(LIBOSMOGSM_LIBS) \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400138 $(COMMON_LA)
139
140#MOSTLYCLEANFILES += testSource testDestination