Makefile 966 Bytes
#
# Makefile for tool to expand .data scripts into .rdram files
#

PRDEPTH = ../..
include $(PRDEPTH)/PRdefs

OPTIMIZER = -g

LCINCS=-I$(ROOT)/usr/include/PR 
LCOPTS=-fullwarn

TARGETS=checkaudio checkhex checkimage checkvideo \
	data2rdram rdram2data rdram2image rdramgclr \
	bump dump2mem gbi2mem

default: $(TARGETS)

include $(PRDEPTH)/PRrules

checkhex: checkhex.o
	$(CCF) checkhex.o $(LDFLAGS) -o $@

data2rdram: data2rdram.o
	$(CCF) data2rdram.o $(LDFLAGS) -o $@

rdram2data: rdram2data.o rdram.o
	$(CCF) rdram2data.o rdram.o $(LDFLAGS) -o $@

rdram2image: rdram2image.o rdram.o
	$(CCF) rdram2image.o rdram.o $(LDFLAGS)  -limage -lgen -o $@

rdramgclr: rdramgclr.o rdram.o
	$(CCF) rdramgclr.o rdram.o $(LDFLAGS) -o $@

dump2mem: dump2mem.o 
	$(CCF) dump2mem.o $(LDFLAGS) -o $@

gbi2mem: gbi2mem.o
	$(CCF) gbi2mem.o $(LDFLAGS) -o $@

bump:	bump.o
	$(CCF) bump.o $(LDFLAGS) -o $@ -lm -limage

exports install: default
	$(INSTALL) -m 555 -F /usr/sbin $(TARGETS)