Rev | Line | |
---|
[57] | 1 | LD=mipsel-unknown-elf-ld |
---|
| 2 | CC=mipsel-unknown-elf-gcc |
---|
| 3 | AS=mipsel-unknown-elf-as |
---|
| 4 | DU=mipsel-unknown-elf-objdump |
---|
| 5 | |
---|
| 6 | OBJS=reset.o \ |
---|
| 7 | giet.o \ |
---|
| 8 | isr.o \ |
---|
| 9 | stdio.o \ |
---|
| 10 | drivers.o \ |
---|
| 11 | main.o |
---|
| 12 | |
---|
| 13 | CFLAGS=-Wall -ffreestanding -fomit-frame-pointer -mips32 -ggdb |
---|
| 14 | |
---|
| 15 | GIET?=../../giet |
---|
| 16 | |
---|
| 17 | bin.soft: $(OBJS) ldscript |
---|
| 18 | $(LD) -o $@ -T ldscript $(OBJS) |
---|
| 19 | $(DU) -D $@ > $@.txt |
---|
| 20 | |
---|
| 21 | reset.o: reset.s |
---|
| 22 | $(AS) -g -mips32 -o $@ $< |
---|
| 23 | |
---|
| 24 | giet.o: $(GIET)/giet.s |
---|
| 25 | $(AS) -g -mips32 -o $@ $< |
---|
| 26 | |
---|
| 27 | isr.o: $(GIET)/isr.s |
---|
| 28 | $(AS) -g -mips32 -o $@ $< |
---|
| 29 | |
---|
| 30 | drivers.o: $(GIET)/drivers.c |
---|
| 31 | $(CC) $(CFLAGS) -c -o $@ $< |
---|
| 32 | $(DU) -D $@ > $@.txt |
---|
| 33 | |
---|
| 34 | stdio.o: $(GIET)/stdio.c |
---|
| 35 | $(CC) $(CFLAGS) -c -o $@ $< |
---|
| 36 | $(DU) -D $@ > $@.txt |
---|
| 37 | |
---|
| 38 | main.o: main1.c |
---|
| 39 | $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $< |
---|
| 40 | $(DU) -D $@ > $@.txt |
---|
| 41 | |
---|
| 42 | clean: |
---|
| 43 | rm -f *.o bin.soft *.txt core *~ proc* |
---|
| 44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.