15 lines
424 B
Makefile
15 lines
424 B
Makefile
CC=gcc
|
|
CC_I386=$(CC) -m32
|
|
CFLAGS=-Wall -O2 -g -fno-strict-aliasing -static -mmmx -msse
|
|
LDFLAGS=
|
|
|
|
|
|
# i386/x86_64 emulation test (test various opcodes) */
|
|
test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S \
|
|
test-i386.h test-i386-shift.h test-i386-muldiv.h
|
|
$(CC_I386) $(CFLAGS) $(LDFLAGS) -o $@ \
|
|
$(<D)/test-i386.c $(<D)/test-i386-code16.S $(<D)/test-i386-vm86.S -lm
|
|
|
|
clean:
|
|
rm -f test-i386
|