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

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

AM_LDFLAGS = \
	$(COVERAGE_LDFLAGS) \
	$(NULL)

noinst_LTLIBRARIES = libbsc.la

libbsc_la_SOURCES = \
	a_reset.c \
	abis_nm.c \
	abis_nm_vty.c \
	abis_om2000.c \
	abis_om2000_vty.c \
	abis_osmo.c \
	abis_rsl.c \
	acc.c \
	assignment_fsm.c \
	bsc_ctrl.c \
	bsc_ctrl_lookup.c \
	bsc_init.c \
	bsc_rf_ctrl.c \
	bsc_rll.c \
	bsc_sccp.c \
	bsc_stats.c \
	bsc_subscr_conn_fsm.c \
	bsc_subscriber.c \
	bsc_vty.c \
	bts.c \
	bts_trx.c \
	bts_trx_ctrl.c \
	bts_ericsson_rbs2000.c \
	bts_init.c \
	bts_ipaccess_nanobts.c \
	bts_ipaccess_nanobts_omlattr.c \
	bts_nokia_site.c \
	bts_siemens_bs11.c \
	bts_sm.c \
	bts_osmobts.c \
	bts_unknown.c \
	bts_ctrl.c \
	bts_setup_ramp.c \
	bts_vty.c \
	bts_trx_vty.c \
	chan_alloc.c \
	chan_counts.c \
	codec_pref.c \
	data_rate_pref.c \
	e1_config.c \
	gsm_04_08_rr.c \
	gsm_data.c \
	handover_cfg.c \
	handover_ctrl.c \
	handover_decision.c \
	handover_decision_2.c \
	handover_fsm.c \
	handover_logic.c \
	handover_vty.c \
	vgcs_fsm.c \
	lb.c \
	lchan.c \
	lchan_fsm.c \
	lchan_rtp_fsm.c \
	lchan_select.c \
	lcs_loc_req.c \
	lcs_ta_req.c \
	meas_feed.c \
	meas_rep.c \
	neighbor_ident.c \
	neighbor_ident_vty.c \
	neighbor_ident_ctrl.c \
	net_init.c \
	nm_common_fsm.c \
	nm_bb_transc_fsm.c \
	nm_bts_sm_fsm.c \
	nm_bts_fsm.c \
	nm_gprs_cell_fsm.c \
	nm_gprs_nse_fsm.c \
	nm_gprs_nsvc_fsm.c \
	nm_channel_fsm.c \
	nm_rcarrier_fsm.c \
	gsm_08_08.c \
	osmo_bsc_bssap.c \
	osmo_bsc_filter.c \
	osmo_bsc_grace.c \
	osmo_bsc_lcls.c \
	osmo_bsc_mgcp.c \
	osmo_bsc_msc.c \
	osmo_bsc_sigtran.c \
	paging.c \
	pcu_sock.c \
	penalty_timers.c \
	bssmap_reset.c \
	system_information.c \
	timeslot_fsm.c \
	smscb.c \
	smscb_vty.c \
	cbch_scheduler.c \
	cbsp_link.c \
	power_control.c \
	$(NULL)

libbsc_la_LIBADD = \
	$(LIBOSMOCORE_LIBS) \
	$(LIBOSMOGSM_LIBS) \
	$(LIBOSMOVTY_LIBS) \
	$(LIBOSMOCTRL_LIBS) \
	$(LIBOSMONETIF_LIBS) \
	$(COVERAGE_LDFLAGS) \
	$(LIBOSMOABIS_LIBS) \
	$(LIBOSMOSIGTRAN_LIBS) \
	$(LIBOSMOMGCPCLIENT_LIBS) \
	-lm \
	$(NULL)

bin_PROGRAMS = \
	osmo-bsc \
	$(NULL)

osmo_bsc_SOURCES = \
	osmo_bsc_main.c \
	$(NULL)

osmo_bsc_LDADD = \
	libbsc.la \
	$(LIBOSMOCORE_LIBS) \
	$(LIBOSMOGSM_LIBS) \
	$(LIBOSMOVTY_LIBS) \
	$(LIBOSMOCTRL_LIBS) \
	$(LIBOSMONETIF_LIBS) \
	$(COVERAGE_LDFLAGS) \
	$(LIBOSMOABIS_LIBS) \
	$(LIBOSMOSIGTRAN_LIBS) \
	$(LIBOSMOMGCPCLIENT_LIBS) \
	$(NULL)
