Makefile 424 B

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