projects
/
sgisys_test1
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
first commit: hello world
[sgisys_test1]
/
Makefile
1
obj = test.o
2
elf = test.elf
3
bin = test.ecoff
4
5
TC = mips-none-elf-
6
CC = $(TC)gcc
7
AS = $(TC)as
8
LD = $(TC)ld
9
10
ASFLAGS = -mips3 -mabi=32 -mno-abicalls -G 0 -fno-pic
11
LDFLAGS = -T o2.ld
12
13
$(bin): $(elf)
14
wreckoff $< $@
15
16
$(elf): $(obj)
17
$(LD) -o $@ $(obj) $(LDFLAGS)
18
19
.PHONY: clean
20
clean:
21
rm -f $(obj) $(elf) $(bin)
22
23
.PHONY: install
24
install: $(elf)
25
cp $(elf) $(bin) /srv/tftp/
26
27
#disasm: $(bin)
28
# mips-ecoff-objdump -D $< >$@
29
#
30
disasm: $(elf)
31
$(TC)objdump -D $< >$@