GNUmakefile
878 Bytes
PRDEPTH = ../..
include $(PRDEPTH)/PRdefs
CC=$(HOST_CC)
GCINCS=-D_LANGUAGE_C -I$(ROOT)/host_include
GLDOPTS=-L$(ROOT)/host_lib
OPTIMIZER = -g
LCINCS=-I$(ROOT)/usr/include/PR
LCOPTS=-Wall
TARGETS=romdump makemask symedit
LDIRT += boot_image.h
default: $(TARGETS)
include $(PRDEPTH)/PRrules
exports install: default
$(INSTALL) -m 555 -F /usr/sbin $(TARGETS)
$(INSTALL) -m 555 -src romfill.pl -F /usr/sbin romfill
$(INSTALL) -m 555 -src romaddress.pl -F /usr/sbin romaddress
$(INSTALL) -m 555 -src rommap.pl -F /usr/sbin rommap
$(INSTALL) -m 555 -src romalign.pl -F /usr/sbin romalign
makemask.o : boot_image.h
symedit: symedit.c
$(CCF) -o symedit symedit.c -lelf
boot_image.h : boot_image
echo "unsigned char boot_image[] = {" > boot_image.h
od -v -w8 -An -tx1 boot_image | sed -e 's/\([a-z0-9][a-z0-9]\)/0x\1,/g' >> boot_image.h
echo "};" >> boot_image.h