Last change
on this file since 678 was
623,
checked in by alain, 11 years ago
|
Introducing the soft_hello_giet application.
|
File size:
796 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 \ |
---|
[623] | 7 | giet.o \ |
---|
| 8 | stdio.o \ |
---|
| 9 | main.o |
---|
[158] | 10 | |
---|
[244] | 11 | CFLAGS = -Wall -mno-gpopt -ffreestanding -fomit-frame-pointer -mips32 -ggdb |
---|
[158] | 12 | |
---|
[244] | 13 | GIET = ../giet_tsar |
---|
[158] | 14 | |
---|
| 15 | bin.soft: $(OBJS) ldscript |
---|
| 16 | $(LD) -o $@ -T ldscript $(OBJS) |
---|
| 17 | $(DU) -D $@ > $@.txt |
---|
| 18 | |
---|
[623] | 19 | reset.o: $(GIET)/reset.S hard_config.h |
---|
| 20 | $(CC) -I. $(CFLAGS) -c -o $@ $< |
---|
[158] | 21 | $(DU) -D $@ > $@.txt |
---|
| 22 | |
---|
[623] | 23 | giet.o: $(GIET)/giet.S hard_config.h |
---|
| 24 | $(CC) -I. $(CFLAGS) -c -o $@ $< |
---|
[158] | 25 | $(DU) -D $@ > $@.txt |
---|
| 26 | |
---|
[623] | 27 | stdio.o: $(GIET)/stdio.c hard_config.h |
---|
| 28 | $(CC) -I. $(CFLAGS) -c -o $@ $< |
---|
[158] | 29 | $(DU) -D $@ > $@.txt |
---|
| 30 | |
---|
[623] | 31 | main.o: main.c hard_config.h |
---|
| 32 | $(CC) -I. $(CFLAGS) -I$(GIET) -c -o $@ $< |
---|
[158] | 33 | $(DU) -D $@ > $@.txt |
---|
| 34 | |
---|
| 35 | clean: |
---|
[623] | 36 | rm -f *.o bin.soft *.txt core term* temp |
---|
Note: See
TracBrowser
for help on using the repository browser.