blob: 137924da27cbafc21289045c340b170f557066e9 [file] [log] [blame]
Alexander Huemer7b6673f2016-09-09 00:43:15 +02001AM_CPPFLAGS = \
2 $(all_includes) \
3 -I$(top_srcdir)/include \
4 $(NULL)
5
6AM_CFLAGS = \
7 -Wall \
8 -ggdb3 \
9 $(LIBOSMOCORE_CFLAGS) \
10 $(NULL)
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +020011
12EXTRA_DIST = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020013 gtphub_test.ok \
14 $(NULL)
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +020015
Neels Hofmeyrff252bb2015-11-29 18:44:55 +010016if HAVE_LIBGTP
17if HAVE_LIBCARES
Alexander Huemer7b6673f2016-09-09 00:43:15 +020018noinst_PROGRAMS = \
19 gtphub_test \
20 $(NULL)
Neels Hofmeyrff252bb2015-11-29 18:44:55 +010021endif
22endif
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +020023
Alexander Huemer7b6673f2016-09-09 00:43:15 +020024gtphub_test_SOURCES = \
25 gtphub_test.c \
26 $(NULL)
27
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +020028gtphub_test_LDFLAGS = \
Neels Hofmeyr30f7bcb2015-11-08 20:34:47 +010029 -Wl,--wrap=gtphub_resolve_ggsn_addr \
Neels Hofmeyr996ec1d2015-12-02 15:43:10 +010030 -Wl,--wrap=gtphub_ares_init \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020031 -Wl,--wrap=gtphub_write \
32 $(NULL)
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +020033
34gtphub_test_LDADD = \
35 $(top_builddir)/src/gprs/gtphub.o \
Neels Hofmeyr30f7bcb2015-11-08 20:34:47 +010036 $(top_builddir)/src/gprs/gprs_utils.o \
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +020037 $(LIBOSMOCORE_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020038 -lgtp \
39 -lrt \
40 $(NULL)