VSRCS=	vsrc/RF3166.v vsrc/S71PL129N.v vsrc/S71PL129N_plus.v vsrc/abb_block.v \
	vsrc/abb_rc_network.v vsrc/antenna_switch.v vsrc/baseband.v \
	vsrc/calypso_179ghh.v vsrc/clock_rf2dbb.v vsrc/core.v vsrc/dbb_block.v \
	vsrc/int_vcxo_passive.v vsrc/iota_100ggm.v vsrc/memory.v \
	vsrc/rf_fem_block.v vsrc/rf_pa_block.v vsrc/rf_section.v \
	vsrc/rfmatch_fem2rita_om.v \
	vsrc/rfmatch_pa2antsw_hb.v vsrc/rfmatch_pa2antsw_lb.v \
	vsrc/rfmatch_rita2pa_hb.v vsrc/rfmatch_rita2pa_lb.v \
	vsrc/rita_rf_chip.v vsrc/rita_vcxo_int.v vsrc/rita_wrap.v \
	vsrc/saw_filter.v vsrc/xtal_32khz_wrap.v \
	vsrc_ext/board.v vsrc_ext/jtag_if.v vsrc_ext/mcsi_if.v \
	vsrc_ext/microphone_block.v vsrc_ext/power_in.v \
	vsrc_ext/pushbutton_wrap.v vsrc_ext/sim_socket_block.v \
	vsrc_ext/sma_wrap.v vsrc_ext/speaker_block.v vsrc_ext/uart_bringout.v
BOMS=	tallied-bom.txt comptab.txt
UNETS=	sverp.unet bound.unet nostar.unet

all:	${BOMS} ${UNETS}

sverp.unet:	${VSRCS} primitives
	ueda-sverp -o $@ ${VSRCS}

bound.unet:	MCL sverp.unet starpoints
	unet-bind -s starpoints sverp.unet $@

nostar.unet:	bound.unet
	unet-destar $< $@

tallied-bom.txt:	MCL
	ueda-mkbom -c > $@

comptab.txt:	MCL
	ueda-shortbom > $@

clean:
	rm -f *.unet *.txt errs
