Last change
on this file since 906 was
520,
checked in by bouyer, 11 years ago
|
Re-add the tests; reverting previous which was done at the wrong level (sorry)
|
File size:
649 bytes
|
Rev | Line | |
---|
[520] | 1 | all: test.elf |
---|
| 2 | |
---|
| 3 | COMMON= ../common |
---|
| 4 | LDSCRIPT?= ../common/ldscript |
---|
| 5 | |
---|
| 6 | CC= mipsel-unknown-elf-gcc |
---|
| 7 | LD= mipsel-unknown-elf-ld |
---|
| 8 | DU= mipsel-unknown-elf-objdump |
---|
| 9 | |
---|
| 10 | CFLAGS= -mips32 -nostdinc -I. -I${COMMON} -mno-abicalls |
---|
| 11 | ### LDFLAGS=-mips32 -nostdlib -Wl,-T${LDSCRIPT} -Ttext=0xbfc00000 |
---|
| 12 | |
---|
| 13 | #### object files generation |
---|
| 14 | test.o: test.S |
---|
| 15 | ${CC} ${CFLAGS} -c -o $@ $< |
---|
| 16 | ${DU} -D $@ > $@.txt |
---|
| 17 | |
---|
| 18 | subr.o: ${COMMON}/subr.S |
---|
| 19 | ${CC} ${CFLAGS} -c -o $@ $< |
---|
| 20 | ${DU} -D $@ > $@.txt |
---|
| 21 | |
---|
| 22 | ### linking : test.o has to be the first object |
---|
| 23 | test.elf: test.o subr.o ${EXTRA_OBJ} |
---|
| 24 | ${LD} -o $@ -T ${LDSCRIPT} -Ttext 0xbfc00000 $^ |
---|
| 25 | ${DU} -D $@ > $@.txt |
---|
| 26 | clean: |
---|
| 27 | rm -f *.o test.elf *.txt run.out temp |
---|
Note: See
TracBrowser
for help on using the repository browser.