1 #MSVC Makefile [tested with MSVC 6.00 with SP5]
5 # note optimizations are turned off because it causes a bug in aes.c that cannot be rectified [right away]
6 CFLAGS = /I. /Ox /DWIN32 /W3
10 #List of objects to compile.
11 OBJECTS=keyring.obj gf.obj mem.obj sprng.obj ecc.obj base64.obj dh.obj rsa.obj \
12 bits.obj yarrow.obj cfb.obj ofb.obj ecb.obj ctr.obj cbc.obj hash.obj tiger.obj sha1.obj \
13 md5.obj md4.obj md2.obj sha256.obj sha512.obj xtea.obj aes.obj des.obj \
14 safer_tab.obj safer.obj safer+.obj rc4.obj rc2.obj rc6.obj rc5.obj cast5.obj noekeon.obj \
15 blowfish.obj crypt.obj mpi.obj prime.obj twofish.obj packet.obj hmac.obj strings.obj
18 lib /out:tomcrypt.lib $(OBJECTS)
20 test.obj: demos/test.c
21 cl $(CFLAGS) /c demos/test.c
23 test: library test.obj
24 cl test.obj tomcrypt.lib advapi32.lib
26 x86_prof: demos/x86_prof.c library
27 nasm -f win32 demos/timer.asm
28 cl $(CFLAGS) demos/x86_prof.c demos/timer.obj tomcrypt.lib advapi32.lib