blob: a827b77a1f3e60739f6936370c3c2d15ba962496 [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 = \
Harald Welte4f8e34b2016-05-06 23:27:38 +020040 gsup_test_client \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020041 osmo-gbproxy \
42 $(NULL)
Holger Hans Peter Freyther66e71062015-05-25 01:21:50 +080043if HAVE_LIBGTP
44if HAVE_LIBCARES
Alexander Huemer7b6673f2016-09-09 00:43:15 +020045bin_PROGRAMS += \
46 osmo-sgsn \
47 osmo-gtphub \
48 $(NULL)
Holger Hans Peter Freyther66e71062015-05-25 01:21:50 +080049endif
Harald Welte03800ba2010-05-18 00:20:21 +020050endif
51
Alexander Huemer7b6673f2016-09-09 00:43:15 +020052osmo_gbproxy_SOURCES = \
53 gb_proxy.c \
54 gb_proxy_main.c \
55 gb_proxy_vty.c \
56 gb_proxy_patch.c \
57 gb_proxy_tlli.c \
58 gb_proxy_peer.c \
59 gprs_gb_parse.c \
60 gprs_llc_parse.c \
61 crc24.c \
62 gprs_utils.c \
63 $(NULL)
64osmo_gbproxy_LDADD = \
65 $(top_builddir)/src/libcommon/libcommon.a \
66 $(OSMO_LIBS) \
67 $(LIBCRYPTO_LIBS) \
68 -lrt \
69 $(NULL)
Harald Weltee2365962010-05-04 07:41:59 +020070
Alexander Huemer7b6673f2016-09-09 00:43:15 +020071osmo_sgsn_SOURCES = \
72 gprs_gmm.c \
73 gprs_sgsn.c \
74 gprs_sndcp.c \
Philippf1f34362016-08-26 17:00:21 +020075 gprs_sndcp_comp.c \
Philipp73f83d52016-09-02 13:38:01 +020076 gprs_sndcp_dcomp.c \
Philippf1f34362016-08-26 17:00:21 +020077 gprs_sndcp_pcomp.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020078 gprs_sndcp_vty.c \
Philipp22611be2016-08-10 12:08:03 +020079 gprs_sndcp_xid.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020080 sgsn_main.c \
81 sgsn_vty.c \
82 sgsn_libgtp.c \
83 gprs_llc.c \
84 gprs_llc_parse.c \
85 gprs_llc_vty.c \
86 crc24.c \
87 sgsn_ctrl.c \
88 sgsn_auth.c \
89 gprs_subscriber.c \
90 gprs_utils.c \
91 gprs_gsup_client.c \
92 sgsn_cdr.c \
93 sgsn_ares.c \
Philipp2c7f8372016-08-26 16:58:41 +020094 slhc.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020095 oap.c \
96 oap_messages.c \
97 gprs_llc_xid.c \
Philippd8b45772016-09-02 13:32:38 +020098 v42bis.c \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020099 $(NULL)
100osmo_sgsn_LDADD = \
101 $(top_builddir)/src/libcommon/libcommon.a \
102 $(OSMO_LIBS) \
103 $(LIBOSMOABIS_LIBS) \
104 $(LIBCARES_LIBS) \
105 $(LIBCRYPTO_LIBS) \
106 -lrt \
107 -lgtp \
Philipp22611be2016-08-10 12:08:03 +0200108 -lm \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200109 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200110if BUILD_IU
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200111osmo_sgsn_LDADD += \
112 $(top_builddir)/src/libiu/libiu.a \
113 $(LIBOSMOSIGTRAN_LIBS) \
114 $(LIBOSMORANAP_LIBS) \
115 $(LIBASN1C_LIBS) \
116 $(NULL)
Daniel Willmann6292c8d2016-05-21 17:35:57 +0200117endif
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +0200118
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200119osmo_gtphub_SOURCES = \
120 gtphub_main.c \
121 gtphub.c \
122 gtphub_sock.c \
123 gtphub_ares.c \
124 gtphub_vty.c \
125 sgsn_ares.c \
126 gprs_utils.c \
127 $(NULL)
128osmo_gtphub_LDADD = \
129 $(top_builddir)/src/libcommon/libcommon.a \
130 $(LIBOSMOCORE_LIBS) \
131 $(LIBOSMOGSM_LIBS) \
132 $(LIBOSMOVTY_LIBS) \
133 $(LIBCARES_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +0200134 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200135 -lrt \
Alexander Huemer7b6673f2016-09-09 00:43:15 +0200136 $(NULL)
Harald Welte4f8e34b2016-05-06 23:27:38 +0200137
138gsup_test_client_SOURCES = \
139 gprs_gsup_client.c \
140 gsup_test_client.c \
141 oap.c \
142 $(NULL)
143gsup_test_client_LDADD = \
144 $(LIBOSMOCORE_LIBS) \
145 $(LIBOSMOGSM_LIBS) \
146 $(LIBOSMOVTY_LIBS) \
147 $(LIBOSMOABIS_LIBS) \
148 -lrt \
149 $(NULL)