Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 1 | AM_CPPFLAGS = \ |
| 2 | $(all_includes) \ |
| 3 | -I$(top_srcdir)/include \ |
| 4 | -I$(top_builddir) \ |
| 5 | $(NULL) |
| 6 | |
| 7 | AM_CFLAGS = \ |
| 8 | -Wall \ |
| 9 | -fno-strict-aliasing \ |
| 10 | $(LIBOSMOCORE_CFLAGS) \ |
| 11 | $(LIBOSMOGSM_CFLAGS) \ |
| 12 | $(LIBOSMOVTY_CFLAGS) \ |
| 13 | $(LIBOSMOCTRL_CFLAGS) \ |
| 14 | $(LIBOSMOABIS_CFLAGS) \ |
| 15 | $(LIBOSMOGB_CFLAGS) \ |
| 16 | $(COVERAGE_CFLAGS) \ |
| 17 | $(LIBCARES_CFLAGS) \ |
| 18 | $(LIBCRYPTO_CFLAGS) \ |
| 19 | $(LIBGTP_CFLAGS) \ |
| 20 | $(NULL) |
Daniel Willmann | 6292c8d | 2016-05-21 17:35:57 +0200 | [diff] [blame] | 21 | if BUILD_IU |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 22 | AM_CFLAGS += \ |
| 23 | $(LIBASN1C_CFLAGS) \ |
| 24 | $(LIBOSMOSIGTRAN_CFLAGS) \ |
| 25 | $(LIBOSMORANAP_CFLAGS) \ |
| 26 | $(NULL) |
Daniel Willmann | 6292c8d | 2016-05-21 17:35:57 +0200 | [diff] [blame] | 27 | endif |
| 28 | |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 29 | OSMO_LIBS = \ |
| 30 | $(LIBOSMOCORE_LIBS) \ |
Alexander Huemer | c2f2ad8 | 2016-09-15 16:02:18 +0200 | [diff] [blame] | 31 | $(LIBOSMOABIS_LIBS) \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 32 | $(LIBOSMOGSM_LIBS) \ |
| 33 | $(LIBOSMOVTY_LIBS) \ |
| 34 | $(LIBOSMOCTRL_LIBS) \ |
| 35 | $(LIBOSMOGB_LIBS) \ |
Alexander Huemer | c2f2ad8 | 2016-09-15 16:02:18 +0200 | [diff] [blame] | 36 | $(LIBGTP_LIBS) \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 37 | $(NULL) |
Harald Welte | e236596 | 2010-05-04 07:41:59 +0200 | [diff] [blame] | 38 | |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 39 | bin_PROGRAMS = \ |
| 40 | osmo-gbproxy \ |
| 41 | $(NULL) |
Holger Hans Peter Freyther | 66e7106 | 2015-05-25 01:21:50 +0800 | [diff] [blame] | 42 | if HAVE_LIBGTP |
| 43 | if HAVE_LIBCARES |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 44 | bin_PROGRAMS += \ |
| 45 | osmo-sgsn \ |
| 46 | osmo-gtphub \ |
| 47 | $(NULL) |
Holger Hans Peter Freyther | 66e7106 | 2015-05-25 01:21:50 +0800 | [diff] [blame] | 48 | endif |
Harald Welte | 03800ba | 2010-05-18 00:20:21 +0200 | [diff] [blame] | 49 | endif |
| 50 | |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 51 | osmo_gbproxy_SOURCES = \ |
| 52 | gb_proxy.c \ |
| 53 | gb_proxy_main.c \ |
| 54 | gb_proxy_vty.c \ |
| 55 | gb_proxy_patch.c \ |
| 56 | gb_proxy_tlli.c \ |
| 57 | gb_proxy_peer.c \ |
| 58 | gprs_gb_parse.c \ |
| 59 | gprs_llc_parse.c \ |
| 60 | crc24.c \ |
| 61 | gprs_utils.c \ |
| 62 | $(NULL) |
| 63 | osmo_gbproxy_LDADD = \ |
| 64 | $(top_builddir)/src/libcommon/libcommon.a \ |
| 65 | $(OSMO_LIBS) \ |
| 66 | $(LIBCRYPTO_LIBS) \ |
| 67 | -lrt \ |
| 68 | $(NULL) |
Harald Welte | e236596 | 2010-05-04 07:41:59 +0200 | [diff] [blame] | 69 | |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 70 | osmo_sgsn_SOURCES = \ |
| 71 | gprs_gmm.c \ |
| 72 | gprs_sgsn.c \ |
| 73 | gprs_sndcp.c \ |
Philipp | f1f3436 | 2016-08-26 17:00:21 +0200 | [diff] [blame] | 74 | gprs_sndcp_comp.c \ |
Philipp | 73f83d5 | 2016-09-02 13:38:01 +0200 | [diff] [blame] | 75 | gprs_sndcp_dcomp.c \ |
Philipp | f1f3436 | 2016-08-26 17:00:21 +0200 | [diff] [blame] | 76 | gprs_sndcp_pcomp.c \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 77 | gprs_sndcp_vty.c \ |
Philipp | 22611be | 2016-08-10 12:08:03 +0200 | [diff] [blame] | 78 | gprs_sndcp_xid.c \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 79 | sgsn_main.c \ |
| 80 | sgsn_vty.c \ |
| 81 | sgsn_libgtp.c \ |
| 82 | gprs_llc.c \ |
| 83 | gprs_llc_parse.c \ |
| 84 | gprs_llc_vty.c \ |
| 85 | crc24.c \ |
| 86 | sgsn_ctrl.c \ |
| 87 | sgsn_auth.c \ |
| 88 | gprs_subscriber.c \ |
| 89 | gprs_utils.c \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 90 | sgsn_cdr.c \ |
| 91 | sgsn_ares.c \ |
Philipp | 2c7f837 | 2016-08-26 16:58:41 +0200 | [diff] [blame] | 92 | slhc.c \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 93 | gprs_llc_xid.c \ |
Philipp | d8b4577 | 2016-09-02 13:32:38 +0200 | [diff] [blame] | 94 | v42bis.c \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 95 | $(NULL) |
| 96 | osmo_sgsn_LDADD = \ |
| 97 | $(top_builddir)/src/libcommon/libcommon.a \ |
| 98 | $(OSMO_LIBS) \ |
| 99 | $(LIBOSMOABIS_LIBS) \ |
| 100 | $(LIBCARES_LIBS) \ |
| 101 | $(LIBCRYPTO_LIBS) \ |
| 102 | -lrt \ |
| 103 | -lgtp \ |
Philipp | 22611be | 2016-08-10 12:08:03 +0200 | [diff] [blame] | 104 | -lm \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 105 | $(NULL) |
Daniel Willmann | 6292c8d | 2016-05-21 17:35:57 +0200 | [diff] [blame] | 106 | if BUILD_IU |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 107 | osmo_sgsn_LDADD += \ |
| 108 | $(top_builddir)/src/libiu/libiu.a \ |
| 109 | $(LIBOSMOSIGTRAN_LIBS) \ |
| 110 | $(LIBOSMORANAP_LIBS) \ |
| 111 | $(LIBASN1C_LIBS) \ |
| 112 | $(NULL) |
Daniel Willmann | 6292c8d | 2016-05-21 17:35:57 +0200 | [diff] [blame] | 113 | endif |
Neels Hofmeyr | c8a614d | 2015-09-24 17:32:30 +0200 | [diff] [blame] | 114 | |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 115 | osmo_gtphub_SOURCES = \ |
| 116 | gtphub_main.c \ |
| 117 | gtphub.c \ |
| 118 | gtphub_sock.c \ |
| 119 | gtphub_ares.c \ |
| 120 | gtphub_vty.c \ |
| 121 | sgsn_ares.c \ |
| 122 | gprs_utils.c \ |
| 123 | $(NULL) |
| 124 | osmo_gtphub_LDADD = \ |
| 125 | $(top_builddir)/src/libcommon/libcommon.a \ |
| 126 | $(LIBOSMOCORE_LIBS) \ |
| 127 | $(LIBOSMOGSM_LIBS) \ |
| 128 | $(LIBOSMOVTY_LIBS) \ |
| 129 | $(LIBCARES_LIBS) \ |
Alexander Huemer | c2f2ad8 | 2016-09-15 16:02:18 +0200 | [diff] [blame] | 130 | $(LIBGTP_LIBS) \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 131 | -lrt \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 132 | $(NULL) |