Rev | Line | |
---|
[7] | 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 | stdio.o \ |
---|
| 9 | drivers.o \ |
---|
| 10 | main.o |
---|
| 11 | |
---|
| 12 | CFLAGS= -Wall -ffreestanding -fomit-frame-pointer -mips32 -ggdb |
---|
| 13 | |
---|
[10] | 14 | GIET= ../../giet |
---|
| 15 | |
---|
[7] | 16 | bin.soft: $(OBJS) ldscript |
---|
| 17 | $(LD) -o $@ -T ldscript $(OBJS) |
---|
| 18 | $(DU) -D $@ > $@.txt |
---|
| 19 | |
---|
| 20 | reset.o: reset.s |
---|
| 21 | $(AS) -g -mips32 -o $@ $< |
---|
| 22 | giet.o: $(GIET)/giet.s |
---|
| 23 | $(AS) -g -mips32 -o $@ $< |
---|
| 24 | |
---|
| 25 | drivers.o: $(GIET)/drivers.c |
---|
| 26 | $(CC) $(CFLAGS) -c -o $@ $< |
---|
| 27 | stdio.o: $(GIET)/stdio.c |
---|
| 28 | $(CC) $(CFLAGS) -c -o $@ $< |
---|
| 29 | |
---|
| 30 | main.o: main.c |
---|
| 31 | $(CC) $(CFLAGS) -I$(GIET) -c -o $@ $< |
---|
| 32 | |
---|
| 33 | clean: |
---|
| 34 | rm -f *.o bin.soft *.txt core *~ |
---|
| 35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.