blob: 59136bd323c908de8042b7f491a6ed6c689cfd95 [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 \
75 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 \
86 gprs_gsup_client.c \
87 sgsn_cdr.c \
88 sgsn_ares.c \
89 oap.c \
90 oap_messages.c \
91 gprs_llc_xid.c \
92 $(NULL)
93osmo_sgsn_LDADD = \
94 $(top_builddir)/src/libcommon/libcommon.a \
95 $(OSMO_LIBS) \
96 $(LIBOSMOABIS_LIBS) \
97 $(LIBCARES_LIBS) \
98 $(LIBCRYPTO_LIBS) \
99 -lrt \
100 -lgtp \
101 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200102if BUILD_IU
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200103osmo_sgsn_LDADD += \
104 $(top_builddir)/src/libiu/libiu.a \
105 $(LIBOSMOSIGTRAN_LIBS) \
106 $(LIBOSMORANAP_LIBS) \
107 $(LIBASN1C_LIBS) \
108 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200109endif
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +0200110
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200111osmo_gtphub_SOURCES = \
112 gtphub_main.c \
113 gtphub.c \
114 gtphub_sock.c \
115 gtphub_ares.c \
116 gtphub_vty.c \
117 sgsn_ares.c \
118 gprs_utils.c \
119 $(NULL)
120osmo_gtphub_LDADD = \
121 $(top_builddir)/src/libcommon/libcommon.a \
122 $(LIBOSMOCORE_LIBS) \
123 $(LIBOSMOGSM_LIBS) \
124 $(LIBOSMOVTY_LIBS) \
125 $(LIBCARES_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +0200126 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200127 -lrt \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200128 $(NULL)