Last change
on this file since 257 was
244,
checked in by meunier, 12 years ago
|
soft_transpose update to match platform changes
|
File size:
881 bytes
|
Rev | Line | |
---|
[244] | 1 | LD = mipsel-unknown-elf-ld |
---|
| 2 | CC = mipsel-unknown-elf-gcc |
---|
| 3 | AS = mipsel-unknown-elf-as |
---|
| 4 | DU = mipsel-unknown-elf-objdump |
---|
[158] | 5 | |
---|
[244] | 6 | OBJS = reset.o \ |
---|
[158] | 7 | giet.o \ |
---|
| 8 | isr.o \ |
---|
| 9 | drivers.o \ |
---|
| 10 | stdio.o \ |
---|
| 11 | main.o |
---|
| 12 | |
---|
[244] | 13 | CFLAGS = -Wall -mno-gpopt -ffreestanding -fomit-frame-pointer -mips32 -ggdb |
---|
[158] | 14 | |
---|
[244] | 15 | GIET = ../giet_tsar |
---|
[158] | 16 | |
---|
| 17 | bin.soft: $(OBJS) ldscript |
---|
| 18 | $(LD) -o $@ -T ldscript $(OBJS) |
---|
| 19 | $(DU) -D $@ > $@.txt |
---|
| 20 | |
---|
[163] | 21 | reset.o: $(GIET)/reset.s |
---|
[158] | 22 | $(AS) -g -mips32 -o $@ $< |
---|
| 23 | $(DU) -D $@ > $@.txt |
---|
| 24 | |
---|
| 25 | giet.o: $(GIET)/giet.s |
---|
| 26 | $(AS) -g -mips32 -o $@ $< |
---|
| 27 | $(DU) -D $@ > $@.txt |
---|
| 28 | |
---|
| 29 | isr.o: $(GIET)/isr.c |
---|
| 30 | $(CC) $(CFLAGS) -c -o $@ $< |
---|
| 31 | $(DU) -D $@ > $@.txt |
---|
| 32 | |
---|
| 33 | stdio.o: $(GIET)/stdio.c |
---|
| 34 | $(CC) $(CFLAGS) -c -o $@ $< |
---|
| 35 | $(DU) -D $@ > $@.txt |
---|
| 36 | |
---|
| 37 | drivers.o: $(GIET)/drivers.c |
---|
| 38 | $(CC) $(CFLAGS) -c -o $@ $< |
---|
| 39 | $(DU) -D $@ > $@.txt |
---|
| 40 | |
---|
| 41 | main.o: main.c |
---|
| 42 | $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $< |
---|
| 43 | $(DU) -D $@ > $@.txt |
---|
| 44 | |
---|
| 45 | clean: |
---|
| 46 | rm -f *.o bin.soft *.txt core *~ proc* term* temp |
---|
Note: See
TracBrowser
for help on using the repository browser.