comparison makefile.icc @ 143:5d99163f7e32 libtomcrypt-orig

import of libtomcrypt 0.99
author Matt Johnston <matt@ucc.asn.au>
date Sun, 19 Dec 2004 11:34:45 +0000
parents 6362d3854bb4
children 1c15b283127b
comparison
equal deleted inserted replaced
15:6362d3854bb4 143:5d99163f7e32
39 # N - P4 Northwood 39 # N - P4 Northwood
40 # P - P4 Prescott 40 # P - P4 Prescott
41 # B - Blend of P4 and PM [mobile] 41 # B - Blend of P4 and PM [mobile]
42 # 42 #
43 # Default to just generic max opts 43 # Default to just generic max opts
44 CFLAGS += -O3 -xN -ip 44 CFLAGS += -O3 -xN -ip
45 45
46 # want to see stuff? 46 # want to see stuff?
47 #CFLAGS += -opt_report 47 #CFLAGS += -opt_report
48 48
49 #These flags control how the library gets built. 49 #These flags control how the library gets built.
77 crypt_prng_descriptor.o crypt_register_prng.o crypt_cipher_descriptor.o \ 77 crypt_prng_descriptor.o crypt_register_prng.o crypt_cipher_descriptor.o \
78 crypt_find_cipher_id.o crypt_find_prng.o crypt_prng_is_valid.o \ 78 crypt_find_cipher_id.o crypt_find_prng.o crypt_prng_is_valid.o \
79 crypt_unregister_cipher.o crypt_cipher_is_valid.o crypt_find_hash.o \ 79 crypt_unregister_cipher.o crypt_cipher_is_valid.o crypt_find_hash.o \
80 crypt_hash_descriptor.o crypt_register_cipher.o crypt_unregister_hash.o \ 80 crypt_hash_descriptor.o crypt_register_cipher.o crypt_unregister_hash.o \
81 \ 81 \
82 sprng.o yarrow.o rc4.o rng_get_bytes.o rng_make_prng.o \ 82 sober128.o fortuna.o sprng.o yarrow.o rc4.o rng_get_bytes.o rng_make_prng.o \
83 \ 83 \
84 rand_prime.o is_prime.o \ 84 rand_prime.o is_prime.o \
85 \ 85 \
86 ecc.o dh.o \ 86 ecc.o dh.o \
87 \ 87 \
88 rsa_decrypt_key.o rsa_encrypt_key.o rsa_exptmod.o rsa_free.o rsa_make_key.o \ 88 rsa_decrypt_key.o rsa_encrypt_key.o rsa_exptmod.o rsa_free.o rsa_make_key.o \
89 rsa_sign_hash.o rsa_verify_hash.o rsa_export.o rsa_import.o tim_exptmod.o \ 89 rsa_sign_hash.o rsa_verify_hash.o rsa_export.o rsa_import.o tim_exptmod.o \
90 rsa_v15_encrypt_key.o rsa_v15_decrypt_key.o rsa_v15_sign_hash.o rsa_v15_verify_hash.o \
90 \ 91 \
91 dsa_export.o dsa_free.o dsa_import.o dsa_make_key.o dsa_sign_hash.o \ 92 dsa_export.o dsa_free.o dsa_import.o dsa_make_key.o dsa_sign_hash.o \
92 dsa_verify_hash.o dsa_verify_key.o \ 93 dsa_verify_hash.o dsa_verify_key.o \
93 \ 94 \
94 aes.o aes_enc.o \ 95 aes.o aes_enc.o \
95 \ 96 \
96 blowfish.o des.o safer_tab.o safer.o saferp.o rc2.o xtea.o \ 97 blowfish.o des.o safer_tab.o safer.o saferp.o rc2.o xtea.o \
97 rc6.o rc5.o cast5.o noekeon.o twofish.o skipjack.o \ 98 rc6.o rc5.o cast5.o noekeon.o twofish.o skipjack.o \
98 \ 99 \
99 md2.o md4.o md5.o sha1.o sha256.o sha512.o tiger.o whirl.o \ 100 md2.o md4.o md5.o sha1.o sha256.o sha512.o tiger.o whirl.o \
100 rmd128.o rmd160.o \ 101 rmd128.o rmd160.o chc.o \
101 \ 102 \
102 packet_store_header.o packet_valid_header.o \ 103 packet_store_header.o packet_valid_header.o \
103 \ 104 \
104 eax_addheader.o eax_decrypt.o eax_decrypt_verify_memory.o eax_done.o eax_encrypt.o \ 105 eax_addheader.o eax_decrypt.o eax_decrypt_verify_memory.o eax_done.o eax_encrypt.o \
105 eax_encrypt_authenticate_memory.o eax_init.o eax_test.o \ 106 eax_encrypt_authenticate_memory.o eax_init.o eax_test.o \
127 pkcs_1_pss_encode.o pkcs_1_pss_decode.o pkcs_1_i2osp.o pkcs_1_os2ip.o \ 128 pkcs_1_pss_encode.o pkcs_1_pss_decode.o pkcs_1_i2osp.o pkcs_1_os2ip.o \
128 pkcs_1_v15_es_encode.o pkcs_1_v15_es_decode.o pkcs_1_v15_sa_encode.o pkcs_1_v15_sa_decode.o \ 129 pkcs_1_v15_es_encode.o pkcs_1_v15_es_decode.o pkcs_1_v15_sa_encode.o pkcs_1_v15_sa_decode.o \
129 \ 130 \
130 pkcs_5_1.o pkcs_5_2.o \ 131 pkcs_5_1.o pkcs_5_2.o \
131 \ 132 \
133 der_encode_integer.o der_decode_integer.o der_length_integer.o \
134 der_put_multi_integer.o der_get_multi_integer.o \
135 \
132 burn_stack.o zeromem.o \ 136 burn_stack.o zeromem.o \
137 \
133 $(MPIOBJECT) 138 $(MPIOBJECT)
134 139
135 140
136 #ciphers come in two flavours... enc+dec and enc 141 #ciphers come in two flavours... enc+dec and enc
137 aes_enc.o: aes.c aes_tab.c 142 aes_enc.o: aes.c aes_tab.c
148 153
149 #Compressed filenames 154 #Compressed filenames
150 COMPRESSED=crypt.tar.bz2 crypt.zip crypt.tar.gz 155 COMPRESSED=crypt.tar.bz2 crypt.zip crypt.tar.gz
151 156
152 #Header files used by libtomcrypt. 157 #Header files used by libtomcrypt.
153 HEADERS=tommath.h mycrypt_cfg.h mycrypt_gf.h mycrypt_kr.h \ 158 HEADERS=ltc_tommath.h mycrypt_cfg.h \
154 mycrypt_misc.h mycrypt_prng.h mycrypt_cipher.h mycrypt_hash.h \ 159 mycrypt_misc.h mycrypt_prng.h mycrypt_cipher.h mycrypt_hash.h \
155 mycrypt_macros.h mycrypt_pk.h mycrypt.h mycrypt_argchk.h mycrypt_custom.h 160 mycrypt_macros.h mycrypt_pk.h mycrypt.h mycrypt_argchk.h mycrypt_custom.h
156 161
157 #These are the rules to make certain object files. 162 #These are the rules to make certain object files.
158 rsa.o: rsa.c rsa_sys.c 163 rsa.o: rsa.c rsa_sys.c
184 x86_prof: library $(PROFS) 189 x86_prof: library $(PROFS)
185 $(CC) $(PROFS) $(LIBNAME) -o $(PROF) 190 $(CC) $(PROFS) $(LIBNAME) -o $(PROF)
186 191
187 tv_gen: library $(TVS) 192 tv_gen: library $(TVS)
188 $(CC) $(TVS) $(LIBNAME) -o $(TV) 193 $(CC) $(TVS) $(LIBNAME) -o $(TV)
194
195 profiled:
196 make clean
197 make CFLAGS="$(CFLAGS) -prof_gen" x86_prof
198 ./x86_prof
199 rm *.o *.a x86_prof
200 make CFLAGS="$(CFLAGS) -prof_use" x86_prof
189 201
190 202
191 #This rule installs the library and the header files. This must be run 203 #This rule installs the library and the header files. This must be run
192 #as root in order to have a high enough permission to write to the correct 204 #as root in order to have a high enough permission to write to the correct
193 #directories and to set the owner and group to root. 205 #directories and to set the owner and group to root.