Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 1 | AM_CPPFLAGS = \ |
| 2 | $(all_includes) \ |
| 3 | -I$(top_srcdir)/include \ |
| 4 | $(NULL) |
| 5 | |
| 6 | AM_CFLAGS = \ |
| 7 | -Wall \ |
| 8 | -ggdb3 \ |
| 9 | $(LIBOSMOCORE_CFLAGS) \ |
Alexander Huemer | c2f2ad8 | 2016-09-15 16:02:18 +0200 | [diff] [blame] | 10 | $(LIBOSMOABIS_CFLAGS) \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 11 | $(LIBOSMOGSM_CFLAGS) \ |
| 12 | $(LIBCARES_CFLAGS) \ |
Neels Hofmeyr | 6789c84 | 2018-01-16 14:09:24 +0100 | [diff] [blame] | 13 | $(LIBGTP_CFLAGS) \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 14 | $(NULL) |
Daniel Willmann | 61329d4 | 2016-05-21 17:36:18 +0200 | [diff] [blame] | 15 | if BUILD_IU |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 16 | AM_CFLAGS += \ |
| 17 | $(LIBASN1C_CFLAGS) \ |
| 18 | $(LIBOSMOSIGTRAN_CFLAGS) \ |
| 19 | $(LIBOSMORANAP_CFLAGS) \ |
| 20 | $(NULL) |
Daniel Willmann | 61329d4 | 2016-05-21 17:36:18 +0200 | [diff] [blame] | 21 | endif |
Holger Hans Peter Freyther | 68c6f88 | 2014-09-30 09:10:25 +0200 | [diff] [blame] | 22 | |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 23 | EXTRA_DIST = \ |
| 24 | sgsn_test.ok \ |
| 25 | $(NULL) |
Holger Hans Peter Freyther | 68c6f88 | 2014-09-30 09:10:25 +0200 | [diff] [blame] | 26 | |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 27 | noinst_PROGRAMS = \ |
| 28 | sgsn_test \ |
| 29 | $(NULL) |
Holger Hans Peter Freyther | 68c6f88 | 2014-09-30 09:10:25 +0200 | [diff] [blame] | 30 | |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 31 | sgsn_test_SOURCES = \ |
| 32 | sgsn_test.c \ |
| 33 | $(NULL) |
| 34 | |
Jacob Erlbeck | 33b6dad | 2014-11-12 10:12:11 +0100 | [diff] [blame] | 35 | sgsn_test_LDFLAGS = \ |
Max | 3b6332f | 2017-11-01 13:28:38 +0100 | [diff] [blame] | 36 | -Wl,--wrap=osmo_get_rand_id \ |
Jacob Erlbeck | be2c8d9 | 2014-11-12 10:18:09 +0100 | [diff] [blame] | 37 | -Wl,--wrap=sgsn_update_subscriber_data \ |
Jacob Erlbeck | 98a95ac | 2014-11-28 14:55:25 +0100 | [diff] [blame] | 38 | -Wl,--wrap=gprs_subscr_request_update_location \ |
Jacob Erlbeck | c157ee7 | 2015-01-09 15:07:16 +0100 | [diff] [blame] | 39 | -Wl,--wrap=gprs_subscr_request_auth_info \ |
Neels Hofmeyr | 814fef0 | 2016-12-08 21:19:57 +0100 | [diff] [blame] | 40 | -Wl,--wrap=gsup_client_send \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 41 | $(NULL) |
Jacob Erlbeck | 33b6dad | 2014-11-12 10:12:11 +0100 | [diff] [blame] | 42 | |
Holger Hans Peter Freyther | 4299c05 | 2014-10-02 21:27:24 +0200 | [diff] [blame] | 43 | sgsn_test_LDADD = \ |
| 44 | $(top_builddir)/src/gprs/gprs_llc_parse.o \ |
| 45 | $(top_builddir)/src/gprs/gprs_llc.o \ |
| 46 | $(top_builddir)/src/gprs/crc24.o \ |
| 47 | $(top_builddir)/src/gprs/gprs_sndcp.o \ |
Alexander Couzens | f7198d7 | 2018-05-22 18:29:14 +0200 | [diff] [blame^] | 48 | $(top_builddir)/src/gprs/gprs_gmm_attach.o \ |
Holger Hans Peter Freyther | 4299c05 | 2014-10-02 21:27:24 +0200 | [diff] [blame] | 49 | $(top_builddir)/src/gprs/gprs_gmm.o \ |
| 50 | $(top_builddir)/src/gprs/gprs_sgsn.o \ |
| 51 | $(top_builddir)/src/gprs/sgsn_vty.o \ |
| 52 | $(top_builddir)/src/gprs/sgsn_libgtp.o \ |
Jacob Erlbeck | 3b5d407 | 2014-10-24 15:11:03 +0200 | [diff] [blame] | 53 | $(top_builddir)/src/gprs/sgsn_auth.o \ |
Holger Hans Peter Freyther | 39c430e | 2015-05-25 12:26:49 +0800 | [diff] [blame] | 54 | $(top_builddir)/src/gprs/sgsn_ares.o \ |
Jacob Erlbeck | a6ddc2d | 2014-12-12 15:01:37 +0100 | [diff] [blame] | 55 | $(top_builddir)/src/gprs/gprs_utils.o \ |
Jacob Erlbeck | 33b6dad | 2014-11-12 10:12:11 +0100 | [diff] [blame] | 56 | $(top_builddir)/src/gprs/gprs_subscriber.o \ |
Jacob Erlbeck | 133e862 | 2015-10-12 19:36:32 +0200 | [diff] [blame] | 57 | $(top_builddir)/src/gprs/gprs_gb_parse.o \ |
Philipp | 22611be | 2016-08-10 12:08:03 +0200 | [diff] [blame] | 58 | $(top_builddir)/src/gprs/gprs_llc_xid.o \ |
| 59 | $(top_builddir)/src/gprs/gprs_sndcp_xid.o \ |
Philipp | 2c7f837 | 2016-08-26 16:58:41 +0200 | [diff] [blame] | 60 | $(top_builddir)/src/gprs/slhc.o \ |
Philipp | f1f3436 | 2016-08-26 17:00:21 +0200 | [diff] [blame] | 61 | $(top_builddir)/src/gprs/gprs_sndcp_comp.o \ |
| 62 | $(top_builddir)/src/gprs/gprs_sndcp_pcomp.o \ |
Philipp | d8b4577 | 2016-09-02 13:32:38 +0200 | [diff] [blame] | 63 | $(top_builddir)/src/gprs/v42bis.o \ |
Philipp | 73f83d5 | 2016-09-02 13:38:01 +0200 | [diff] [blame] | 64 | $(top_builddir)/src/gprs/gprs_sndcp_dcomp.o \ |
Neels Hofmeyr | ee6cfdc | 2017-07-13 02:03:50 +0200 | [diff] [blame] | 65 | $(top_builddir)/src/gprs/gsup_client.o \ |
Jacob Erlbeck | 39f040d | 2014-12-18 12:46:47 +0100 | [diff] [blame] | 66 | $(LIBOSMOABIS_LIBS) \ |
Holger Hans Peter Freyther | 4299c05 | 2014-10-02 21:27:24 +0200 | [diff] [blame] | 67 | $(LIBOSMOCORE_LIBS) \ |
| 68 | $(LIBOSMOGSM_LIBS) \ |
| 69 | $(LIBOSMOGB_LIBS) \ |
Holger Hans Peter Freyther | 39c430e | 2015-05-25 12:26:49 +0800 | [diff] [blame] | 70 | $(LIBCARES_LIBS) \ |
Alexander Huemer | c2f2ad8 | 2016-09-15 16:02:18 +0200 | [diff] [blame] | 71 | $(LIBGTP_LIBS) \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 72 | -lrt \ |
Philipp | 22611be | 2016-08-10 12:08:03 +0200 | [diff] [blame] | 73 | -lm \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 74 | $(NULL) |
Philipp | 22611be | 2016-08-10 12:08:03 +0200 | [diff] [blame] | 75 | |
Daniel Willmann | 61329d4 | 2016-05-21 17:36:18 +0200 | [diff] [blame] | 76 | if BUILD_IU |
| 77 | sgsn_test_LDADD += \ |
Daniel Willmann | 61329d4 | 2016-05-21 17:36:18 +0200 | [diff] [blame] | 78 | $(LIBOSMORANAP_LIBS) \ |
| 79 | $(LIBOSMOSIGTRAN_LIBS) \ |
Alexander Huemer | 7b6673f | 2016-09-09 00:43:15 +0200 | [diff] [blame] | 80 | $(LIBASN1C_LIBS) \ |
| 81 | $(NULL) |
Daniel Willmann | 61329d4 | 2016-05-21 17:36:18 +0200 | [diff] [blame] | 82 | endif |