blob: 0f7c5faadfa3a4a26338c2b5504b5fb384011d1e [file] [log] [blame]
Alexander Huemer7b6673f2016-09-09 00:43:15 +02001AM_CPPFLAGS = \
2 $(all_includes) \
3 -I$(top_srcdir)/include \
4 -I$(top_builddir) \
5 $(NULL)
6
7AM_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 Huemer7b6673f2016-09-09 00:43:15 +020018 $(LIBGTP_CFLAGS) \
19 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +020020if BUILD_IU
Alexander Huemer7b6673f2016-09-09 00:43:15 +020021AM_CFLAGS += \
22 $(LIBASN1C_CFLAGS) \
23 $(LIBOSMOSIGTRAN_CFLAGS) \
24 $(LIBOSMORANAP_CFLAGS) \
25 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +020026endif
27
Alexander Huemer7b6673f2016-09-09 00:43:15 +020028OSMO_LIBS = \
29 $(LIBOSMOCORE_LIBS) \
30 $(LIBOSMOGSM_LIBS) \
31 $(LIBOSMOVTY_LIBS) \
32 $(LIBOSMOCTRL_LIBS) \
33 $(LIBOSMOGB_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +020034 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020035 $(NULL)
Harald Weltee2365962010-05-04 07:41:59 +020036
Alexander Huemer7b6673f2016-09-09 00:43:15 +020037bin_PROGRAMS = \
38 osmo-gbproxy \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020039 osmo-sgsn \
40 osmo-gtphub \
41 $(NULL)
Harald Welte03800ba2010-05-18 00:20:21 +020042
Alexander Huemer7b6673f2016-09-09 00:43:15 +020043osmo_gbproxy_SOURCES = \
44 gb_proxy.c \
45 gb_proxy_main.c \
46 gb_proxy_vty.c \
Daniel Willmannc977afa2018-06-01 07:21:20 +020047 gb_proxy_ctrl.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020048 gb_proxy_patch.c \
49 gb_proxy_tlli.c \
50 gb_proxy_peer.c \
51 gprs_gb_parse.c \
52 gprs_llc_parse.c \
53 crc24.c \
54 gprs_utils.c \
55 $(NULL)
56osmo_gbproxy_LDADD = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020057 $(OSMO_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020058 -lrt \
59 $(NULL)
Harald Weltee2365962010-05-04 07:41:59 +020060
Alexander Huemer7b6673f2016-09-09 00:43:15 +020061osmo_sgsn_SOURCES = \
Alexander Couzensf7198d72018-05-22 18:29:14 +020062 gprs_gmm_attach.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020063 gprs_gmm.c \
64 gprs_sgsn.c \
65 gprs_sndcp.c \
Philippf1f34362016-08-26 17:00:21 +020066 gprs_sndcp_comp.c \
Philipp73f83d52016-09-02 13:38:01 +020067 gprs_sndcp_dcomp.c \
Philippf1f34362016-08-26 17:00:21 +020068 gprs_sndcp_pcomp.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020069 gprs_sndcp_vty.c \
Philipp22611be2016-08-10 12:08:03 +020070 gprs_sndcp_xid.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020071 sgsn_main.c \
72 sgsn_vty.c \
73 sgsn_libgtp.c \
74 gprs_llc.c \
75 gprs_llc_parse.c \
76 gprs_llc_vty.c \
77 crc24.c \
78 sgsn_ctrl.c \
79 sgsn_auth.c \
80 gprs_subscriber.c \
81 gprs_utils.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020082 sgsn_cdr.c \
83 sgsn_ares.c \
Philipp2c7f8372016-08-26 16:58:41 +020084 slhc.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020085 gprs_llc_xid.c \
Philippd8b45772016-09-02 13:32:38 +020086 v42bis.c \
Neels Hofmeyree6cfdc2017-07-13 02:03:50 +020087 gsup_client.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020088 $(NULL)
89osmo_sgsn_LDADD = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020090 $(OSMO_LIBS) \
91 $(LIBOSMOABIS_LIBS) \
92 $(LIBCARES_LIBS) \
Alexander Huemer5265bea2017-05-15 20:42:47 +020093 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020094 -lrt \
Philipp22611be2016-08-10 12:08:03 +020095 -lm \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020096 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +020097if BUILD_IU
Alexander Huemer7b6673f2016-09-09 00:43:15 +020098osmo_sgsn_LDADD += \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020099 $(LIBOSMOSIGTRAN_LIBS) \
100 $(LIBOSMORANAP_LIBS) \
101 $(LIBASN1C_LIBS) \
102 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200103endif
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +0200104
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200105osmo_gtphub_SOURCES = \
106 gtphub_main.c \
107 gtphub.c \
108 gtphub_sock.c \
109 gtphub_ares.c \
110 gtphub_vty.c \
111 sgsn_ares.c \
112 gprs_utils.c \
113 $(NULL)
114osmo_gtphub_LDADD = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200115 $(LIBOSMOCORE_LIBS) \
116 $(LIBOSMOGSM_LIBS) \
117 $(LIBOSMOVTY_LIBS) \
118 $(LIBCARES_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +0200119 $(LIBGTP_LIBS) \
Philipp Maierefe85d32017-04-09 12:32:51 +0200120 $(LIBOSMOSIGTRAN_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200121 -lrt \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200122 $(NULL)