Revision e5fd43a9
b/tests/Makefile | ||
---|---|---|
1 | 1 |
-include ../config-host.mak |
2 |
VPATH=$(SRC_PATH)/tests |
|
2 | 3 |
|
3 | 4 |
CFLAGS=-Wall -O2 -g -fno-strict-aliasing |
4 | 5 |
#CFLAGS+=-msse2 |
... | ... | |
33 | 34 |
test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S \ |
34 | 35 |
test-i386.h test-i386-shift.h test-i386-muldiv.h |
35 | 36 |
$(CC) -m32 $(CFLAGS) $(LDFLAGS) -static -o $@ \ |
36 |
test-i386.c test-i386-code16.S test-i386-vm86.S -lm
|
|
37 |
$(<D)/test-i386.c $(<D)/test-i386-code16.S $(<D)/test-i386-vm86.S -lm
|
|
37 | 38 |
|
38 | 39 |
test-x86_64: test-i386.c \ |
39 | 40 |
test-i386.h test-i386-shift.h test-i386-muldiv.h |
40 |
$(CC) -m64 $(CFLAGS) $(LDFLAGS) -static -o $@ test-i386.c -lm |
|
41 |
$(CC) -m64 $(CFLAGS) $(LDFLAGS) -static -o $@ $(<D)/test-i386.c -lm
|
|
41 | 42 |
|
42 | 43 |
ifeq ($(ARCH),i386) |
43 | 44 |
test: test-i386 |
Also available in: Unified diff