Makefile 1.23 KB
#----------------------------------------------------------------------#
#	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 ========#