Makefile 921 Bytes
#!smake
#
# 
#
# $Revision: 1.1.1.1 $
#

#
#  Tools
#
PRDEPTH = ../../../..
ECS2VL = $(PRDEPTH)/rdpsim/tools/ecs2vl
ASYIN  = /hosts/venice/ecad/ecs/ecs_2.4/bin/asyin
RMVCOM = $(PRDEPTH)/rdpsim/tools/remove_comments
ECSGEN = $(PRDEPTH)/rdpsim/tools/ecs_gen

#
#  SGI Common Defs
#
include $(PRDEPTH)/PRdefs

#
#   Sources
#
HW = $(PRDEPTH)/hw/chip/rcp

VERILOG = $(HW)/ew/src/ew.v
VERILOGDIRS = $(VERILOG:H)
SYMNAMES = $(VERILOG:T)
SYMBOLS = $(SYMNAMES:.v=.sym)

#
#  Set path to find verilog sources
#
.PATH: $(VERILOGDIRS)

#
#  Targets
#
GCINCS =
LDIRT  = ew_test.1 *.asy $(SYMBOLS)

TARGETS = ew_test

default install: $(TARGETS)

#
#  SGI Common Rules
#
include $(COMMONRULES)

#
#  Make Blender Netlist
#
ew_test:	ew_test.sch driver.sym $(SYMBOLS)
	$(ECS2VL) $* $*.1


#
#  Suffix Rules
#
.SUFFIXES : .v .sym


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