blob: eb4a2bbad751222b3bed25a7ac02ea37c33ea43e [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
Harald Welte68fc1272016-11-16 22:48:33 +010022AM_CPPFLAGS = -I$(top_srcdir)/include $(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
Yves Godin660709d2016-05-19 11:08:03 +020028if ENABLE_LC15BTS_PHY
29AM_CPPFLAGS += -DENABLE_DIRECT_PHY
30endif
31
Harald Welted6790092012-06-18 12:21:03 +080032AM_CXXFLAGS = -Wall -ldl -pthread
Jacob Erlbeckb4584ff2015-06-22 10:19:46 +020033AM_LDFLAGS = -lrt
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030034
35noinst_LTLIBRARIES = libgprs.la
36
37libgprs_la_SOURCES = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040038 gprs_debug.cpp \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030039 csn1.cpp \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040040 gsm_rlcmac.cpp \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040041 gprs_bssgp_pcu.cpp \
42 gprs_rlcmac.cpp \
Andreas Eversberg5dac2f02012-06-27 15:52:04 +020043 gprs_rlcmac_sched.cpp \
Andreas Eversberg050ace22013-03-16 16:22:02 +010044 gprs_rlcmac_meas.cpp \
Holger Hans Peter Freyther02ab4a82013-09-29 07:37:40 +020045 gprs_rlcmac_ts_alloc.cpp \
Jacob Erlbecke04e0b02015-05-06 18:30:48 +020046 gprs_ms.cpp \
Jacob Erlbeck53670862015-05-12 17:54:33 +020047 gprs_ms_storage.cpp \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040048 gsm_timer.cpp \
Andreas Eversbergebde64f2012-07-12 09:18:42 +020049 pcu_l1_if.cpp \
Holger Hans Peter Freyther17c31ce2013-08-24 18:31:27 +020050 pcu_vty.c \
Jacob Erlbeck62e96a32015-06-04 09:42:14 +020051 pcu_vty_functions.cpp \
Max842d7812017-11-01 18:11:24 +010052 mslot_class.c \
Holger Hans Peter Freytherb6acfda2013-10-17 19:41:11 +020053 tbf.cpp \
Daniel Willmannca102af2014-08-08 12:14:12 +020054 tbf_ul.cpp \
55 tbf_dl.cpp \
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +020056 bts.cpp \
Max6dc90b82018-02-19 17:17:28 +010057 pdch.cpp \
Holger Hans Peter Freyther6ca0a902013-10-19 18:50:22 +020058 poll_controller.cpp \
Holger Hans Peter Freytherd6ef5342013-10-19 19:50:00 +020059 encoding.cpp \
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +020060 sba.cpp \
Holger Hans Peter Freyther096f6f92013-11-07 07:21:06 +010061 decoding.cpp \
Holger Hans Peter Freyther58db60c2013-11-13 20:45:40 +010062 llc.cpp \
Jacob Erlbeck4f666bc2015-07-20 12:40:42 +020063 rlc.cpp \
Harald Welte08e5d602015-11-13 16:07:25 +010064 osmobts_sock.cpp \
Jacob Erlbeck409f9802015-11-30 18:06:50 +010065 gprs_codel.c \
Pravin Kumarvel0a4a6c12016-10-17 11:00:57 +053066 gprs_coding_scheme.cpp \
67 egprs_rlc_compression.cpp
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030068
Harald Welteda628592012-07-22 22:59:08 +020069bin_PROGRAMS = \
Harald Welte3022a702012-07-22 22:58:22 +020070 osmo-pcu
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030071
Holger Hans Peter Freythere13298d2013-07-28 16:45:54 +020072noinst_PROGRAMS =
73
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030074noinst_HEADERS = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040075 gprs_debug.h \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030076 csn1.h \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040077 gsm_rlcmac.h \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040078 gprs_bssgp_pcu.h \
79 gprs_rlcmac.h \
Jacob Erlbecke04e0b02015-05-06 18:30:48 +020080 gprs_ms.h \
Jacob Erlbeck53670862015-05-12 17:54:33 +020081 gprs_ms_storage.h \
Ivan Kluchnikovff447cd2012-04-12 15:16:23 +040082 pcu_l1_if.h \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040083 gsm_timer.h \
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010084 pcu_vty.h \
Jacob Erlbeck62e96a32015-06-04 09:42:14 +020085 pcu_vty_functions.h \
Max842d7812017-11-01 18:11:24 +010086 mslot_class.h \
Holger Hans Peter Freyther67ed34e2013-10-17 17:01:54 +020087 tbf.h \
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +020088 bts.h \
Max6dc90b82018-02-19 17:17:28 +010089 pdch.h \
Holger Hans Peter Freyther63f29d62013-10-19 19:04:03 +020090 poll_controller.h \
Holger Hans Peter Freyther111614a2013-10-19 20:04:57 +020091 encoding.h \
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +020092 sba.h \
93 rlc.h \
Holger Hans Peter Freytherbe570812013-11-07 08:01:49 +010094 decoding.h \
Jacob Erlbeck0a0b5dc2015-03-29 13:53:01 +020095 llc.h \
Jacob Erlbeckdfef28d2015-05-11 14:13:47 +020096 pcu_utils.h \
Jacob Erlbeck4f666bc2015-07-20 12:40:42 +020097 cxx_linuxlist.h \
Jacob Erlbeck409f9802015-11-30 18:06:50 +010098 gprs_codel.h \
Pravin Kumarvel0a4a6c12016-10-17 11:00:57 +053099 gprs_coding_scheme.h \
Maxbea2edb2019-03-06 17:04:59 +0100100 coding_scheme.h \
Pravin Kumarvel0a4a6c12016-10-17 11:00:57 +0530101 egprs_rlc_compression.h
Ivan Kluchnikov487a1412011-12-21 13:17:53 +0300102
Harald Welte3022a702012-07-22 22:58:22 +0200103osmo_pcu_SOURCES = pcu_main.cpp
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100104
105if ENABLE_SYSMODSP
Max186206c2018-01-15 16:43:22 +0100106AM_CPPFLAGS += -I$(srcdir)/osmo-bts-sysmo -I$(SYSMOBTS_INCDIR)
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100107
Maxde810f22016-05-13 10:27:35 +0200108EXTRA_DIST = \
109 osmo-bts-sysmo/sysmo_l1_if.c \
110 osmo-bts-sysmo/sysmo_l1_if.h \
111 osmo-bts-sysmo/sysmo_l1_hw.c \
112 osmo-bts-sysmo/femtobts.c \
113 osmo-bts-sysmo/femtobts.h
114
115noinst_HEADERS += \
116 osmo-bts-sysmo/sysmo_l1_if.h \
117 osmo-bts-sysmo/femtobts.h
118
119noinst_PROGRAMS += \
120 osmo-pcu-remote
121
122osmo_pcu_SOURCES += \
123 osmo-bts-sysmo/sysmo_l1_if.c \
124 osmo-bts-sysmo/sysmo_l1_hw.c \
125 osmo-bts-sysmo/femtobts.c
126
127osmo_pcu_remote_SOURCES = \
128 pcu_main.cpp \
129 osmo-bts-sysmo/sysmo_l1_if.c \
130 osmo-bts-sysmo/sysmo_l1_fwd.c \
131 osmo-bts-sysmo/femtobts.c
132
133osmo_pcu_remote_LDADD = \
134 libgprs.la \
135 $(LIBOSMOGB_LIBS) \
136 $(LIBOSMOCORE_LIBS) \
137 $(LIBOSMOGSM_LIBS) \
138 $(COMMON_LA)
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100139endif
140
Yves Godin660709d2016-05-19 11:08:03 +0200141if ENABLE_LC15BTS_PHY
Harald Weltec136be02017-06-11 11:36:33 +0200142AM_CPPFLAGS += $(LITECELL15_CFLAGS) -I$(srcdir)/osmo-bts-litecell15
Yves Godin660709d2016-05-19 11:08:03 +0200143
144EXTRA_DIST = \
145 osmo-bts-litecell15/lc15_l1_if.c \
146 osmo-bts-litecell15/lc15_l1_if.h \
147 osmo-bts-litecell15/lc15_l1_hw.c \
148 osmo-bts-litecell15/lc15bts.c \
149 osmo-bts-litecell15/lc15bts.h
150
151noinst_HEADERS += \
152 osmo-bts-litecell15/lc15_l1_if.h \
153 osmo-bts-litecell15/lc15bts.h
154
155osmo_pcu_SOURCES += \
156 osmo-bts-litecell15/lc15_l1_if.c \
157 osmo-bts-litecell15/lc15_l1_hw.c \
158 osmo-bts-litecell15/lc15bts.c
159endif
160
Harald Welte3022a702012-07-22 22:58:22 +0200161osmo_pcu_LDADD = \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400162 libgprs.la \
Harald Welte477e79e2012-06-18 12:21:03 +0800163 $(LIBOSMOGB_LIBS) \
Harald Welte57f6b022012-06-14 21:05:44 +0800164 $(LIBOSMOCORE_LIBS) \
165 $(LIBOSMOGSM_LIBS) \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400166 $(COMMON_LA)
167
168#MOSTLYCLEANFILES += testSource testDestination