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