GNUmakefile
974 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
#
include $(ROOT)/usr/include/make/commondefs
TARGETS=mdump rsp2elf lst2imem d2elf
LCINCS += -I$(ROOT)/host_include/coff
default all: $(TARGETS)
mdump: mdump.c
$(CC) $(LCINCS) -g -o mdump mdump.c
umakerom: umakerom.c
$(CC) $(LCINCS) -g -o umakerom -I$(ROOT)/PR/include umakerom.c
rsp2elf: rsp2elfm.o rsp2elfd.o rsp2elff.o rsp2elfu.o
$(CXX) $(LCINCS) -g -o rsp2elf rsp2elfm.o rsp2elfd.o rsp2elff.o rsp2elfu.o
lst2imem: lst2imem.cxx
$(CXX) $(LCINCS) -g -o lst2imem lst2imem.cxx
d2elf: d2elf.cxx rsp2elf.h
$(CXX) $(LCINCS) -g -O -o d2elf d2elf.cxx
rsp2elfm.o: rsp2elfm.cxx rsp2elf.h
$(CXX) $(LCINCS) -c -g rsp2elfm.cxx
rsp2elfd.o: rsp2elfd.cxx rsp2elf.h
$(CXX) $(LCINCS) -c -g rsp2elfd.cxx
rsp2elff.o: rsp2elff.cxx rsp2elf.h
$(CXX) $(LCINCS) -c -g rsp2elff.cxx
rsp2elfu.o: rsp2elfu.cxx rsp2elf.h
$(CXX) $(LCINCS) -c -g rsp2elfu.cxx
clobber:
-rm -f *.o $(TARGETS)
clean:
-rm -f *.o
exports install: ${TARGETS}
$(INSTALL) -m 555 -F /usr/sbin $(TARGETS)