6 |
ifeq ($(ARCH),i386) |
ifeq ($(ARCH),i386) |
7 |
TESTS=linux-test testthread sha1-i386 test-i386 runcom |
TESTS=linux-test testthread sha1-i386 test-i386 runcom |
8 |
endif |
endif |
9 |
|
ifeq ($(ARCH),x86_64) |
10 |
|
TESTS=test-x86_64 |
11 |
|
endif |
12 |
TESTS+=sha1# test_path |
TESTS+=sha1# test_path |
13 |
#TESTS+=test_path |
#TESTS+=test_path |
14 |
|
|
27 |
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< |
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< |
28 |
./$@ || { rm $@; exit 1; } |
./$@ || { rm $@; exit 1; } |
29 |
|
|
30 |
# i386 emulation test (test various opcodes) */ |
# i386/x86_64 emulation test (test various opcodes) */ |
31 |
test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S \ |
test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S \ |
32 |
test-i386.h test-i386-shift.h test-i386-muldiv.h |
test-i386.h test-i386-shift.h test-i386-muldiv.h |
33 |
$(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ test-i386.c \ |
$(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ \ |
34 |
test-i386-code16.S test-i386-vm86.S -lm |
test-i386.c test-i386-code16.S test-i386-vm86.S -lm |
35 |
|
|
36 |
|
test-x86_64: test-i386.c \ |
37 |
|
test-i386.h test-i386-shift.h test-i386-muldiv.h |
38 |
|
$(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ test-i386.c -lm |
39 |
|
|
40 |
ifeq ($(ARCH),i386) |
ifeq ($(ARCH),i386) |
41 |
test: test-i386 |
test: test-i386 |