blob: 3b5839997ec328e78d8db695a9b354a49addc096 [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 \
90 oap.c \
91 oap_messages.c \
92 gprs_llc_xid.c \
93 $(NULL)
94osmo_sgsn_LDADD = \
95 $(top_builddir)/src/libcommon/libcommon.a \
96 $(OSMO_LIBS) \
97 $(LIBOSMOABIS_LIBS) \
98 $(LIBCARES_LIBS) \
99 $(LIBCRYPTO_LIBS) \
100 -lrt \
101 -lgtp \
Philipp22611be2016-08-10 12:08:03 +0200102 -lm \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200103 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200104if BUILD_IU
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200105osmo_sgsn_LDADD += \
106 $(top_builddir)/src/libiu/libiu.a \
107 $(LIBOSMOSIGTRAN_LIBS) \
108 $(LIBOSMORANAP_LIBS) \
109 $(LIBASN1C_LIBS) \
110 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200111endif
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +0200112
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200113osmo_gtphub_SOURCES = \
114 gtphub_main.c \
115 gtphub.c \
116 gtphub_sock.c \
117 gtphub_ares.c \
118 gtphub_vty.c \
119 sgsn_ares.c \
120 gprs_utils.c \
121 $(NULL)
122osmo_gtphub_LDADD = \
123 $(top_builddir)/src/libcommon/libcommon.a \
124 $(LIBOSMOCORE_LIBS) \
125 $(LIBOSMOGSM_LIBS) \
126 $(LIBOSMOVTY_LIBS) \
127 $(LIBCARES_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +0200128 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200129 -lrt \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200130 $(NULL)