Makefile revision 8d3f9624838fe3f51aa71276ada9759b407a0ad3
0dc974a9a2e66d676505db23524ebff105fb36a9Cathy Zhou#CFLAGS+=-msse2
0dc974a9a2e66d676505db23524ebff105fb36a9Cathy ZhouTESTS=linux-test testthread sha1-i386 test-i386 runcom
0dc974a9a2e66d676505db23524ebff105fb36a9Cathy Zhou#TESTS+=test_path
0dc974a9a2e66d676505db23524ebff105fb36a9Cathy Zhou $(CC) -nostdlib $(CFLAGS) -static $(LDFLAGS) -o $@ $<
0dc974a9a2e66d676505db23524ebff105fb36a9Cathy Zhou ./$@ || { rm $@; exit 1; }
0dc974a9a2e66d676505db23524ebff105fb36a9Cathy Zhou# i386/x86_64 emulation test (test various opcodes) */
0dc974a9a2e66d676505db23524ebff105fb36a9Cathy Zhoutest-i386: test-i386.c test-i386-code16.S test-i386-vm86.S \
0dc974a9a2e66d676505db23524ebff105fb36a9Cathy Zhou test-i386.c test-i386-code16.S test-i386-vm86.S -lm
0dc974a9a2e66d676505db23524ebff105fb36a9Cathy Zhou $(CC) $(CFLAGS) $(LDFLAGS) -static -o $@ test-i386.c -lm
test: test-i386
time ./sha1