blob: ece372d68b3a104bcf929569c5032c933d0c32b9 [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 \
Jacob Erlbecke04e0b02015-05-06 18:30:48 +020050 gprs_ms.cpp \
Jacob Erlbeck53670862015-05-12 17:54:33 +020051 gprs_ms_storage.cpp \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040052 gsm_timer.cpp \
Andreas Eversbergebde64f2012-07-12 09:18:42 +020053 pcu_l1_if.cpp \
Holger Hans Peter Freyther17c31ce2013-08-24 18:31:27 +020054 pcu_vty.c \
Jacob Erlbeck62e96a32015-06-04 09:42:14 +020055 pcu_vty_functions.cpp \
Max842d7812017-11-01 18:11:24 +010056 mslot_class.c \
Holger Hans Peter Freytherb6acfda2013-10-17 19:41:11 +020057 tbf.cpp \
Daniel Willmannca102af2014-08-08 12:14:12 +020058 tbf_ul.cpp \
59 tbf_dl.cpp \
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +020060 bts.cpp \
Max6dc90b82018-02-19 17:17:28 +010061 pdch.cpp \
Holger Hans Peter Freyther6ca0a902013-10-19 18:50:22 +020062 poll_controller.cpp \
Holger Hans Peter Freytherd6ef5342013-10-19 19:50:00 +020063 encoding.cpp \
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +020064 sba.cpp \
Holger Hans Peter Freyther096f6f92013-11-07 07:21:06 +010065 decoding.cpp \
Holger Hans Peter Freyther58db60c2013-11-13 20:45:40 +010066 llc.cpp \
Jacob Erlbeck4f666bc2015-07-20 12:40:42 +020067 rlc.cpp \
Harald Welte08e5d602015-11-13 16:07:25 +010068 osmobts_sock.cpp \
Jacob Erlbeck409f9802015-11-30 18:06:50 +010069 gprs_codel.c \
Max51754b62019-03-13 17:14:13 +010070 coding_scheme.c \
Oliver Smithcfb63212019-09-05 17:13:33 +020071 egprs_rlc_compression.cpp \
72 gprs_rlcmac_sched.cpp
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030073
Harald Welteda628592012-07-22 22:59:08 +020074bin_PROGRAMS = \
Harald Welte3022a702012-07-22 22:58:22 +020075 osmo-pcu
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030076
Holger Hans Peter Freythere13298d2013-07-28 16:45:54 +020077noinst_PROGRAMS =
78
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030079noinst_HEADERS = \
Ivan Kluchnikov60437182012-05-24 22:07:15 +040080 gprs_debug.h \
Ivan Kluchnikov487a1412011-12-21 13:17:53 +030081 csn1.h \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +040082 gsm_rlcmac.h \
Ivan Kluchnikov8ee60512012-03-05 19:24:57 +040083 gprs_bssgp_pcu.h \
84 gprs_rlcmac.h \
Jacob Erlbecke04e0b02015-05-06 18:30:48 +020085 gprs_ms.h \
Jacob Erlbeck53670862015-05-12 17:54:33 +020086 gprs_ms_storage.h \
Ivan Kluchnikovff447cd2012-04-12 15:16:23 +040087 pcu_l1_if.h \
Ivan Kluchnikov962f97b2012-04-30 17:51:23 +040088 gsm_timer.h \
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010089 pcu_vty.h \
Jacob Erlbeck62e96a32015-06-04 09:42:14 +020090 pcu_vty_functions.h \
Max842d7812017-11-01 18:11:24 +010091 mslot_class.h \
Holger Hans Peter Freyther67ed34e2013-10-17 17:01:54 +020092 tbf.h \
Pau Espin Pedrol9d1cdb12019-09-25 17:47:02 +020093 tbf_ul.h \
94 tbf_dl.h \
Holger Hans Peter Freytherb78adcd2013-10-17 20:12:37 +020095 bts.h \
Max6dc90b82018-02-19 17:17:28 +010096 pdch.h \
Holger Hans Peter Freyther63f29d62013-10-19 19:04:03 +020097 poll_controller.h \
Holger Hans Peter Freyther111614a2013-10-19 20:04:57 +020098 encoding.h \
Holger Hans Peter Freytherd11290b2013-10-26 17:32:04 +020099 sba.h \
100 rlc.h \
Holger Hans Peter Freytherbe570812013-11-07 08:01:49 +0100101 decoding.h \
Jacob Erlbeck0a0b5dc2015-03-29 13:53:01 +0200102 llc.h \
Jacob Erlbeckdfef28d2015-05-11 14:13:47 +0200103 pcu_utils.h \
Jacob Erlbeck4f666bc2015-07-20 12:40:42 +0200104 cxx_linuxlist.h \
Jacob Erlbeck409f9802015-11-30 18:06:50 +0100105 gprs_codel.h \
Maxbea2edb2019-03-06 17:04:59 +0100106 coding_scheme.h \
Pau Espin Pedrolb2653fe2020-03-26 15:14:01 +0100107 egprs_rlc_compression.h \
108 wireshark_compat.h
Ivan Kluchnikov487a1412011-12-21 13:17:53 +0300109
Harald Welte3022a702012-07-22 22:58:22 +0200110osmo_pcu_SOURCES = pcu_main.cpp
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100111
112if ENABLE_SYSMODSP
Max186206c2018-01-15 16:43:22 +0100113AM_CPPFLAGS += -I$(srcdir)/osmo-bts-sysmo -I$(SYSMOBTS_INCDIR)
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100114
Maxde810f22016-05-13 10:27:35 +0200115EXTRA_DIST = \
116 osmo-bts-sysmo/sysmo_l1_if.c \
117 osmo-bts-sysmo/sysmo_l1_if.h \
118 osmo-bts-sysmo/sysmo_l1_hw.c \
119 osmo-bts-sysmo/femtobts.c \
120 osmo-bts-sysmo/femtobts.h
121
122noinst_HEADERS += \
123 osmo-bts-sysmo/sysmo_l1_if.h \
124 osmo-bts-sysmo/femtobts.h
125
126noinst_PROGRAMS += \
127 osmo-pcu-remote
128
129osmo_pcu_SOURCES += \
130 osmo-bts-sysmo/sysmo_l1_if.c \
131 osmo-bts-sysmo/sysmo_l1_hw.c \
132 osmo-bts-sysmo/femtobts.c
133
134osmo_pcu_remote_SOURCES = \
135 pcu_main.cpp \
136 osmo-bts-sysmo/sysmo_l1_if.c \
137 osmo-bts-sysmo/sysmo_l1_fwd.c \
138 osmo-bts-sysmo/femtobts.c
139
140osmo_pcu_remote_LDADD = \
141 libgprs.la \
142 $(LIBOSMOGB_LIBS) \
143 $(LIBOSMOCORE_LIBS) \
144 $(LIBOSMOGSM_LIBS) \
145 $(COMMON_LA)
Andreas Eversberga23c7ee2012-12-18 10:47:28 +0100146endif
147
Yves Godin660709d2016-05-19 11:08:03 +0200148if ENABLE_LC15BTS_PHY
Harald Weltec136be02017-06-11 11:36:33 +0200149AM_CPPFLAGS += $(LITECELL15_CFLAGS) -I$(srcdir)/osmo-bts-litecell15
Yves Godin660709d2016-05-19 11:08:03 +0200150
151EXTRA_DIST = \
152 osmo-bts-litecell15/lc15_l1_if.c \
153 osmo-bts-litecell15/lc15_l1_if.h \
154 osmo-bts-litecell15/lc15_l1_hw.c \
155 osmo-bts-litecell15/lc15bts.c \
156 osmo-bts-litecell15/lc15bts.h
157
158noinst_HEADERS += \
159 osmo-bts-litecell15/lc15_l1_if.h \
160 osmo-bts-litecell15/lc15bts.h
161
162osmo_pcu_SOURCES += \
163 osmo-bts-litecell15/lc15_l1_if.c \
164 osmo-bts-litecell15/lc15_l1_hw.c \
165 osmo-bts-litecell15/lc15bts.c
166endif
167
Jean-Francois Dionnec1e44902017-06-05 14:44:57 -0400168if ENABLE_OC2GBTS_PHY
169AM_CPPFLAGS += -I$(OC2G_INCDIR) -I$(srcdir)/osmo-bts-oc2g
170
171EXTRA_DIST = \
172 osmo-bts-oc2g/oc2g_l1_if.c \
173 osmo-bts-oc2g/oc2g_l1_if.h \
174 osmo-bts-oc2g/oc2g_l1_hw.c \
175 osmo-bts-oc2g/oc2gbts.c \
176 osmo-bts-oc2g/oc2gbts.h
177
178noinst_HEADERS += \
179 osmo-bts-oc2g/oc2g_l1_if.h \
180 osmo-bts-oc2g/oc2gbts.h
181
182osmo_pcu_SOURCES += \
183 osmo-bts-oc2g/oc2g_l1_if.c \
184 osmo-bts-oc2g/oc2g_l1_hw.c \
185 osmo-bts-oc2g/oc2gbts.c
186endif
187
Harald Welte3022a702012-07-22 22:58:22 +0200188osmo_pcu_LDADD = \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400189 libgprs.la \
Harald Welte477e79e2012-06-18 12:21:03 +0800190 $(LIBOSMOGB_LIBS) \
Harald Welte57f6b022012-06-14 21:05:44 +0800191 $(LIBOSMOCORE_LIBS) \
192 $(LIBOSMOGSM_LIBS) \
Ivan Kluchnikov5c2f9fb2012-02-05 02:27:17 +0400193 $(COMMON_LA)
194
195#MOSTLYCLEANFILES += testSource testDestination