blob: b0fca6f9c1c9cd371ae8a9dbc402ff178ff13d21 [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 \
39 $(NULL)
Holger Hans Peter Freyther66e71062015-05-25 01:21:50 +080040if HAVE_LIBGTP
41if HAVE_LIBCARES
Alexander Huemer7b6673f2016-09-09 00:43:15 +020042bin_PROGRAMS += \
43 osmo-sgsn \
44 osmo-gtphub \
45 $(NULL)
Holger Hans Peter Freyther66e71062015-05-25 01:21:50 +080046endif
Harald Welte03800ba2010-05-18 00:20:21 +020047endif
48
Alexander Huemer7b6673f2016-09-09 00:43:15 +020049osmo_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)
61osmo_gbproxy_LDADD = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020062 $(OSMO_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020063 -lrt \
64 $(NULL)
Harald Weltee2365962010-05-04 07:41:59 +020065
Alexander Huemer7b6673f2016-09-09 00:43:15 +020066osmo_sgsn_SOURCES = \
67 gprs_gmm.c \
68 gprs_sgsn.c \
69 gprs_sndcp.c \
Philippf1f34362016-08-26 17:00:21 +020070 gprs_sndcp_comp.c \
Philipp73f83d52016-09-02 13:38:01 +020071 gprs_sndcp_dcomp.c \
Philippf1f34362016-08-26 17:00:21 +020072 gprs_sndcp_pcomp.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020073 gprs_sndcp_vty.c \
Philipp22611be2016-08-10 12:08:03 +020074 gprs_sndcp_xid.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020075 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 Huemer7b6673f2016-09-09 00:43:15 +020086 sgsn_cdr.c \
87 sgsn_ares.c \
Philipp2c7f8372016-08-26 16:58:41 +020088 slhc.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020089 gprs_llc_xid.c \
Philippd8b45772016-09-02 13:32:38 +020090 v42bis.c \
Neels Hofmeyree6cfdc2017-07-13 02:03:50 +020091 gsup_client.c \
92 oap_client.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020093 $(NULL)
94osmo_sgsn_LDADD = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020095 $(OSMO_LIBS) \
96 $(LIBOSMOABIS_LIBS) \
97 $(LIBCARES_LIBS) \
Alexander Huemer5265bea2017-05-15 20:42:47 +020098 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020099 -lrt \
Philipp22611be2016-08-10 12:08:03 +0200100 -lm \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200101 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200102if BUILD_IU
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200103osmo_sgsn_LDADD += \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200104 $(LIBOSMOSIGTRAN_LIBS) \
105 $(LIBOSMORANAP_LIBS) \
106 $(LIBASN1C_LIBS) \
107 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200108endif
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +0200109
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200110osmo_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)
119osmo_gtphub_LDADD = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200120 $(LIBOSMOCORE_LIBS) \
121 $(LIBOSMOGSM_LIBS) \
122 $(LIBOSMOVTY_LIBS) \
123 $(LIBCARES_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +0200124 $(LIBGTP_LIBS) \
Philipp Maierefe85d32017-04-09 12:32:51 +0200125 $(LIBOSMOSIGTRAN_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200126 -lrt \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200127 $(NULL)