blob: 5351d24b1fddc3ee12da2634749df73ad7916115 [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
Pau Espin Pedrolc0a250d2021-01-21 18:46:13 +010022AM_CPPFLAGS = -I$(top_srcdir)/include $(STD_DEFINES_AND_INCLUDES) $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGB_CFLAGS) $(LIBOSMOCTRL_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
Jean-Francois Dionnec1e44902017-06-05 14:44:57 -040032if ENABLE_OC2GBTS_PHY
33AM_CPPFLAGS += -DENABLE_DIRECT_PHY
34endif
35
Harald Welted6790092012-06-18 12:21:03 +080036AM_CXXFLAGS = -Wall -ldl -pthread
Jacob Erlbeckb4584ff2015-06-22 10:19:46 +020037AM_LDFLAGS = -lrt
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030038
39noinst_LTLIBRARIES = libgprs.la
40
41libgprs_la_SOURCES = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040042 gprs_debug.cpp \
Vadim Yanitskiy39a65052020-01-25 01:24:59 +070043 csn1.c \
Pau Espin Pedrolb2653fe2020-03-26 15:14:01 +010044 gsm_rlcmac.c \
Pau Espin Pedrol8a35e642021-01-18 17:14:14 +010045 gprs_bssgp_pcu.c \
Pau Espin Pedrol3a271022021-01-21 18:44:23 +010046 gprs_bssgp_rim.c \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040047 gprs_rlcmac.cpp \
Andreas Eversberg5dac2f02012-06-27 15:52:04 +020048 gprs_rlcmac_sched.cpp \
Andreas Eversberg050ace22013-03-16 16:22:02 +010049 gprs_rlcmac_meas.cpp \
Holger Hans Peter Freyther02ab4a82013-09-29 07:37:40 +020050 gprs_rlcmac_ts_alloc.cpp \
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +010051 gprs_ms.c \
Jacob Erlbeck53670862015-05-12 17:54:33 +020052 gprs_ms_storage.cpp \
Pau Espin Pedrolac3fd122021-01-13 18:54:38 +010053 gprs_pcu.c \
Andreas Eversbergebde64f2012-07-12 09:18:42 +020054 pcu_l1_if.cpp \
Holger Hans Peter Freyther17c31ce2013-08-24 18:31:27 +020055 pcu_vty.c \
Jacob Erlbeck62e96a32015-06-04 09:42:14 +020056 pcu_vty_functions.cpp \
Max842d7812017-11-01 18:11:24 +010057 mslot_class.c \
Pau Espin Pedrolc0a250d2021-01-21 18:46:13 +010058 nacc_fsm.c \
59 neigh_cache.c \
Holger Hans Peter Freytherb6acfda2013-10-17 19:41:11 +020060 tbf.cpp \
Pau Espin Pedroldc2aaac2021-05-14 12:50:46 +020061 tbf_fsm.c \
Daniel Willmannca102af2014-08-08 12:14:12 +020062 tbf_ul.cpp \
Pau Espin Pedrol6ad11a62021-07-27 12:27:08 +020063 tbf_ul_ass_fsm.c \
Daniel Willmannca102af2014-08-08 12:14:12 +020064 tbf_dl.cpp \
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +020065 bts.cpp \
Oliver Smithd3c75912021-07-09 16:37:16 +020066 bts_pch_timer.c \
Max6dc90b82018-02-19 17:17:28 +010067 pdch.cpp \
Pau Espin Pedrol15c58ac2021-03-08 14:57:58 +010068 pdch_ul_controller.c \
Holger Hans Peter Freytherd6ef5342013-10-19 19:50:00 +020069 encoding.cpp \
Pau Espin Pedrol15c58ac2021-03-08 14:57:58 +010070 sba.c \
Holger Hans Peter Freyther096f6f92013-11-07 07:21:06 +010071 decoding.cpp \
Holger Hans Peter Freyther58db60c2013-11-13 20:45:40 +010072 llc.cpp \
Jacob Erlbeck4f666bc2015-07-20 12:40:42 +020073 rlc.cpp \
Pau Espin Pedrole91c4c72021-01-18 17:54:30 +010074 osmobts_sock.c \
Jacob Erlbeck409f9802015-11-30 18:06:50 +010075 gprs_codel.c \
Max51754b62019-03-13 17:14:13 +010076 coding_scheme.c \
Oliver Smithcfb63212019-09-05 17:13:33 +020077 egprs_rlc_compression.cpp \
78 gprs_rlcmac_sched.cpp
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030079
Harald Welteda628592012-07-22 22:59:08 +020080bin_PROGRAMS = \
Harald Welte3022a702012-07-22 22:58:22 +020081 osmo-pcu
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030082
Holger Hans Peter Freythere13298d2013-07-28 16:45:54 +020083noinst_PROGRAMS =
84
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030085noinst_HEADERS = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040086 gprs_debug.h \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030087 csn1.h \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040088 gsm_rlcmac.h \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040089 gprs_bssgp_pcu.h \
Pau Espin Pedrol3a271022021-01-21 18:44:23 +010090 gprs_bssgp_rim.h \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040091 gprs_rlcmac.h \
Jacob Erlbecke04e0b02015-05-06 18:30:48 +020092 gprs_ms.h \
Jacob Erlbeck53670862015-05-12 17:54:33 +020093 gprs_ms_storage.h \
Pau Espin Pedrolac3fd122021-01-13 18:54:38 +010094 gprs_pcu.h \
Ivan Kluchnikovff447cd2012-04-12 15:16:23 +040095 pcu_l1_if.h \
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010096 pcu_vty.h \
Jacob Erlbeck62e96a32015-06-04 09:42:14 +020097 pcu_vty_functions.h \
Max842d7812017-11-01 18:11:24 +010098 mslot_class.h \
Pau Espin Pedrolc0a250d2021-01-21 18:46:13 +010099 nacc_fsm.h \
100 neigh_cache.h \
Holger Hans Peter Freyther67ed34e2013-10-17 17:01:54 +0200101 tbf.h \
Pau Espin Pedroldc2aaac2021-05-14 12:50:46 +0200102 tbf_fsm.h \
Pau Espin Pedrol9d1cdb12019-09-25 17:47:02 +0200103 tbf_ul.h \
Pau Espin Pedrol6ad11a62021-07-27 12:27:08 +0200104 tbf_ul_ass_fsm.h \
Pau Espin Pedrol9d1cdb12019-09-25 17:47:02 +0200105 tbf_dl.h \
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +0200106 bts.h \
Oliver Smithd3c75912021-07-09 16:37:16 +0200107 bts_pch_timer.h \
Max6dc90b82018-02-19 17:17:28 +0100108 pdch.h \
Pau Espin Pedrol15c58ac2021-03-08 14:57:58 +0100109 pdch_ul_controller.h \
Holger Hans Peter Freyther111614a2013-10-19 20:04:57 +0200110 encoding.h \
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +0200111 sba.h \
112 rlc.h \
Holger Hans Peter Freytherbe570812013-11-07 08:01:49 +0100113 decoding.h \
Jacob Erlbeck0a0b5dc2015-03-29 13:53:01 +0200114 llc.h \
Jacob Erlbeckdfef28d2015-05-11 14:13:47 +0200115 pcu_utils.h \
Jacob Erlbeck4f666bc2015-07-20 12:40:42 +0200116 cxx_linuxlist.h \
Jacob Erlbeck409f9802015-11-30 18:06:50 +0100117 gprs_codel.h \
Maxbea2edb2019-03-06 17:04:59 +0100118 coding_scheme.h \
Pau Espin Pedrolb2653fe2020-03-26 15:14:01 +0100119 egprs_rlc_compression.h \
120 wireshark_compat.h
Ivan Kluchnikov487a1412011-12-21 13:17:53 +0300121
Harald Welte3022a702012-07-22 22:58:22 +0200122osmo_pcu_SOURCES = pcu_main.cpp
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100123
124if ENABLE_SYSMODSP
Max186206c2018-01-15 16:43:22 +0100125AM_CPPFLAGS += -I$(srcdir)/osmo-bts-sysmo -I$(SYSMOBTS_INCDIR)
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100126
Maxde810f22016-05-13 10:27:35 +0200127EXTRA_DIST = \
128 osmo-bts-sysmo/sysmo_l1_if.c \
129 osmo-bts-sysmo/sysmo_l1_if.h \
130 osmo-bts-sysmo/sysmo_l1_hw.c \
131 osmo-bts-sysmo/femtobts.c \
132 osmo-bts-sysmo/femtobts.h
133
134noinst_HEADERS += \
135 osmo-bts-sysmo/sysmo_l1_if.h \
136 osmo-bts-sysmo/femtobts.h
137
138noinst_PROGRAMS += \
139 osmo-pcu-remote
140
141osmo_pcu_SOURCES += \
142 osmo-bts-sysmo/sysmo_l1_if.c \
143 osmo-bts-sysmo/sysmo_l1_hw.c \
144 osmo-bts-sysmo/femtobts.c
145
146osmo_pcu_remote_SOURCES = \
147 pcu_main.cpp \
148 osmo-bts-sysmo/sysmo_l1_if.c \
149 osmo-bts-sysmo/sysmo_l1_fwd.c \
150 osmo-bts-sysmo/femtobts.c
151
152osmo_pcu_remote_LDADD = \
153 libgprs.la \
154 $(LIBOSMOGB_LIBS) \
155 $(LIBOSMOCORE_LIBS) \
Pau Espin Pedrolc0a250d2021-01-21 18:46:13 +0100156 $(LIBOSMOCTRL_LIBS) \
Maxde810f22016-05-13 10:27:35 +0200157 $(LIBOSMOGSM_LIBS) \
158 $(COMMON_LA)
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100159endif
160
Yves Godin660709d2016-05-19 11:08:03 +0200161if ENABLE_LC15BTS_PHY
Harald Weltec136be02017-06-11 11:36:33 +0200162AM_CPPFLAGS += $(LITECELL15_CFLAGS) -I$(srcdir)/osmo-bts-litecell15
Yves Godin660709d2016-05-19 11:08:03 +0200163
164EXTRA_DIST = \
165 osmo-bts-litecell15/lc15_l1_if.c \
166 osmo-bts-litecell15/lc15_l1_if.h \
167 osmo-bts-litecell15/lc15_l1_hw.c \
168 osmo-bts-litecell15/lc15bts.c \
169 osmo-bts-litecell15/lc15bts.h
170
171noinst_HEADERS += \
172 osmo-bts-litecell15/lc15_l1_if.h \
173 osmo-bts-litecell15/lc15bts.h
174
175osmo_pcu_SOURCES += \
176 osmo-bts-litecell15/lc15_l1_if.c \
177 osmo-bts-litecell15/lc15_l1_hw.c \
178 osmo-bts-litecell15/lc15bts.c
179endif
180
Jean-Francois Dionnec1e44902017-06-05 14:44:57 -0400181if ENABLE_OC2GBTS_PHY
182AM_CPPFLAGS += -I$(OC2G_INCDIR) -I$(srcdir)/osmo-bts-oc2g
183
184EXTRA_DIST = \
185 osmo-bts-oc2g/oc2g_l1_if.c \
186 osmo-bts-oc2g/oc2g_l1_if.h \
187 osmo-bts-oc2g/oc2g_l1_hw.c \
188 osmo-bts-oc2g/oc2gbts.c \
189 osmo-bts-oc2g/oc2gbts.h
190
191noinst_HEADERS += \
192 osmo-bts-oc2g/oc2g_l1_if.h \
193 osmo-bts-oc2g/oc2gbts.h
194
195osmo_pcu_SOURCES += \
196 osmo-bts-oc2g/oc2g_l1_if.c \
197 osmo-bts-oc2g/oc2g_l1_hw.c \
198 osmo-bts-oc2g/oc2gbts.c
199endif
200
Harald Welte3022a702012-07-22 22:58:22 +0200201osmo_pcu_LDADD = \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400202 libgprs.la \
Harald Welte477e79e2012-06-18 12:21:03 +0800203 $(LIBOSMOGB_LIBS) \
Harald Welte57f6b022012-06-14 21:05:44 +0800204 $(LIBOSMOCORE_LIBS) \
Pau Espin Pedrolc0a250d2021-01-21 18:46:13 +0100205 $(LIBOSMOCTRL_LIBS) \
Harald Welte57f6b022012-06-14 21:05:44 +0800206 $(LIBOSMOGSM_LIBS) \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400207 $(COMMON_LA)
208
209#MOSTLYCLEANFILES += testSource testDestination