blob: 4c7f730a413beb933e7a0114af46a198fe879a06 [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 \
47 gb_proxy_patch.c \
48 gb_proxy_tlli.c \
49 gb_proxy_peer.c \
50 gprs_gb_parse.c \
51 gprs_llc_parse.c \
52 crc24.c \
53 gprs_utils.c \
54 $(NULL)
55osmo_gbproxy_LDADD = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020056 $(OSMO_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020057 -lrt \
58 $(NULL)
Harald Weltee2365962010-05-04 07:41:59 +020059
Alexander Huemer7b6673f2016-09-09 00:43:15 +020060osmo_sgsn_SOURCES = \
61 gprs_gmm.c \
62 gprs_sgsn.c \
63 gprs_sndcp.c \
Philippf1f34362016-08-26 17:00:21 +020064 gprs_sndcp_comp.c \
Philipp73f83d52016-09-02 13:38:01 +020065 gprs_sndcp_dcomp.c \
Philippf1f34362016-08-26 17:00:21 +020066 gprs_sndcp_pcomp.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020067 gprs_sndcp_vty.c \
Philipp22611be2016-08-10 12:08:03 +020068 gprs_sndcp_xid.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020069 sgsn_main.c \
70 sgsn_vty.c \
71 sgsn_libgtp.c \
72 gprs_llc.c \
73 gprs_llc_parse.c \
74 gprs_llc_vty.c \
75 crc24.c \
76 sgsn_ctrl.c \
77 sgsn_auth.c \
78 gprs_subscriber.c \
79 gprs_utils.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020080 sgsn_cdr.c \
81 sgsn_ares.c \
Philipp2c7f8372016-08-26 16:58:41 +020082 slhc.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020083 gprs_llc_xid.c \
Philippd8b45772016-09-02 13:32:38 +020084 v42bis.c \
Neels Hofmeyree6cfdc2017-07-13 02:03:50 +020085 gsup_client.c \
86 oap_client.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020087 $(NULL)
88osmo_sgsn_LDADD = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020089 $(OSMO_LIBS) \
90 $(LIBOSMOABIS_LIBS) \
91 $(LIBCARES_LIBS) \
Alexander Huemer5265bea2017-05-15 20:42:47 +020092 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020093 -lrt \
Philipp22611be2016-08-10 12:08:03 +020094 -lm \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020095 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +020096if BUILD_IU
Alexander Huemer7b6673f2016-09-09 00:43:15 +020097osmo_sgsn_LDADD += \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020098 $(LIBOSMOSIGTRAN_LIBS) \
99 $(LIBOSMORANAP_LIBS) \
100 $(LIBASN1C_LIBS) \
101 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200102endif
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +0200103
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200104osmo_gtphub_SOURCES = \
105 gtphub_main.c \
106 gtphub.c \
107 gtphub_sock.c \
108 gtphub_ares.c \
109 gtphub_vty.c \
110 sgsn_ares.c \
111 gprs_utils.c \
112 $(NULL)
113osmo_gtphub_LDADD = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200114 $(LIBOSMOCORE_LIBS) \
115 $(LIBOSMOGSM_LIBS) \
116 $(LIBOSMOVTY_LIBS) \
117 $(LIBCARES_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +0200118 $(LIBGTP_LIBS) \
Philipp Maierefe85d32017-04-09 12:32:51 +0200119 $(LIBOSMOSIGTRAN_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200120 -lrt \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200121 $(NULL)