GNUmakefile 1.31 KB
#!smake
#
# $Revision: 1.3 $
#

PRDEPTH = ../../..
include $(PRDEPTH)/PRdefs
CC=$(HOST_CC)
GLDOPTS=
SIMVEXE=${ROOT}/PR/hw2/chip/sim/simv2.ipc

TARGETS = iosim.rdram

default: $(TARGETS)

include $(PRDEPTH)/PRrules

iosim.rdram: makedata $(_FORCE)
	makedata | $(DATA2RDRAM) -r 2 > iosim.rdram

makedata: makedata.o
	$(CCF) makedata.o $(LDFLAGS) -o $@

check:
	@echo "Check if IOSIM_SERVER and IOSIM_PORT are specified"
	test "${IOSIM_SERVER}" != ""
	test "${IOSIM_PORT}" != ""
	test "${ROOT}" != ""

ai_test: check
	${ROOT}/PR/iosim/src/iosim -f ${ROOT}/PR/iosim/test/ai.tst \
	-n aiSocket -l ai.log \
	-s "${SIMVEXE}"

pi_test: check
	${ROOT}/PR/iosim/src/iosim -f ${ROOT}/PR/iosim/test/pi.tst \
	-n piSocket -l pi.log \
	-s "${SIMVEXE} +load_rom +mmap_rdram=iosim"

si_test: check
	${ROOT}/PR/iosim/src/iosim -f ${ROOT}/PR/iosim/test/si.tst \
	-n siSocket -l si.log \
	-s "${SIMVEXE} +load_pif"

sp_test: check
	${ROOT}/PR/iosim/src/iosim -f ${ROOT}/PR/iosim/test/sp.tst \
	-n spSocket -l sp.log \
	-s "${SIMVEXE}"

rdram_test: check
	${ROOT}/PR/iosim/src/iosim -f ${ROOT}/PR/iosim/test/rdramreg.tst \
	-n rdramSocket -l rdram.log \
	-s "${SIMVEXE}"

ebus_test: check
	${ROOT}/PR/iosim/src/iosim -f ${ROOT}/PR/iosim/test/ebus.tst \
	-n ebusSocket -l ebus.log \
	-s "${SIMVEXE}"

tests: ai_test pi_test si_test sp_test rdram_test ebus_test