comparison makefile.msvc @ 15:6362d3854bb4 libtomcrypt-orig

0.96 release of LibTomCrypt
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Jun 2004 14:07:21 +0000
parents 7faae8f46238
children 09ab3354aa21 5d99163f7e32
comparison
equal deleted inserted replaced
3:7faae8f46238 15:6362d3854bb4
6 default: library 6 default: library
7 7
8 # leave this blank and link against libtommath if you want better link resolution 8 # leave this blank and link against libtommath if you want better link resolution
9 MPIOBJECT=mpi.obj 9 MPIOBJECT=mpi.obj
10 10
11 #List of objects to compile. 11 OBJECTS=error_to_string.obj mpi_to_ltc_error.obj base64_encode.obj base64_decode.obj \
12 OBJECTS=keyring.obj gf.obj strings.obj base64.obj \
13 \ 12 \
14 crypt.obj crypt_find_cipher.obj crypt_find_hash_any.obj \ 13 crypt.obj crypt_find_cipher.obj crypt_find_hash_any.obj \
15 crypt_hash_is_valid.obj crypt_register_hash.obj crypt_unregister_prng.obj \ 14 crypt_hash_is_valid.obj crypt_register_hash.obj crypt_unregister_prng.obj \
16 crypt_argchk.obj crypt_find_cipher_any.obj crypt_find_hash_id.obj \ 15 crypt_argchk.obj crypt_find_cipher_any.obj crypt_find_hash_id.obj \
17 crypt_prng_descriptor.obj crypt_register_prng.obj crypt_cipher_descriptor.obj \ 16 crypt_prng_descriptor.obj crypt_register_prng.obj crypt_cipher_descriptor.obj \
23 \ 22 \
24 rand_prime.obj is_prime.obj \ 23 rand_prime.obj is_prime.obj \
25 \ 24 \
26 ecc.obj dh.obj \ 25 ecc.obj dh.obj \
27 \ 26 \
28 rsa.obj rsa_exptmod.obj rsa_free.obj rsa_make_key.obj \ 27 rsa_decrypt_key.obj rsa_encrypt_key.obj rsa_exptmod.obj rsa_free.obj rsa_make_key.obj \
28 rsa_sign_hash.obj rsa_verify_hash.obj rsa_export.obj rsa_import.obj tim_exptmod.obj \
29 \ 29 \
30 dsa_export.obj dsa_free.obj dsa_import.obj dsa_make_key.obj dsa_sign_hash.obj dsa_verify_hash.obj dsa_verify_key.obj \ 30 dsa_export.obj dsa_free.obj dsa_import.obj dsa_make_key.obj dsa_sign_hash.obj \
31 dsa_verify_hash.obj dsa_verify_key.obj \
31 \ 32 \
32 xtea.obj aes.obj des.obj safer_tab.obj safer.obj saferp.obj rc2.obj \ 33 aes.obj aes_enc.obj \
33 rc6.obj rc5.obj cast5.obj noekeon.obj blowfish.obj twofish.obj skipjack.obj \ 34 \
35 blowfish.obj des.obj safer_tab.obj safer.obj saferp.obj rc2.obj xtea.obj \
36 rc6.obj rc5.obj cast5.obj noekeon.obj twofish.obj skipjack.obj \
34 \ 37 \
35 md2.obj md4.obj md5.obj sha1.obj sha256.obj sha512.obj tiger.obj whirl.obj \ 38 md2.obj md4.obj md5.obj sha1.obj sha256.obj sha512.obj tiger.obj whirl.obj \
36 rmd128.obj rmd160.obj \ 39 rmd128.obj rmd160.obj \
37 \ 40 \
38 packet_store_header.obj packet_valid_header.obj \ 41 packet_store_header.obj packet_valid_header.obj \
47 omac_done.obj omac_file.obj omac_init.obj omac_memory.obj omac_process.obj omac_test.obj \ 50 omac_done.obj omac_file.obj omac_init.obj omac_memory.obj omac_process.obj omac_test.obj \
48 \ 51 \
49 pmac_done.obj pmac_file.obj pmac_init.obj pmac_memory.obj pmac_ntz.obj pmac_process.obj \ 52 pmac_done.obj pmac_file.obj pmac_init.obj pmac_memory.obj pmac_ntz.obj pmac_process.obj \
50 pmac_shift_xor.obj pmac_test.obj \ 53 pmac_shift_xor.obj pmac_test.obj \
51 \ 54 \
52 cbc_start.obj cbc_encrypt.obj cbc_decrypt.obj \ 55 cbc_start.obj cbc_encrypt.obj cbc_decrypt.obj cbc_getiv.obj cbc_setiv.obj \
53 cfb_start.obj cfb_encrypt.obj cfb_decrypt.obj \ 56 cfb_start.obj cfb_encrypt.obj cfb_decrypt.obj cfb_getiv.obj cfb_setiv.obj \
54 ofb_start.obj ofb_encrypt.obj ofb_decrypt.obj \ 57 ofb_start.obj ofb_encrypt.obj ofb_decrypt.obj ofb_getiv.obj ofb_setiv.obj \
55 ctr_start.obj ctr_encrypt.obj ctr_decrypt.obj \ 58 ctr_start.obj ctr_encrypt.obj ctr_decrypt.obj ctr_getiv.obj ctr_setiv.obj \
56 ecb_start.obj ecb_encrypt.obj ecb_decrypt.obj \ 59 ecb_start.obj ecb_encrypt.obj ecb_decrypt.obj \
57 \ 60 \
58 hash_file.obj hash_filehandle.obj hash_memory.obj \ 61 hash_file.obj hash_filehandle.obj hash_memory.obj \
59 \ 62 \
60 hmac_done.obj hmac_file.obj hmac_init.obj hmac_memory.obj hmac_process.obj hmac_test.obj \ 63 hmac_done.obj hmac_file.obj hmac_init.obj hmac_memory.obj hmac_process.obj hmac_test.obj \
61 \ 64 \
62 pkcs_1_mgf1.obj pkcs_1_oaep_encode.obj pkcs_1_oaep_decode.obj \ 65 pkcs_1_mgf1.obj pkcs_1_oaep_encode.obj pkcs_1_oaep_decode.obj \
63 pkcs_1_pss_encode.obj pkcs_1_pss_decode.obj pkcs_1_i2osp.obj pkcs_1_os2ip.obj \ 66 pkcs_1_pss_encode.obj pkcs_1_pss_decode.obj pkcs_1_i2osp.obj pkcs_1_os2ip.obj \
67 pkcs_1_v15_es_encode.obj pkcs_1_v15_es_decode.obj pkcs_1_v15_sa_encode.obj pkcs_1_v15_sa_decode.obj \
64 \ 68 \
65 pkcs_5_1.obj pkcs_5_2.obj \ 69 pkcs_5_1.obj pkcs_5_2.obj \
66 \ 70 \
67 burn_stack.obj zeromem.obj \ 71 burn_stack.obj zeromem.obj \
68 $(MPIOBJECT) 72 $(MPIOBJECT)
73
74 #ciphers come in two flavours... enc+dec and enc
75 aes_enc.obj: aes.c aes_tab.c
76 $(CC) $(CFLAGS) /DENCRYPT_ONLY /c aes.c /Foaes_enc.obj
69 77
70 library: $(OBJECTS) 78 library: $(OBJECTS)
71 lib /out:tomcrypt.lib $(OBJECTS) 79 lib /out:tomcrypt.lib $(OBJECTS)
72
73 test.obj: demos/test.c
74 cl $(CFLAGS) /c demos/test.c
75
76 test: library test.obj
77 cl test.obj tomcrypt.lib advapi32.lib
78 80
79 x86_prof: demos/x86_prof.c library 81 x86_prof: demos/x86_prof.c library
80 cl $(CFLAGS) demos/x86_prof.c tomcrypt.lib advapi32.lib 82 cl $(CFLAGS) demos/x86_prof.c tomcrypt.lib advapi32.lib
81 83
82 tv_gen: demos/tv_gen.c library 84 tv_gen: demos/tv_gen.c library