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