blob: ba5dfd61778affeb5a7c19162dbc3f128f807746 [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) \
Harald Weltef4b2c4c2018-09-16 07:53:41 +020016 $(LIBOSMOGSUPCLIENT_CFLAGS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020017 $(COVERAGE_CFLAGS) \
18 $(LIBCARES_CFLAGS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020019 $(LIBGTP_CFLAGS) \
20 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +020021if BUILD_IU
Alexander Huemer7b6673f2016-09-09 00:43:15 +020022AM_CFLAGS += \
23 $(LIBASN1C_CFLAGS) \
24 $(LIBOSMOSIGTRAN_CFLAGS) \
25 $(LIBOSMORANAP_CFLAGS) \
26 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +020027endif
28
Alexander Huemer7b6673f2016-09-09 00:43:15 +020029OSMO_LIBS = \
30 $(LIBOSMOCORE_LIBS) \
31 $(LIBOSMOGSM_LIBS) \
32 $(LIBOSMOVTY_LIBS) \
33 $(LIBOSMOCTRL_LIBS) \
34 $(LIBOSMOGB_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +020035 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020036 $(NULL)
Harald Weltee2365962010-05-04 07:41:59 +020037
Alexander Huemer7b6673f2016-09-09 00:43:15 +020038bin_PROGRAMS = \
39 osmo-gbproxy \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020040 osmo-sgsn \
41 osmo-gtphub \
42 $(NULL)
Harald Welte03800ba2010-05-18 00:20:21 +020043
Alexander Huemer7b6673f2016-09-09 00:43:15 +020044osmo_gbproxy_SOURCES = \
45 gb_proxy.c \
46 gb_proxy_main.c \
47 gb_proxy_vty.c \
Daniel Willmannc977afa2018-06-01 07:21:20 +020048 gb_proxy_ctrl.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020049 gb_proxy_patch.c \
50 gb_proxy_tlli.c \
51 gb_proxy_peer.c \
52 gprs_gb_parse.c \
53 gprs_llc_parse.c \
54 crc24.c \
55 gprs_utils.c \
56 $(NULL)
57osmo_gbproxy_LDADD = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020058 $(OSMO_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020059 -lrt \
60 $(NULL)
Harald Weltee2365962010-05-04 07:41:59 +020061
Alexander Huemer7b6673f2016-09-09 00:43:15 +020062osmo_sgsn_SOURCES = \
Alexander Couzensf7198d72018-05-22 18:29:14 +020063 gprs_gmm_attach.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020064 gprs_gmm.c \
65 gprs_sgsn.c \
66 gprs_sndcp.c \
Philippf1f34362016-08-26 17:00:21 +020067 gprs_sndcp_comp.c \
Philipp73f83d52016-09-02 13:38:01 +020068 gprs_sndcp_dcomp.c \
Philippf1f34362016-08-26 17:00:21 +020069 gprs_sndcp_pcomp.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020070 gprs_sndcp_vty.c \
Philipp22611be2016-08-10 12:08:03 +020071 gprs_sndcp_xid.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020072 sgsn_main.c \
73 sgsn_vty.c \
74 sgsn_libgtp.c \
75 gprs_llc.c \
76 gprs_llc_parse.c \
77 gprs_llc_vty.c \
78 crc24.c \
79 sgsn_ctrl.c \
80 sgsn_auth.c \
81 gprs_subscriber.c \
82 gprs_utils.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020083 sgsn_cdr.c \
84 sgsn_ares.c \
Philipp2c7f8372016-08-26 16:58:41 +020085 slhc.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020086 gprs_llc_xid.c \
Philippd8b45772016-09-02 13:32:38 +020087 v42bis.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) \
Harald Weltef4b2c4c2018-09-16 07:53:41 +020092 $(LIBOSMOGSUPCLIENT_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020093 $(LIBCARES_LIBS) \
Alexander Huemer5265bea2017-05-15 20:42:47 +020094 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020095 -lrt \
Philipp22611be2016-08-10 12:08:03 +020096 -lm \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020097 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +020098if BUILD_IU
Alexander Huemer7b6673f2016-09-09 00:43:15 +020099osmo_sgsn_LDADD += \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200100 $(LIBOSMOSIGTRAN_LIBS) \
101 $(LIBOSMORANAP_LIBS) \
102 $(LIBASN1C_LIBS) \
103 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200104endif
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +0200105
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200106osmo_gtphub_SOURCES = \
107 gtphub_main.c \
108 gtphub.c \
109 gtphub_sock.c \
110 gtphub_ares.c \
111 gtphub_vty.c \
112 sgsn_ares.c \
113 gprs_utils.c \
114 $(NULL)
115osmo_gtphub_LDADD = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200116 $(LIBOSMOCORE_LIBS) \
117 $(LIBOSMOGSM_LIBS) \
118 $(LIBOSMOVTY_LIBS) \
119 $(LIBCARES_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +0200120 $(LIBGTP_LIBS) \
Philipp Maierefe85d32017-04-09 12:32:51 +0200121 $(LIBOSMOSIGTRAN_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200122 -lrt \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200123 $(NULL)