Makefile 1.07 KB
##########################################################################
#
# 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.