GNUmakefile
1.17 KB
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
47
48
49
50
51
52
53
54
#
# Makefile for tool to expand .data scripts into .rdram files
#
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=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 $@
$(CCF) rdram2image.o rdram.o $(LDFLAGS) -limage -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
checkimage: checkimage.sh.linux
cat checkimage.sh.linux >checkimage
chmod a+x checkimage
exports install: default
$(INSTALL) -m 555 -F /usr/sbin $(TARGETS)