blob: cff17dde5d50d8e3a1d658e84a98bd383365b62e [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 \
Philippf1f34362016-08-26 17:00:21 +020074 gprs_sndcp_comp.c \
Philipp73f83d52016-09-02 13:38:01 +020075 gprs_sndcp_dcomp.c \
Philippf1f34362016-08-26 17:00:21 +020076 gprs_sndcp_pcomp.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020077 gprs_sndcp_vty.c \
Philipp22611be2016-08-10 12:08:03 +020078 gprs_sndcp_xid.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020079 sgsn_main.c \
80 sgsn_vty.c \
81 sgsn_libgtp.c \
82 gprs_llc.c \
83 gprs_llc_parse.c \
84 gprs_llc_vty.c \
85 crc24.c \
86 sgsn_ctrl.c \
87 sgsn_auth.c \
88 gprs_subscriber.c \
89 gprs_utils.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020090 sgsn_cdr.c \
91 sgsn_ares.c \
Philipp2c7f8372016-08-26 16:58:41 +020092 slhc.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020093 gprs_llc_xid.c \
Philippd8b45772016-09-02 13:32:38 +020094 v42bis.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020095 $(NULL)
96osmo_sgsn_LDADD = \
97 $(top_builddir)/src/libcommon/libcommon.a \
98 $(OSMO_LIBS) \
99 $(LIBOSMOABIS_LIBS) \
100 $(LIBCARES_LIBS) \
101 $(LIBCRYPTO_LIBS) \
102 -lrt \
103 -lgtp \
Philipp22611be2016-08-10 12:08:03 +0200104 -lm \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200105 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200106if BUILD_IU
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200107osmo_sgsn_LDADD += \
108 $(top_builddir)/src/libiu/libiu.a \
109 $(LIBOSMOSIGTRAN_LIBS) \
110 $(LIBOSMORANAP_LIBS) \
111 $(LIBASN1C_LIBS) \
112 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200113endif
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +0200114
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200115osmo_gtphub_SOURCES = \
116 gtphub_main.c \
117 gtphub.c \
118 gtphub_sock.c \
119 gtphub_ares.c \
120 gtphub_vty.c \
121 sgsn_ares.c \
122 gprs_utils.c \
123 $(NULL)
124osmo_gtphub_LDADD = \
125 $(top_builddir)/src/libcommon/libcommon.a \
126 $(LIBOSMOCORE_LIBS) \
127 $(LIBOSMOGSM_LIBS) \
128 $(LIBOSMOVTY_LIBS) \
129 $(LIBCARES_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +0200130 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200131 -lrt \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200132 $(NULL)