Makefile
1.23 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
#----------------------------------------------------------------------#
# Copyright (C) 1998, Nintendo.
#
# File Makefile
# Coded by Yoshitaka Yasumoto. Jan 27, 1998.
# Modified by
#
# $Id: Makefile,v 1.1.1.1 2002/05/02 03:29:12 blythe Exp $
#----------------------------------------------------------------------#
PRDEPTH=../../
include $(ROOT)/usr/include/make/PRdefs
UCODE = rspboot0
LCDEFS =
LCINCS = -I. -I${ROOT}/usr/include/PR -I${ROOT}/usr/include
LDIRT = *.u *.dat *.lst *.sym *.dbg *.elf *.tvd *~ $(UCODE) $(UCODE).nocheck
TARGETS = $(UCODE).o $(UCODE).nocheck.o
default: $(TARGETS)
install: $(TARGETS)
$(INSTALL) -m 555 -F /usr/lib/PR $(TARGETS)
$(INSTALL) -m 555 -F /usr/src/PR/rspcode/rspboot0 Makefile $(UCODE).s
exports: install
include $(ROOT)/usr/include/make/commonrules
$(UCODE).o: $(UCODE).s
$(RSPASM) $(LCDEFS) -DPROTECT $(LCINCS) -F -l -o $(UCODE) $(UCODE).s
$(RSPASM) $(LCDEFS) -DPROTECT $(LCINCS) -S $(UCODE) -o $(UCODE) $(UCODE).s
$(RSP2ELF) -p -r $(UCODE)
$(UCODE).nocheck.o: $(UCODE).s
$(RSPASM) $(LCDEFS) $(LCINCS) -F -l -o $(UCODE).nocheck $(UCODE).s
$(RSPASM) $(LCDEFS) $(LCINCS) -S $(UCODE).nocheck -o $(UCODE).nocheck $(UCODE).s
$(RSP2ELF) -p -r $(UCODE).nocheck
#======== End of Makefile ========#