Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 1 | # |
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 Godin | f0bb254 | 2016-05-13 10:50:47 +0200 | [diff] [blame] | 21 | AUTOMAKE_OPTIONS = subdir-objects |
Philipp Maier | 4bac398 | 2023-02-03 16:52:42 +0100 | [diff] [blame] | 22 | AM_CPPFLAGS = -I$(top_srcdir)/include $(STD_DEFINES_AND_INCLUDES) $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGB_CFLAGS) $(LIBOSMOCTRL_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOABIS_CFLAGS) $(LIBOSMOTRAU_CFLAGS) |
Andreas Eversberg | a23c7ee | 2012-12-18 10:47:28 +0100 | [diff] [blame] | 23 | |
24 | if ENABLE_SYSMODSP | ||||
Max | cad867e | 2016-04-21 14:35:55 +0200 | [diff] [blame] | 25 | AM_CPPFLAGS += -DENABLE_DIRECT_PHY |
Andreas Eversberg | a23c7ee | 2012-12-18 10:47:28 +0100 | [diff] [blame] | 26 | endif |
27 | |||||
Yves Godin | 660709d | 2016-05-19 11:08:03 +0200 | [diff] [blame] | 28 | if ENABLE_LC15BTS_PHY |
29 | AM_CPPFLAGS += -DENABLE_DIRECT_PHY | ||||
30 | endif | ||||
31 | |||||
Jean-Francois Dionne | c1e4490 | 2017-06-05 14:44:57 -0400 | [diff] [blame] | 32 | if ENABLE_OC2GBTS_PHY |
33 | AM_CPPFLAGS += -DENABLE_DIRECT_PHY | ||||
34 | endif | ||||
35 | |||||
Philipp Maier | 4bac398 | 2023-02-03 16:52:42 +0100 | [diff] [blame] | 36 | if ENABLE_ER_E1_CCU |
37 | AM_CPPFLAGS += -DENABLE_DIRECT_PHY | ||||
38 | endif | ||||
39 | |||||
Vadim Yanitskiy | 3cf9d53 | 2022-11-09 03:15:59 +0700 | [diff] [blame] | 40 | AM_CXXFLAGS = -Wall |
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 41 | |
42 | noinst_LTLIBRARIES = libgprs.la | ||||
43 | |||||
44 | libgprs_la_SOURCES = \ | ||||
Pau Espin Pedrol | ff7c581 | 2022-12-14 18:49:06 +0100 | [diff] [blame] | 45 | alloc_algo.cpp \ |
Pau Espin Pedrol | 4f29fe7 | 2022-11-21 13:06:36 +0100 | [diff] [blame] | 46 | gprs_debug.c \ |
Vadim Yanitskiy | 39a6505 | 2020-01-25 01:24:59 +0700 | [diff] [blame] | 47 | csn1.c \ |
Pau Espin Pedrol | c90e6f8 | 2021-10-19 14:45:17 +0200 | [diff] [blame] | 48 | csn1_dec.c \ |
49 | csn1_enc.c \ | ||||
Pau Espin Pedrol | b2653fe | 2020-03-26 15:14:01 +0100 | [diff] [blame] | 50 | gsm_rlcmac.c \ |
Pau Espin Pedrol | 8a35e64 | 2021-01-18 17:14:14 +0100 | [diff] [blame] | 51 | gprs_bssgp_pcu.c \ |
Pau Espin Pedrol | 3a27102 | 2021-01-21 18:44:23 +0100 | [diff] [blame] | 52 | gprs_bssgp_rim.c \ |
Max | cb947e0 | 2023-04-12 08:27:54 +0300 | [diff] [blame] | 53 | gprs_rlcmac.c \ |
Andreas Eversberg | 5dac2f0 | 2012-06-27 15:52:04 +0200 | [diff] [blame] | 54 | gprs_rlcmac_sched.cpp \ |
Andreas Eversberg | 050ace2 | 2013-03-16 16:22:02 +0100 | [diff] [blame] | 55 | gprs_rlcmac_meas.cpp \ |
Pau Espin Pedrol | da971ee | 2020-12-16 15:59:45 +0100 | [diff] [blame] | 56 | gprs_ms.c \ |
Jacob Erlbeck | 5367086 | 2015-05-12 17:54:33 +0200 | [diff] [blame] | 57 | gprs_ms_storage.cpp \ |
Pau Espin Pedrol | ac3fd12 | 2021-01-13 18:54:38 +0100 | [diff] [blame] | 58 | gprs_pcu.c \ |
Andreas Eversberg | ebde64f | 2012-07-12 09:18:42 +0200 | [diff] [blame] | 59 | pcu_l1_if.cpp \ |
Holger Hans Peter Freyther | 17c31ce | 2013-08-24 18:31:27 +0200 | [diff] [blame] | 60 | pcu_vty.c \ |
Jacob Erlbeck | 62e96a3 | 2015-06-04 09:42:14 +0200 | [diff] [blame] | 61 | pcu_vty_functions.cpp \ |
Max | 842d781 | 2017-11-01 18:11:24 +0100 | [diff] [blame] | 62 | mslot_class.c \ |
Pau Espin Pedrol | c0a250d | 2021-01-21 18:46:13 +0100 | [diff] [blame] | 63 | nacc_fsm.c \ |
64 | neigh_cache.c \ | ||||
Holger Hans Peter Freyther | b6acfda | 2013-10-17 19:41:11 +0200 | [diff] [blame] | 65 | tbf.cpp \ |
Pau Espin Pedrol | dc2aaac | 2021-05-14 12:50:46 +0200 | [diff] [blame] | 66 | tbf_fsm.c \ |
Daniel Willmann | ca102af | 2014-08-08 12:14:12 +0200 | [diff] [blame] | 67 | tbf_ul.cpp \ |
Pau Espin Pedrol | 343c0ee | 2022-11-17 19:55:08 +0100 | [diff] [blame] | 68 | tbf_ul_fsm.c \ |
Pau Espin Pedrol | ea8dbdd | 2021-07-29 18:39:16 +0200 | [diff] [blame] | 69 | tbf_ul_ack_fsm.c \ |
Pau Espin Pedrol | 6ad11a6 | 2021-07-27 12:27:08 +0200 | [diff] [blame] | 70 | tbf_ul_ass_fsm.c \ |
Daniel Willmann | ca102af | 2014-08-08 12:14:12 +0200 | [diff] [blame] | 71 | tbf_dl.cpp \ |
Pau Espin Pedrol | 343c0ee | 2022-11-17 19:55:08 +0100 | [diff] [blame] | 72 | tbf_dl_fsm.c \ |
Pau Espin Pedrol | 49a2f40 | 2021-07-27 17:33:07 +0200 | [diff] [blame] | 73 | tbf_dl_ass_fsm.c \ |
Holger Hans Peter Freyther | b78adcd | 2013-10-17 20:12:37 +0200 | [diff] [blame] | 74 | bts.cpp \ |
Oliver Smith | d3c7591 | 2021-07-09 16:37:16 +0200 | [diff] [blame] | 75 | bts_pch_timer.c \ |
Max | 6dc90b8 | 2018-02-19 17:17:28 +0100 | [diff] [blame] | 76 | pdch.cpp \ |
Pau Espin Pedrol | 15c58ac | 2021-03-08 14:57:58 +0100 | [diff] [blame] | 77 | pdch_ul_controller.c \ |
Holger Hans Peter Freyther | d6ef534 | 2013-10-19 19:50:00 +0200 | [diff] [blame] | 78 | encoding.cpp \ |
Pau Espin Pedrol | 15c58ac | 2021-03-08 14:57:58 +0100 | [diff] [blame] | 79 | sba.c \ |
Holger Hans Peter Freyther | 096f6f9 | 2013-11-07 07:21:06 +0100 | [diff] [blame] | 80 | decoding.cpp \ |
Pau Espin Pedrol | 4f8384b | 2022-03-31 19:36:12 +0200 | [diff] [blame] | 81 | llc.c \ |
Jacob Erlbeck | 4f666bc | 2015-07-20 12:40:42 +0200 | [diff] [blame] | 82 | rlc.cpp \ |
Pau Espin Pedrol | e91c4c7 | 2021-01-18 17:54:30 +0100 | [diff] [blame] | 83 | osmobts_sock.c \ |
Jacob Erlbeck | 409f980 | 2015-11-30 18:06:50 +0100 | [diff] [blame] | 84 | gprs_codel.c \ |
Max | 51754b6 | 2019-03-13 17:14:13 +0100 | [diff] [blame] | 85 | coding_scheme.c \ |
Oliver Smith | cfb6321 | 2019-09-05 17:13:33 +0200 | [diff] [blame] | 86 | egprs_rlc_compression.cpp \ |
87 | gprs_rlcmac_sched.cpp | ||||
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 88 | |
Harald Welte | da62859 | 2012-07-22 22:59:08 +0200 | [diff] [blame] | 89 | bin_PROGRAMS = \ |
Harald Welte | 3022a70 | 2012-07-22 22:58:22 +0200 | [diff] [blame] | 90 | osmo-pcu |
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 91 | |
Holger Hans Peter Freyther | e13298d | 2013-07-28 16:45:54 +0200 | [diff] [blame] | 92 | noinst_PROGRAMS = |
93 | |||||
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 94 | noinst_HEADERS = \ |
Pau Espin Pedrol | ff7c581 | 2022-12-14 18:49:06 +0100 | [diff] [blame] | 95 | alloc_algo.h \ |
Ivan Kluchnikov | 6043718 | 2012-05-24 22:07:15 +0400 | [diff] [blame] | 96 | gprs_debug.h \ |
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 97 | csn1.h \ |
Ivan Kluchnikov | 5c2f9fb | 2012-02-05 02:27:17 +0400 | [diff] [blame] | 98 | gsm_rlcmac.h \ |
Ivan Kluchnikov | 8ee6051 | 2012-03-05 19:24:57 +0400 | [diff] [blame] | 99 | gprs_bssgp_pcu.h \ |
Pau Espin Pedrol | 3a27102 | 2021-01-21 18:44:23 +0100 | [diff] [blame] | 100 | gprs_bssgp_rim.h \ |
Ivan Kluchnikov | 8ee6051 | 2012-03-05 19:24:57 +0400 | [diff] [blame] | 101 | gprs_rlcmac.h \ |
Jacob Erlbeck | e04e0b0 | 2015-05-06 18:30:48 +0200 | [diff] [blame] | 102 | gprs_ms.h \ |
Jacob Erlbeck | 5367086 | 2015-05-12 17:54:33 +0200 | [diff] [blame] | 103 | gprs_ms_storage.h \ |
Pau Espin Pedrol | ac3fd12 | 2021-01-13 18:54:38 +0100 | [diff] [blame] | 104 | gprs_pcu.h \ |
Ivan Kluchnikov | ff447cd | 2012-04-12 15:16:23 +0400 | [diff] [blame] | 105 | pcu_l1_if.h \ |
Philipp Maier | eaf5da3 | 2023-02-13 13:37:22 +0100 | [diff] [blame] | 106 | pcu_l1_if_phy.h \ |
Andreas Eversberg | a23c7ee | 2012-12-18 10:47:28 +0100 | [diff] [blame] | 107 | pcu_vty.h \ |
Jacob Erlbeck | 62e96a3 | 2015-06-04 09:42:14 +0200 | [diff] [blame] | 108 | pcu_vty_functions.h \ |
Max | 842d781 | 2017-11-01 18:11:24 +0100 | [diff] [blame] | 109 | mslot_class.h \ |
Pau Espin Pedrol | c0a250d | 2021-01-21 18:46:13 +0100 | [diff] [blame] | 110 | nacc_fsm.h \ |
111 | neigh_cache.h \ | ||||
Holger Hans Peter Freyther | 67ed34e | 2013-10-17 17:01:54 +0200 | [diff] [blame] | 112 | tbf.h \ |
Pau Espin Pedrol | dc2aaac | 2021-05-14 12:50:46 +0200 | [diff] [blame] | 113 | tbf_fsm.h \ |
Pau Espin Pedrol | 9d1cdb1 | 2019-09-25 17:47:02 +0200 | [diff] [blame] | 114 | tbf_ul.h \ |
Pau Espin Pedrol | ea8dbdd | 2021-07-29 18:39:16 +0200 | [diff] [blame] | 115 | tbf_ul_ack_fsm.h \ |
Pau Espin Pedrol | 6ad11a6 | 2021-07-27 12:27:08 +0200 | [diff] [blame] | 116 | tbf_ul_ass_fsm.h \ |
Pau Espin Pedrol | 9d1cdb1 | 2019-09-25 17:47:02 +0200 | [diff] [blame] | 117 | tbf_dl.h \ |
Pau Espin Pedrol | 49a2f40 | 2021-07-27 17:33:07 +0200 | [diff] [blame] | 118 | tbf_dl_ass_fsm.h \ |
Holger Hans Peter Freyther | b78adcd | 2013-10-17 20:12:37 +0200 | [diff] [blame] | 119 | bts.h \ |
Oliver Smith | d3c7591 | 2021-07-09 16:37:16 +0200 | [diff] [blame] | 120 | bts_pch_timer.h \ |
Max | 6dc90b8 | 2018-02-19 17:17:28 +0100 | [diff] [blame] | 121 | pdch.h \ |
Pau Espin Pedrol | 15c58ac | 2021-03-08 14:57:58 +0100 | [diff] [blame] | 122 | pdch_ul_controller.h \ |
Holger Hans Peter Freyther | 111614a | 2013-10-19 20:04:57 +0200 | [diff] [blame] | 123 | encoding.h \ |
Holger Hans Peter Freyther | d11290b | 2013-10-26 17:32:04 +0200 | [diff] [blame] | 124 | sba.h \ |
125 | rlc.h \ | ||||
Holger Hans Peter Freyther | be57081 | 2013-11-07 08:01:49 +0100 | [diff] [blame] | 126 | decoding.h \ |
Jacob Erlbeck | 0a0b5dc | 2015-03-29 13:53:01 +0200 | [diff] [blame] | 127 | llc.h \ |
Jacob Erlbeck | dfef28d | 2015-05-11 14:13:47 +0200 | [diff] [blame] | 128 | pcu_utils.h \ |
Jacob Erlbeck | 4f666bc | 2015-07-20 12:40:42 +0200 | [diff] [blame] | 129 | cxx_linuxlist.h \ |
Jacob Erlbeck | 409f980 | 2015-11-30 18:06:50 +0100 | [diff] [blame] | 130 | gprs_codel.h \ |
Max | bea2edb | 2019-03-06 17:04:59 +0100 | [diff] [blame] | 131 | coding_scheme.h \ |
Pau Espin Pedrol | b2653fe | 2020-03-26 15:14:01 +0100 | [diff] [blame] | 132 | egprs_rlc_compression.h \ |
133 | wireshark_compat.h | ||||
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 134 | |
Harald Welte | 3022a70 | 2012-07-22 22:58:22 +0200 | [diff] [blame] | 135 | osmo_pcu_SOURCES = pcu_main.cpp |
Andreas Eversberg | a23c7ee | 2012-12-18 10:47:28 +0100 | [diff] [blame] | 136 | |
137 | if ENABLE_SYSMODSP | ||||
Max | 186206c | 2018-01-15 16:43:22 +0100 | [diff] [blame] | 138 | AM_CPPFLAGS += -I$(srcdir)/osmo-bts-sysmo -I$(SYSMOBTS_INCDIR) |
Andreas Eversberg | a23c7ee | 2012-12-18 10:47:28 +0100 | [diff] [blame] | 139 | |
Max | de810f2 | 2016-05-13 10:27:35 +0200 | [diff] [blame] | 140 | noinst_HEADERS += \ |
141 | osmo-bts-sysmo/sysmo_l1_if.h \ | ||||
142 | osmo-bts-sysmo/femtobts.h | ||||
143 | |||||
144 | noinst_PROGRAMS += \ | ||||
145 | osmo-pcu-remote | ||||
146 | |||||
147 | osmo_pcu_SOURCES += \ | ||||
148 | osmo-bts-sysmo/sysmo_l1_if.c \ | ||||
149 | osmo-bts-sysmo/sysmo_l1_hw.c \ | ||||
150 | osmo-bts-sysmo/femtobts.c | ||||
151 | |||||
152 | osmo_pcu_remote_SOURCES = \ | ||||
153 | pcu_main.cpp \ | ||||
154 | osmo-bts-sysmo/sysmo_l1_if.c \ | ||||
155 | osmo-bts-sysmo/sysmo_l1_fwd.c \ | ||||
156 | osmo-bts-sysmo/femtobts.c | ||||
157 | |||||
158 | osmo_pcu_remote_LDADD = \ | ||||
159 | libgprs.la \ | ||||
160 | $(LIBOSMOGB_LIBS) \ | ||||
161 | $(LIBOSMOCORE_LIBS) \ | ||||
Pau Espin Pedrol | c0a250d | 2021-01-21 18:46:13 +0100 | [diff] [blame] | 162 | $(LIBOSMOCTRL_LIBS) \ |
Max | de810f2 | 2016-05-13 10:27:35 +0200 | [diff] [blame] | 163 | $(LIBOSMOGSM_LIBS) \ |
Vadim Yanitskiy | cc95424 | 2023-03-09 18:05:23 +0700 | [diff] [blame] | 164 | -lrt \ |
Vadim Yanitskiy | 8c88219 | 2022-08-08 01:38:36 +0700 | [diff] [blame] | 165 | $(NULL) |
Andreas Eversberg | a23c7ee | 2012-12-18 10:47:28 +0100 | [diff] [blame] | 166 | endif |
167 | |||||
Yves Godin | 660709d | 2016-05-19 11:08:03 +0200 | [diff] [blame] | 168 | if ENABLE_LC15BTS_PHY |
Harald Welte | c136be0 | 2017-06-11 11:36:33 +0200 | [diff] [blame] | 169 | AM_CPPFLAGS += $(LITECELL15_CFLAGS) -I$(srcdir)/osmo-bts-litecell15 |
Yves Godin | 660709d | 2016-05-19 11:08:03 +0200 | [diff] [blame] | 170 | |
Yves Godin | 660709d | 2016-05-19 11:08:03 +0200 | [diff] [blame] | 171 | noinst_HEADERS += \ |
172 | osmo-bts-litecell15/lc15_l1_if.h \ | ||||
173 | osmo-bts-litecell15/lc15bts.h | ||||
174 | |||||
175 | osmo_pcu_SOURCES += \ | ||||
176 | osmo-bts-litecell15/lc15_l1_if.c \ | ||||
177 | osmo-bts-litecell15/lc15_l1_hw.c \ | ||||
178 | osmo-bts-litecell15/lc15bts.c | ||||
179 | endif | ||||
180 | |||||
Jean-Francois Dionne | c1e4490 | 2017-06-05 14:44:57 -0400 | [diff] [blame] | 181 | if ENABLE_OC2GBTS_PHY |
182 | AM_CPPFLAGS += -I$(OC2G_INCDIR) -I$(srcdir)/osmo-bts-oc2g | ||||
183 | |||||
Jean-Francois Dionne | c1e4490 | 2017-06-05 14:44:57 -0400 | [diff] [blame] | 184 | noinst_HEADERS += \ |
185 | osmo-bts-oc2g/oc2g_l1_if.h \ | ||||
186 | osmo-bts-oc2g/oc2gbts.h | ||||
187 | |||||
188 | osmo_pcu_SOURCES += \ | ||||
189 | osmo-bts-oc2g/oc2g_l1_if.c \ | ||||
190 | osmo-bts-oc2g/oc2g_l1_hw.c \ | ||||
191 | osmo-bts-oc2g/oc2gbts.c | ||||
192 | endif | ||||
193 | |||||
Philipp Maier | 4bac398 | 2023-02-03 16:52:42 +0100 | [diff] [blame] | 194 | if ENABLE_ER_E1_CCU |
195 | AM_CPPFLAGS += -I$(srcdir)/ericsson-rbs | ||||
196 | |||||
197 | noinst_HEADERS += \ | ||||
198 | ericsson-rbs/er_ccu_if.h \ | ||||
199 | ericsson-rbs/er_ccu_descr.h | ||||
200 | |||||
201 | osmo_pcu_SOURCES += \ | ||||
202 | ericsson-rbs/er_ccu_l1_if.c \ | ||||
203 | ericsson-rbs/er_ccu_if.c | ||||
204 | endif | ||||
205 | |||||
Harald Welte | 3022a70 | 2012-07-22 22:58:22 +0200 | [diff] [blame] | 206 | osmo_pcu_LDADD = \ |
Ivan Kluchnikov | 5c2f9fb | 2012-02-05 02:27:17 +0400 | [diff] [blame] | 207 | libgprs.la \ |
Harald Welte | 477e79e | 2012-06-18 12:21:03 +0800 | [diff] [blame] | 208 | $(LIBOSMOGB_LIBS) \ |
Harald Welte | 57f6b02 | 2012-06-14 21:05:44 +0800 | [diff] [blame] | 209 | $(LIBOSMOCORE_LIBS) \ |
Pau Espin Pedrol | c0a250d | 2021-01-21 18:46:13 +0100 | [diff] [blame] | 210 | $(LIBOSMOCTRL_LIBS) \ |
Harald Welte | 57f6b02 | 2012-06-14 21:05:44 +0800 | [diff] [blame] | 211 | $(LIBOSMOGSM_LIBS) \ |
Philipp Maier | 4bac398 | 2023-02-03 16:52:42 +0100 | [diff] [blame] | 212 | $(LIBOSMOABIS_LIBS) \ |
213 | $(LIBOSMOTRAU_LIBS) \ | ||||
Vadim Yanitskiy | cc95424 | 2023-03-09 18:05:23 +0700 | [diff] [blame] | 214 | -lrt \ |
Vadim Yanitskiy | 8c88219 | 2022-08-08 01:38:36 +0700 | [diff] [blame] | 215 | $(NULL) |
Ivan Kluchnikov | 5c2f9fb | 2012-02-05 02:27:17 +0400 | [diff] [blame] | 216 | |
217 | #MOSTLYCLEANFILES += testSource testDestination |