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 | |
Holger Hans Peter Freyther | 0b0f2c0 | 2012-07-23 10:47:33 +0200 | [diff] [blame] | 21 | AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGB_CFLAGS) $(LIBOSMOGSM_CFLAGS) |
Andreas Eversberg | a23c7ee | 2012-12-18 10:47:28 +0100 | [diff] [blame] | 22 | |
| 23 | if ENABLE_SYSMODSP |
| 24 | AM_CPPFLAGS += -DENABLE_SYSMODSP |
| 25 | endif |
| 26 | |
Harald Welte | d679009 | 2012-06-18 12:21:03 +0800 | [diff] [blame] | 27 | AM_CXXFLAGS = -Wall -ldl -pthread |
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 28 | |
| 29 | noinst_LTLIBRARIES = libgprs.la |
| 30 | |
| 31 | libgprs_la_SOURCES = \ |
Ivan Kluchnikov | 6043718 | 2012-05-24 22:07:15 +0400 | [diff] [blame] | 32 | gprs_debug.cpp \ |
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 33 | csn1.cpp \ |
Ivan Kluchnikov | 5c2f9fb | 2012-02-05 02:27:17 +0400 | [diff] [blame] | 34 | gsm_rlcmac.cpp \ |
Ivan Kluchnikov | 8ee6051 | 2012-03-05 19:24:57 +0400 | [diff] [blame] | 35 | gprs_bssgp_pcu.cpp \ |
| 36 | gprs_rlcmac.cpp \ |
Andreas Eversberg | 5dac2f0 | 2012-06-27 15:52:04 +0200 | [diff] [blame] | 37 | gprs_rlcmac_data.cpp \ |
| 38 | gprs_rlcmac_sched.cpp \ |
Andreas Eversberg | 050ace2 | 2013-03-16 16:22:02 +0100 | [diff] [blame] | 39 | gprs_rlcmac_meas.cpp \ |
Ivan Kluchnikov | 962f97b | 2012-04-30 17:51:23 +0400 | [diff] [blame] | 40 | gsm_timer.cpp \ |
Ivan Kluchnikov | ef7f28c | 2012-07-12 14:49:15 +0400 | [diff] [blame] | 41 | bitvector.cpp \ |
Andreas Eversberg | ebde64f | 2012-07-12 09:18:42 +0200 | [diff] [blame] | 42 | pcu_l1_if.cpp \ |
| 43 | pcu_vty.c |
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 44 | |
Andreas Eversberg | 0aed654 | 2012-06-23 10:33:16 +0200 | [diff] [blame] | 45 | if ENABLE_SYSMOBTS |
| 46 | libgprs_la_SOURCES += \ |
Ivan Kluchnikov | ef7f28c | 2012-07-12 14:49:15 +0400 | [diff] [blame] | 47 | sysmo_sock.cpp |
Andreas Eversberg | 0aed654 | 2012-06-23 10:33:16 +0200 | [diff] [blame] | 48 | else |
| 49 | libgprs_la_SOURCES += \ |
Ivan Kluchnikov | ef7f28c | 2012-07-12 14:49:15 +0400 | [diff] [blame] | 50 | openbts_sock.cpp |
Andreas Eversberg | 0aed654 | 2012-06-23 10:33:16 +0200 | [diff] [blame] | 51 | endif |
| 52 | |
Harald Welte | da62859 | 2012-07-22 22:59:08 +0200 | [diff] [blame] | 53 | bin_PROGRAMS = \ |
Harald Welte | 3022a70 | 2012-07-22 22:58:22 +0200 | [diff] [blame] | 54 | osmo-pcu |
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 55 | |
Holger Hans Peter Freyther | e13298d | 2013-07-28 16:45:54 +0200 | [diff] [blame] | 56 | noinst_PROGRAMS = |
| 57 | |
Andreas Eversberg | a23c7ee | 2012-12-18 10:47:28 +0100 | [diff] [blame] | 58 | if ENABLE_SYSMODSP |
| 59 | noinst_PROGRAMS += \ |
| 60 | osmo-pcu-remote |
| 61 | endif |
| 62 | |
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 63 | noinst_HEADERS = \ |
Ivan Kluchnikov | 6043718 | 2012-05-24 22:07:15 +0400 | [diff] [blame] | 64 | gprs_debug.h \ |
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 65 | csn1.h \ |
Ivan Kluchnikov | 5c2f9fb | 2012-02-05 02:27:17 +0400 | [diff] [blame] | 66 | gsm_rlcmac.h \ |
Ivan Kluchnikov | 8ee6051 | 2012-03-05 19:24:57 +0400 | [diff] [blame] | 67 | gprs_bssgp_pcu.h \ |
| 68 | gprs_rlcmac.h \ |
Ivan Kluchnikov | ef7f28c | 2012-07-12 14:49:15 +0400 | [diff] [blame] | 69 | pcuif_proto.h \ |
Ivan Kluchnikov | ff447cd | 2012-04-12 15:16:23 +0400 | [diff] [blame] | 70 | pcu_l1_if.h \ |
Ivan Kluchnikov | 962f97b | 2012-04-30 17:51:23 +0400 | [diff] [blame] | 71 | gsm_timer.h \ |
Andreas Eversberg | ebde64f | 2012-07-12 09:18:42 +0200 | [diff] [blame] | 72 | bitvector.h \ |
Andreas Eversberg | a23c7ee | 2012-12-18 10:47:28 +0100 | [diff] [blame] | 73 | pcu_vty.h \ |
| 74 | sysmo_l1_if.h \ |
| 75 | femtobts.h |
Ivan Kluchnikov | 487a141 | 2011-12-21 13:17:53 +0300 | [diff] [blame] | 76 | |
Harald Welte | 3022a70 | 2012-07-22 22:58:22 +0200 | [diff] [blame] | 77 | osmo_pcu_SOURCES = pcu_main.cpp |
Andreas Eversberg | a23c7ee | 2012-12-18 10:47:28 +0100 | [diff] [blame] | 78 | |
| 79 | if ENABLE_SYSMODSP |
| 80 | osmo_pcu_SOURCES += sysmo_l1_if.c \ |
| 81 | sysmo_l1_hw.c \ |
| 82 | femtobts.c |
| 83 | |
| 84 | osmo_pcu_remote_SOURCES = pcu_main.cpp \ |
| 85 | sysmo_l1_if.c \ |
| 86 | sysmo_l1_fwd.c \ |
| 87 | femtobts.c |
| 88 | endif |
| 89 | |
Harald Welte | 3022a70 | 2012-07-22 22:58:22 +0200 | [diff] [blame] | 90 | osmo_pcu_LDADD = \ |
Ivan Kluchnikov | 5c2f9fb | 2012-02-05 02:27:17 +0400 | [diff] [blame] | 91 | libgprs.la \ |
Harald Welte | 477e79e | 2012-06-18 12:21:03 +0800 | [diff] [blame] | 92 | $(LIBOSMOGB_LIBS) \ |
Harald Welte | 57f6b02 | 2012-06-14 21:05:44 +0800 | [diff] [blame] | 93 | $(LIBOSMOCORE_LIBS) \ |
| 94 | $(LIBOSMOGSM_LIBS) \ |
Ivan Kluchnikov | 5c2f9fb | 2012-02-05 02:27:17 +0400 | [diff] [blame] | 95 | $(COMMON_LA) |
| 96 | |
Andreas Eversberg | a23c7ee | 2012-12-18 10:47:28 +0100 | [diff] [blame] | 97 | if ENABLE_SYSMODSP |
| 98 | osmo_pcu_remote_LDADD = \ |
| 99 | libgprs.la \ |
| 100 | $(LIBOSMOGB_LIBS) \ |
| 101 | $(LIBOSMOCORE_LIBS) \ |
| 102 | $(LIBOSMOGSM_LIBS) \ |
| 103 | $(COMMON_LA) |
| 104 | endif |
| 105 | |
Ivan Kluchnikov | 5c2f9fb | 2012-02-05 02:27:17 +0400 | [diff] [blame] | 106 | #MOSTLYCLEANFILES += testSource testDestination |