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

Last change on this file since 425 was 232, checked in by alain, 12 years ago

Introducing the elementary tests for a TSAR mono-cluster
mono-processor platform with MMU using the vci_cc_vcache_v4
such as the "tsarv4_mono_mmu".
(assemby level tests written by Manuel Bouyer)

File size: 649 bytes
Line 
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.