source: trunk/softs/tests_cc_vcache/Makefile.inc @ 672

Last change on this file since 672 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
RevLine 
[520]1all: test.elf
2
3COMMON= ../common
4LDSCRIPT?= ../common/ldscript
5
6CC= mipsel-unknown-elf-gcc
7LD= mipsel-unknown-elf-ld
8DU= mipsel-unknown-elf-objdump
9
10CFLAGS= -mips32 -nostdinc -I. -I${COMMON} -mno-abicalls
11### LDFLAGS=-mips32 -nostdlib -Wl,-T${LDSCRIPT} -Ttext=0xbfc00000
12
13#### object files generation
14test.o: test.S
15        ${CC} ${CFLAGS} -c -o $@ $<
16        ${DU} -D $@ > $@.txt
17
18subr.o: ${COMMON}/subr.S
19        ${CC} ${CFLAGS} -c -o $@ $<
20        ${DU} -D $@ > $@.txt
21
22### linking : test.o has to be the first object
23test.elf: test.o subr.o ${EXTRA_OBJ}
24        ${LD} -o $@ -T ${LDSCRIPT} -Ttext 0xbfc00000 $^
25        ${DU} -D $@ > $@.txt
26clean:
27        rm -f *.o test.elf *.txt run.out temp
Note: See TracBrowser for help on using the repository browser.