1 |
# |
2 |
# Makefile for GXemul regression tests |
3 |
# |
4 |
# $Id: Makefile.skel,v 1.7 2005/03/05 12:40:17 debug Exp $ |
5 |
# |
6 |
|
7 |
CFLAGS=$(CWARNINGS) $(COPTIM) $(XINCLUDE) |
8 |
LIBS=$(XLIB) $(OTHERLIBS) |
9 |
|
10 |
|
11 |
run_tests: do_tests test_common.o |
12 |
./do_tests "$(MIPS_CC)" "$(MIPS_AS)" "$(MIPS_LD)" "../gxemul" |
13 |
|
14 |
do_tests: do_tests.c |
15 |
$(CC) $(CFLAGS) $(LIBS) do_tests.c -o do_tests |
16 |
|
17 |
test_common.o: test_common.c |
18 |
$(MIPS_CC) test_common.c -c -o test_common.o |
19 |
|
20 |
# These two (test_mips test_mips16) are the old tests. |
21 |
|
22 |
test_mips.o: test_mips.c |
23 |
mips64-unknown-elf-gcc -g -O3 -fno-builtin -fschedule-insns -mips4 -mabi=64 -c test_mips.c -o test_mips.o |
24 |
|
25 |
test_mips16.o: test_mips.c |
26 |
mips64-unknown-elf-gcc -g -O3 -fno-builtin -fschedule-insns -mips16 -mabi=64 -c test_mips.c -o test_mips16.o |
27 |
|
28 |
test_mips: test_mips.o |
29 |
mips64-unknown-elf-ld -Ttext 0xffffffff80030000 -e entry_func test_mips.o -o test_mips --oformat=elf64-bigmips |
30 |
|
31 |
test_mips16: test_mips16.o |
32 |
mips64-unknown-elf-ld -Ttext 0xffffffff80030000 -e entry_func test_mips16.o -o test_mips16 --oformat=elf64-bigmips |
33 |
|
34 |
|
35 |
clean: |
36 |
rm -f do_tests *core |
37 |
rm -f test_mips.o test_mips16.o test_mips test_mips16 |
38 |
rm -f test_common.o test_*.o test_*.out |
39 |
|
40 |
clean_all: clean |