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