Makefile 468 B

1234567891011121314151617
  1. CC=gcc
  2. CC_I386=$(CC) -m32
  3. QEMU_INCLUDES += -I../..
  4. CFLAGS=-Wall -O2 -g -fno-strict-aliasing -static -mmmx -msse
  5. LDFLAGS=
  6. # i386/x86_64 emulation test (test various opcodes) */
  7. test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S \
  8. test-i386.h test-i386-shift.h test-i386-muldiv.h
  9. $(CC_I386) $(QEMU_INCLUDES) $(CFLAGS) $(LDFLAGS) -o $@ \
  10. $(<D)/test-i386.c $(<D)/test-i386-code16.S $(<D)/test-i386-vm86.S -lm
  11. clean:
  12. rm -f test-i386