AM_CPPFLAGS = \
	$(all_includes) \
	-I$(top_srcdir)/include \
	$(NULL)

AM_CFLAGS = \
	-Wall \
	-ggdb3 \
	$(LIBOSMOCORE_CFLAGS) \
	$(LIBOSMOGSM_CFLAGS) \
	$(LIBOSMOCTRL_CFLAGS) \
	$(LIBOSMOVTY_CFLAGS) \
	$(LIBOSMOABIS_CFLAGS) \
	$(LIBOSMONETIF_CFLAGS) \
	$(LIBOSMOSIGTRAN_CFLAGS) \
	$(LIBOSMOMGCPCLIENT_CFLAGS) \
	$(NULL)

AM_LDFLAGS = \
	$(COVERAGE_LDFLAGS) \
	-no-install \
	$(NULL)

EXTRA_DIST = \
	handover_tests.sh \
	handover_tests.ok \
	$(srcdir)/test*.ho_vty \
	$(NULL)

check_PROGRAMS = \
	handover_test \
	$(NULL)

handover_test_SOURCES = \
	handover_test.c \
	$(NULL)

handover_test_LDFLAGS = \
	-Wl,--wrap=abis_rsl_sendmsg \
	-Wl,--wrap=bsc_cipher_mode_compl \
	-Wl,--wrap=bsc_cm_update \
	-Wl,--wrap=bsc_compl_l3 \
	-Wl,--wrap=bsc_dtap \
	-Wl,--wrap=bsc_sapi_n_reject \
	-Wl,--wrap=osmo_mgcpc_ep_ci_request \
	$(NULL)

handover_test_LDADD = \
	$(top_builddir)/src/osmo-bsc/libbsc.la \
	$(LIBOSMOCORE_LIBS) \
	$(LIBOSMOGSM_LIBS) \
	$(LIBOSMOCTRL_LIBS) \
	$(LIBOSMOVTY_LIBS) \
	$(LIBOSMOABIS_LIBS) \
	$(LIBOSMONETIF_LIBS) \
	$(LIBOSMOSIGTRAN_LIBS) \
	$(LIBOSMOMGCPCLIENT_LIBS) \
	$(NULL)

.PHONY: update_exp
update_exp:
	$(srcdir)/handover_tests.sh $(srcdir) $(builddir) -u
