blob: 5c834b782e3f4494ed9509d6cab80b9d83a86937 [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) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +020010 $(LIBOSMOABIS_CFLAGS) \
11 $(LIBGTP_CFLAGS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020012 $(NULL)
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +020013
14EXTRA_DIST = \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020015 gtphub_test.ok \
16 $(NULL)
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +020017
Neels Hofmeyrff252bb2015-11-29 18:44:55 +010018if HAVE_LIBGTP
19if HAVE_LIBCARES
Alexander Huemer7b6673f2016-09-09 00:43:15 +020020noinst_PROGRAMS = \
21 gtphub_test \
22 $(NULL)
Neels Hofmeyrff252bb2015-11-29 18:44:55 +010023endif
24endif
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +020025
Alexander Huemer7b6673f2016-09-09 00:43:15 +020026gtphub_test_SOURCES = \
27 gtphub_test.c \
28 $(NULL)
29
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +020030gtphub_test_LDFLAGS = \
Neels Hofmeyr30f7bcb2015-11-08 20:34:47 +010031 -Wl,--wrap=gtphub_resolve_ggsn_addr \
Neels Hofmeyr996ec1d2015-12-02 15:43:10 +010032 -Wl,--wrap=gtphub_ares_init \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020033 -Wl,--wrap=gtphub_write \
34 $(NULL)
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +020035
36gtphub_test_LDADD = \
37 $(top_builddir)/src/gprs/gtphub.o \
Neels Hofmeyr30f7bcb2015-11-08 20:34:47 +010038 $(top_builddir)/src/gprs/gprs_utils.o \
Neels Hofmeyrc8a614d2015-09-24 17:32:30 +020039 $(LIBOSMOCORE_LIBS) \
Alexander Huemerc2f2ad82016-09-15 16:02:18 +020040 $(LIBGTP_LIBS) \
Alexander Huemer7b6673f2016-09-09 00:43:15 +020041 -lrt \
42 $(NULL)