blob: 06c12d7d99653abef400139b2d139fddcd67d58c [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) \
18 $(LIBCRYPTO_CFLAGS) \
19 $(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) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +020031 $(LIBOSMOABIS_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020032 $(LIBOSMOGSM_LIBS) \
33 $(LIBOSMOVTY_LIBS) \
34 $(LIBOSMOCTRL_LIBS) \
35 $(LIBOSMOGB_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +020036 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020037 $(NULL)
Harald Weltee2365962010-05-04 07:41:59 +020038
Alexander Huemer7b6673f2016-09-09 00:43:15 +020039bin_PROGRAMS = \
40 osmo-gbproxy \
41 $(NULL)
Holger Hans Peter Freyther66e71062015-05-25 01:21:50 +080042if HAVE_LIBGTP
43if HAVE_LIBCARES
Alexander Huemer7b6673f2016-09-09 00:43:15 +020044bin_PROGRAMS += \
45 osmo-sgsn \
46 osmo-gtphub \
47 $(NULL)
Holger Hans Peter Freyther66e71062015-05-25 01:21:50 +080048endif
Harald Welte03800ba2010-05-18 00:20:21 +020049endif
50
Alexander Huemer7b6673f2016-09-09 00:43:15 +020051osmo_gbproxy_SOURCES = \
52 gb_proxy.c \
53 gb_proxy_main.c \
54 gb_proxy_vty.c \
55 gb_proxy_patch.c \
56 gb_proxy_tlli.c \
57 gb_proxy_peer.c \
58 gprs_gb_parse.c \
59 gprs_llc_parse.c \
60 crc24.c \
61 gprs_utils.c \
62 $(NULL)
63osmo_gbproxy_LDADD = \
64 $(top_builddir)/src/libcommon/libcommon.a \
65 $(OSMO_LIBS) \
66 $(LIBCRYPTO_LIBS) \
67 -lrt \
68 $(NULL)
Harald Weltee2365962010-05-04 07:41:59 +020069
Alexander Huemer7b6673f2016-09-09 00:43:15 +020070osmo_sgsn_SOURCES = \
71 gprs_gmm.c \
72 gprs_sgsn.c \
73 gprs_sndcp.c \
74 gprs_sndcp_vty.c \
Philipp22611be2016-08-10 12:08:03 +020075 gprs_sndcp_xid.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020076 sgsn_main.c \
77 sgsn_vty.c \
78 sgsn_libgtp.c \
79 gprs_llc.c \
80 gprs_llc_parse.c \
81 gprs_llc_vty.c \
82 crc24.c \
83 sgsn_ctrl.c \
84 sgsn_auth.c \
85 gprs_subscriber.c \
86 gprs_utils.c \
87 gprs_gsup_client.c \
88 sgsn_cdr.c \
89 sgsn_ares.c \
Philipp2c7f8372016-08-26 16:58:41 +020090 slhc.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020091 oap.c \
92 oap_messages.c \
93 gprs_llc_xid.c \
94 $(NULL)
95osmo_sgsn_LDADD = \
96 $(top_builddir)/src/libcommon/libcommon.a \
97 $(OSMO_LIBS) \
98 $(LIBOSMOABIS_LIBS) \
99 $(LIBCARES_LIBS) \
100 $(LIBCRYPTO_LIBS) \
101 -lrt \
102 -lgtp \
Philipp22611be2016-08-10 12:08:03 +0200103 -lm \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200104 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200105if BUILD_IU
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200106osmo_sgsn_LDADD += \
107 $(top_builddir)/src/libiu/libiu.a \
108 $(LIBOSMOSIGTRAN_LIBS) \
109 $(LIBOSMORANAP_LIBS) \
110 $(LIBASN1C_LIBS) \
111 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200112endif
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +0200113
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200114osmo_gtphub_SOURCES = \
115 gtphub_main.c \
116 gtphub.c \
117 gtphub_sock.c \
118 gtphub_ares.c \
119 gtphub_vty.c \
120 sgsn_ares.c \
121 gprs_utils.c \
122 $(NULL)
123osmo_gtphub_LDADD = \
124 $(top_builddir)/src/libcommon/libcommon.a \
125 $(LIBOSMOCORE_LIBS) \
126 $(LIBOSMOGSM_LIBS) \
127 $(LIBOSMOVTY_LIBS) \
128 $(LIBCARES_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +0200129 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200130 -lrt \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200131 $(NULL)