Makefile
1.07 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
##########################################################################
#
# Makefile for RSP boot ucode.
#
##########################################################################
PRDEPTH=../../
include $(ROOT)/usr/include/make/PRdefs
LCDEFS =
LCINCS = -I${ROOT}/usr/include/PR -I${ROOT}/usr/include
LDIRT = *.u *.dat *.lst *.sym *.dbg *.elf *.tvd
INST_LIB_TARGETS = rspboot.o
TARGETS = rspboot rspboot.tvd ${INST_LIB_TARGETS}
default: ${TARGETS}
install: ${TARGETS}
$(INSTALL) -m 555 -F /usr/lib/PR $(INST_LIB_TARGETS)
$(INSTALL) -m 555 -F /usr/src/PR/rspcode/rspboot Makefile *.s
exports: install
include $(ROOT)/usr/include/make/commonrules
# boot code doesn't need the linker...
rspboot: rspboot.s
@echo "****"
@echo "**** Building $@:"
@echo "****"
${RSPASM} ${LCINCS} -o $@ rspboot.s
# rm -f ../graphics/rspboot.s
# rm -f ../graphics/rspboot.u.sym
# cp rspboot.s ../graphics
# cp rspboot.sym ../graphics/rspboot.u.sym
@echo " "
rspboot.o: rspboot
${RSP2ELF} -p -r $?
rspboot.tvd: rspboot
${RSP2ELF} -p $?
# DO NOT DELETE THIS LINE -- make depend depends on it.