Makefile
966 Bytes
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
44
45
46
#
# 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)