Rev | Line | |
---|
[25] | 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 | |
---|
[44] | 6 | OBJS=giet.o \ |
---|
| 7 | reset.o \ |
---|
| 8 | isr.o \ |
---|
| 9 | main0.o \ |
---|
| 10 | main1.o \ |
---|
| 11 | main2.o \ |
---|
| 12 | main3.o \ |
---|
| 13 | stdio.o \ |
---|
| 14 | drivers.o \ |
---|
[25] | 15 | |
---|
[44] | 16 | GIET?=../../giet |
---|
[25] | 17 | |
---|
[44] | 18 | CFLAGS=-Wall -ffreestanding -fomit-frame-pointer -mips32 -ggdb |
---|
[25] | 19 | |
---|
| 20 | bin.soft: $(OBJS) ldscript |
---|
[44] | 21 | $(LD) -o $@ -T ldscript $(OBJS) |
---|
[25] | 22 | $(DU) -D $@ > $@.txt |
---|
| 23 | |
---|
| 24 | reset.o: reset.s |
---|
| 25 | $(AS) -mips32 -o $@ $< |
---|
| 26 | |
---|
| 27 | giet.o: $(GIET)/giet.s |
---|
| 28 | $(AS) -mips32 -o $@ $< |
---|
| 29 | |
---|
| 30 | isr.o: $(GIET)/isr.s |
---|
| 31 | $(AS) -mips32 -o $@ $< |
---|
| 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 | main0.o: main0.c |
---|
| 42 | $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $< |
---|
| 43 | $(DU) -D $@ > $@.txt |
---|
| 44 | |
---|
| 45 | main1.o: main1.c |
---|
| 46 | $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $< |
---|
| 47 | $(DU) -D $@ > $@.txt |
---|
| 48 | |
---|
| 49 | main2.o: main2.c |
---|
| 50 | $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $< |
---|
| 51 | $(DU) -D $@ > $@.txt |
---|
| 52 | |
---|
| 53 | main3.o: main3.c |
---|
| 54 | $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $< |
---|
| 55 | $(DU) -D $@ > $@.txt |
---|
| 56 | |
---|
| 57 | clean: |
---|
| 58 | rm -f *.o bin.soft *.txt core *~ |
---|
Note: See
TracBrowser
for help on using the repository browser.