blob: c9c7aa3d6a65c919f76afd89d6a4064a0fbf456c [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
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 \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040045 gprs_bssgp_pcu.cpp \
46 gprs_rlcmac.cpp \
Andreas Eversberg5dac2f02012-06-27 15:52:04 +020047 gprs_rlcmac_sched.cpp \
Andreas Eversberg050ace22013-03-16 16:22:02 +010048 gprs_rlcmac_meas.cpp \
Holger Hans Peter Freyther02ab4a82013-09-29 07:37:40 +020049 gprs_rlcmac_ts_alloc.cpp \
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +010050 gprs_ms.c \
Jacob Erlbeck53670862015-05-12 17:54:33 +020051 gprs_ms_storage.cpp \
Pau Espin Pedrolac3fd122021-01-13 18:54:38 +010052 gprs_pcu.c \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040053 gsm_timer.cpp \
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 \
Holger Hans Peter Freytherb6acfda2013-10-17 19:41:11 +020058 tbf.cpp \
Daniel Willmannca102af2014-08-08 12:14:12 +020059 tbf_ul.cpp \
60 tbf_dl.cpp \
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +020061 bts.cpp \
Max6dc90b82018-02-19 17:17:28 +010062 pdch.cpp \
Holger Hans Peter Freyther6ca0a902013-10-19 18:50:22 +020063 poll_controller.cpp \
Holger Hans Peter Freytherd6ef5342013-10-19 19:50:00 +020064 encoding.cpp \
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +020065 sba.cpp \
Holger Hans Peter Freyther096f6f92013-11-07 07:21:06 +010066 decoding.cpp \
Holger Hans Peter Freyther58db60c2013-11-13 20:45:40 +010067 llc.cpp \
Jacob Erlbeck4f666bc2015-07-20 12:40:42 +020068 rlc.cpp \
Harald Welte08e5d602015-11-13 16:07:25 +010069 osmobts_sock.cpp \
Jacob Erlbeck409f9802015-11-30 18:06:50 +010070 gprs_codel.c \
Max51754b62019-03-13 17:14:13 +010071 coding_scheme.c \
Oliver Smithcfb63212019-09-05 17:13:33 +020072 egprs_rlc_compression.cpp \
73 gprs_rlcmac_sched.cpp
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030074
Harald Welteda628592012-07-22 22:59:08 +020075bin_PROGRAMS = \
Harald Welte3022a702012-07-22 22:58:22 +020076 osmo-pcu
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030077
Holger Hans Peter Freythere13298d2013-07-28 16:45:54 +020078noinst_PROGRAMS =
79
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030080noinst_HEADERS = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040081 gprs_debug.h \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030082 csn1.h \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040083 gsm_rlcmac.h \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040084 gprs_bssgp_pcu.h \
85 gprs_rlcmac.h \
Jacob Erlbecke04e0b02015-05-06 18:30:48 +020086 gprs_ms.h \
Jacob Erlbeck53670862015-05-12 17:54:33 +020087 gprs_ms_storage.h \
Pau Espin Pedrolac3fd122021-01-13 18:54:38 +010088 gprs_pcu.h \
Ivan Kluchnikovff447cd2012-04-12 15:16:23 +040089 pcu_l1_if.h \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040090 gsm_timer.h \
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010091 pcu_vty.h \
Jacob Erlbeck62e96a32015-06-04 09:42:14 +020092 pcu_vty_functions.h \
Max842d7812017-11-01 18:11:24 +010093 mslot_class.h \
Holger Hans Peter Freyther67ed34e2013-10-17 17:01:54 +020094 tbf.h \
Pau Espin Pedrol9d1cdb12019-09-25 17:47:02 +020095 tbf_ul.h \
96 tbf_dl.h \
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +020097 bts.h \
Max6dc90b82018-02-19 17:17:28 +010098 pdch.h \
Holger Hans Peter Freyther63f29d62013-10-19 19:04:03 +020099 poll_controller.h \
Holger Hans Peter Freyther111614a2013-10-19 20:04:57 +0200100 encoding.h \
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +0200101 sba.h \
102 rlc.h \
Holger Hans Peter Freytherbe570812013-11-07 08:01:49 +0100103 decoding.h \
Jacob Erlbeck0a0b5dc2015-03-29 13:53:01 +0200104 llc.h \
Jacob Erlbeckdfef28d2015-05-11 14:13:47 +0200105 pcu_utils.h \
Jacob Erlbeck4f666bc2015-07-20 12:40:42 +0200106 cxx_linuxlist.h \
Jacob Erlbeck409f9802015-11-30 18:06:50 +0100107 gprs_codel.h \
Maxbea2edb2019-03-06 17:04:59 +0100108 coding_scheme.h \
Pau Espin Pedrolb2653fe2020-03-26 15:14:01 +0100109 egprs_rlc_compression.h \
110 wireshark_compat.h
Ivan Kluchnikov487a1412011-12-21 13:17:53 +0300111
Harald Welte3022a702012-07-22 22:58:22 +0200112osmo_pcu_SOURCES = pcu_main.cpp
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100113
114if ENABLE_SYSMODSP
Max186206c2018-01-15 16:43:22 +0100115AM_CPPFLAGS += -I$(srcdir)/osmo-bts-sysmo -I$(SYSMOBTS_INCDIR)
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100116
Maxde810f22016-05-13 10:27:35 +0200117EXTRA_DIST = \
118 osmo-bts-sysmo/sysmo_l1_if.c \
119 osmo-bts-sysmo/sysmo_l1_if.h \
120 osmo-bts-sysmo/sysmo_l1_hw.c \
121 osmo-bts-sysmo/femtobts.c \
122 osmo-bts-sysmo/femtobts.h
123
124noinst_HEADERS += \
125 osmo-bts-sysmo/sysmo_l1_if.h \
126 osmo-bts-sysmo/femtobts.h
127
128noinst_PROGRAMS += \
129 osmo-pcu-remote
130
131osmo_pcu_SOURCES += \
132 osmo-bts-sysmo/sysmo_l1_if.c \
133 osmo-bts-sysmo/sysmo_l1_hw.c \
134 osmo-bts-sysmo/femtobts.c
135
136osmo_pcu_remote_SOURCES = \
137 pcu_main.cpp \
138 osmo-bts-sysmo/sysmo_l1_if.c \
139 osmo-bts-sysmo/sysmo_l1_fwd.c \
140 osmo-bts-sysmo/femtobts.c
141
142osmo_pcu_remote_LDADD = \
143 libgprs.la \
144 $(LIBOSMOGB_LIBS) \
145 $(LIBOSMOCORE_LIBS) \
146 $(LIBOSMOGSM_LIBS) \
147 $(COMMON_LA)
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100148endif
149
Yves Godin660709d2016-05-19 11:08:03 +0200150if ENABLE_LC15BTS_PHY
Harald Weltec136be02017-06-11 11:36:33 +0200151AM_CPPFLAGS += $(LITECELL15_CFLAGS) -I$(srcdir)/osmo-bts-litecell15
Yves Godin660709d2016-05-19 11:08:03 +0200152
153EXTRA_DIST = \
154 osmo-bts-litecell15/lc15_l1_if.c \
155 osmo-bts-litecell15/lc15_l1_if.h \
156 osmo-bts-litecell15/lc15_l1_hw.c \
157 osmo-bts-litecell15/lc15bts.c \
158 osmo-bts-litecell15/lc15bts.h
159
160noinst_HEADERS += \
161 osmo-bts-litecell15/lc15_l1_if.h \
162 osmo-bts-litecell15/lc15bts.h
163
164osmo_pcu_SOURCES += \
165 osmo-bts-litecell15/lc15_l1_if.c \
166 osmo-bts-litecell15/lc15_l1_hw.c \
167 osmo-bts-litecell15/lc15bts.c
168endif
169
Jean-Francois Dionnec1e44902017-06-05 14:44:57 -0400170if ENABLE_OC2GBTS_PHY
171AM_CPPFLAGS += -I$(OC2G_INCDIR) -I$(srcdir)/osmo-bts-oc2g
172
173EXTRA_DIST = \
174 osmo-bts-oc2g/oc2g_l1_if.c \
175 osmo-bts-oc2g/oc2g_l1_if.h \
176 osmo-bts-oc2g/oc2g_l1_hw.c \
177 osmo-bts-oc2g/oc2gbts.c \
178 osmo-bts-oc2g/oc2gbts.h
179
180noinst_HEADERS += \
181 osmo-bts-oc2g/oc2g_l1_if.h \
182 osmo-bts-oc2g/oc2gbts.h
183
184osmo_pcu_SOURCES += \
185 osmo-bts-oc2g/oc2g_l1_if.c \
186 osmo-bts-oc2g/oc2g_l1_hw.c \
187 osmo-bts-oc2g/oc2gbts.c
188endif
189
Harald Welte3022a702012-07-22 22:58:22 +0200190osmo_pcu_LDADD = \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400191 libgprs.la \
Harald Welte477e79e2012-06-18 12:21:03 +0800192 $(LIBOSMOGB_LIBS) \
Harald Welte57f6b022012-06-14 21:05:44 +0800193 $(LIBOSMOCORE_LIBS) \
194 $(LIBOSMOGSM_LIBS) \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400195 $(COMMON_LA)
196
197#MOSTLYCLEANFILES += testSource testDestination