GNUmakefile
1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!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