PRrules 871 Bytes
#
# Commonrules for BB player source tree
#
# Makefiles which include this should first define PRDEPTH or BBDEPTH
# to be the relative path from their parent directory.

include ./include/commonrules

#
# Inference rules
#
#
#  Suffix Rules
#
.SUFFIXES : .v .sym .tab .mem .rdp .Z .ss .edf .vsyn

.v.sym:
	$(RMVCOM) < $*.v | $(ECSGEN)
	echo "TEXT 0 0 Left 2 $(*:T)" >> $(*:T).asy
	$(ASYIN) $(*:T).asy

.c.tab:
	$(HOST_CC) $*.c $(CFLAGS) -o $* $(LDFLAGS)
	$* > $*.tab

.tab.mem:
	$(TAB2VMEM) -o $*.mem -s 100 $*.tab > /dev/null

.mem.out:
	simv +mem=$*.mem > $*.out
	$(LOG_RESULT);

.c.rdp:
	$(HOST_CC) $*.c $(CFLAGS) -o $* $(LDFLAGS)
	$* > $*.rdp

.Z.out:
	uncompress -c $*.Z > $*

.ss.edf :
	cd `dirname $*` ; dc_shell -f `basename $*`.ss > `basename $*`.synlog ; pwd

.edf.vsyn :
	dc_shell -x "read -f edif $*.edf ; write -f verilog -hier -o $*.vsyn; quit" > /dev/null