Changeset 2426 in vbox for trunk/src/recompiler/tests/Makefile
- Timestamp:
- Apr 30, 2007 12:36:15 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 20835
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/tests/Makefile
r1 r2426 1 #-include ../config-host.mak2 CC=gcc 1 -include ../config-host.mak 2 3 3 CFLAGS=-Wall -O2 -g 4 #CFLAGS+=-msse2 4 5 LDFLAGS= 5 6 6 7 ifeq ($(ARCH),i386) 7 8 TESTS=linux-test testthread sha1-i386 test-i386 runcom 9 endif 10 ifeq ($(ARCH),x86_64) 11 TESTS=test-x86_64 8 12 endif 9 13 TESTS+=sha1# test_path … … 25 29 ./$@ || { rm $@; exit 1; } 26 30 27 # i386 emulation test (test various opcodes) */31 # i386/x86_64 emulation test (test various opcodes) */ 28 32 test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S \ 29 33 test-i386.h test-i386-shift.h test-i386-muldiv.h 30 $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ test-i386.c \ 31 test-i386-code16.S test-i386-vm86.S -lm 34 $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ \ 35 test-i386.c test-i386-code16.S test-i386-vm86.S -lm 36 37 test-x86_64: test-i386.c \ 38 test-i386.h test-i386-shift.h test-i386-muldiv.h 39 $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ test-i386.c -lm 32 40 33 41 ifeq ($(ARCH),i386) … … 65 73 # NOTE: -fomit-frame-pointer is currently needed : this is a bug in libqemu 66 74 qruncom: qruncom.c ../i386-user/libqemu.a 67 $(CC) $(CFLAGS) -fomit-frame-pointer $(LDFLAGS) -I../target-i386 -I.. -I../i386-user \75 $(CC) $(CFLAGS) -fomit-frame-pointer $(LDFLAGS) -I../target-i386 -I.. -I../i386-user -I../fpu \ 68 76 -o $@ $< -L../i386-user -lqemu -lm 69 77 … … 75 83 arm-linux-gcc -Wall -g -O2 -c -o $@ $< 76 84 85 # MIPS test 86 hello-mips: hello-mips.c 87 mips-linux-gnu-gcc -nostdlib -static -mno-abicalls -fno-PIC -mabi=32 -Wall -Wextra -g -O2 -o $@ $< 88 89 hello-mipsel: hello-mips.c 90 mipsel-linux-gnu-gcc -nostdlib -static -mno-abicalls -fno-PIC -mabi=32 -Wall -Wextra -g -O2 -o $@ $< 91 77 92 # XXX: find a way to compile easily a test for each arch 78 93 test2: 79 @for arch in i386 arm sparc ppc; do \94 @for arch in i386 arm armeb sparc ppc mips mipsel; do \ 80 95 ../$${arch}-user/qemu-$${arch} $${arch}/ls -l linux-test.c ; \ 81 96 done 82 97 83 98 clean: 84 rm -f *~ *.o test-i386.out test-i386.ref qruncom $(TESTS) 99 rm -f *~ *.o test-i386.out test-i386.ref \ 100 test-x86_64.log test-x86_64.ref qruncom $(TESTS)
Note:
See TracChangeset
for help on using the changeset viewer.