aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile27
1 files changed, 6 insertions, 21 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 5fc813c236..c7d1154c00 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,9 +1,11 @@
-CC=gcc
+include ../config.mak
+
CFLAGS=-Wall -O2 -g
LDFLAGS=
+ifeq ($(ARCH),i386)
TESTS=hello test2 sha1 test-i386
-TESTS+=op-i386.o #op-i386.o op-ppc.o op-arm.o op-mips.o op-sparc.o
+endif
GEMU=../gemu
@@ -24,22 +26,6 @@ test: test-i386
$(GEMU) test-i386 > test-i386.out
@if diff -u test-i386.ref test-i386.out ; then echo "Auto Test OK"; fi
-# dyngen tests
-op-i386.o: op.c
- gcc $(CFLAGS) -c -o $@ $<
-
-op-ppc.o: op.c
- powerpc-linux-gcc $(CFLAGS) -c -o $@ $<
-
-op-arm.o: op.c
- arm-linux-gcc $(CFLAGS) -c -o $@ $<
-
-op-mips.o: op.c
- mips-linux-gcc $(CFLAGS) -mno-abicalls -c -o $@ $<
-
-op-sparc.o: op.c
- sparc-linux-gcc $(CFLAGS) -mflat -c -o $@ $<
-
# speed test
sha1: sha1.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
@@ -48,6 +34,5 @@ speed: sha1
time ./sha1
time $(GEMU) sha1
-# interpreter test
-interp: interp.c interploop.c
- $(CC) $(CFLAGS) -fomit-frame-pointer $(LDFLAGS) -o $@ $^
+clean:
+ rm -f *~ *.o $(TESTS)