Mercurial > dropbear
comparison makefile.icc @ 209:39d5d58461d6 libtomcrypt-orig LTC_1.05
Import of libtomcrypt 1.05
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 06 Jul 2005 03:53:40 +0000 |
parents | 1c15b283127b |
children |
comparison
equal
deleted
inserted
replaced
191:1c15b283127b | 209:39d5d58461d6 |
---|---|
20 # Archiver [makes .a files] | 20 # Archiver [makes .a files] |
21 #AR=ar | 21 #AR=ar |
22 #ARFLAGS=r | 22 #ARFLAGS=r |
23 | 23 |
24 # Compilation flags. Note the += does not write over the user's CFLAGS! | 24 # Compilation flags. Note the += does not write over the user's CFLAGS! |
25 CFLAGS += -c -I./src/headers/ -DINTEL_CC | 25 CFLAGS += -c -Isrc/headers/ -Itestprof/ -DINTEL_CC |
26 | 26 |
27 #The default rule for make builds the libtomcrypt library. | 27 #The default rule for make builds the libtomcrypt library. |
28 default:library | 28 default:library |
29 | 29 |
30 # optimize for SPEED | 30 # optimize for SPEED |
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 ifdef LTC_SMALL | |
45 CFLAGS += -O2 -xP -ip | |
46 endif | |
47 | |
48 ifndef IGNORE_SPEED | |
44 CFLAGS += -O3 -xP -ip | 49 CFLAGS += -O3 -xP -ip |
50 endif | |
45 | 51 |
46 # want to see stuff? | 52 # want to see stuff? |
47 #CFLAGS += -opt_report | 53 #CFLAGS += -opt_report |
48 | 54 |
49 #These flags control how the library gets built. | 55 #These flags control how the library gets built. |
120 src/modes/ctr/ctr_decrypt.o src/modes/ctr/ctr_done.o src/modes/ctr/ctr_encrypt.o \ | 126 src/modes/ctr/ctr_decrypt.o src/modes/ctr/ctr_done.o src/modes/ctr/ctr_encrypt.o \ |
121 src/modes/ctr/ctr_getiv.o src/modes/ctr/ctr_setiv.o src/modes/ctr/ctr_start.o \ | 127 src/modes/ctr/ctr_getiv.o src/modes/ctr/ctr_setiv.o src/modes/ctr/ctr_start.o \ |
122 src/modes/ecb/ecb_decrypt.o src/modes/ecb/ecb_done.o src/modes/ecb/ecb_encrypt.o \ | 128 src/modes/ecb/ecb_decrypt.o src/modes/ecb/ecb_done.o src/modes/ecb/ecb_encrypt.o \ |
123 src/modes/ecb/ecb_start.o src/modes/ofb/ofb_decrypt.o src/modes/ofb/ofb_done.o \ | 129 src/modes/ecb/ecb_start.o src/modes/ofb/ofb_decrypt.o src/modes/ofb/ofb_done.o \ |
124 src/modes/ofb/ofb_encrypt.o src/modes/ofb/ofb_getiv.o src/modes/ofb/ofb_setiv.o \ | 130 src/modes/ofb/ofb_encrypt.o src/modes/ofb/ofb_getiv.o src/modes/ofb/ofb_setiv.o \ |
125 src/modes/ofb/ofb_start.o src/pk/asn1/der/der_decode_integer.o src/pk/asn1/der/der_encode_integer.o \ | 131 src/modes/ofb/ofb_start.o src/pk/asn1/der/bit/der_decode_bit_string.o \ |
126 src/pk/asn1/der/der_get_multi_integer.o src/pk/asn1/der/der_length_integer.o \ | 132 src/pk/asn1/der/bit/der_encode_bit_string.o src/pk/asn1/der/bit/der_length_bit_string.o \ |
127 src/pk/asn1/der/der_put_multi_integer.o src/pk/dh/dh.o src/pk/dsa/dsa_export.o src/pk/dsa/dsa_free.o \ | 133 src/pk/asn1/der/choice/der_decode_choice.o src/pk/asn1/der/ia5/der_decode_ia5_string.o \ |
128 src/pk/dsa/dsa_import.o src/pk/dsa/dsa_make_key.o src/pk/dsa/dsa_sign_hash.o \ | 134 src/pk/asn1/der/ia5/der_encode_ia5_string.o src/pk/asn1/der/ia5/der_length_ia5_string.o \ |
129 src/pk/dsa/dsa_verify_hash.o src/pk/dsa/dsa_verify_key.o src/pk/ecc/ecc.o src/pk/packet_store_header.o \ | 135 src/pk/asn1/der/integer/der_decode_integer.o src/pk/asn1/der/integer/der_encode_integer.o \ |
130 src/pk/packet_valid_header.o src/pk/pkcs1/pkcs_1_i2osp.o src/pk/pkcs1/pkcs_1_mgf1.o \ | 136 src/pk/asn1/der/integer/der_length_integer.o \ |
131 src/pk/pkcs1/pkcs_1_oaep_decode.o src/pk/pkcs1/pkcs_1_oaep_encode.o src/pk/pkcs1/pkcs_1_os2ip.o \ | 137 src/pk/asn1/der/object_identifier/der_decode_object_identifier.o \ |
132 src/pk/pkcs1/pkcs_1_pss_decode.o src/pk/pkcs1/pkcs_1_pss_encode.o src/pk/pkcs1/pkcs_1_v15_es_decode.o \ | 138 src/pk/asn1/der/object_identifier/der_encode_object_identifier.o \ |
133 src/pk/pkcs1/pkcs_1_v15_es_encode.o src/pk/pkcs1/pkcs_1_v15_sa_decode.o \ | 139 src/pk/asn1/der/object_identifier/der_length_object_identifier.o \ |
134 src/pk/pkcs1/pkcs_1_v15_sa_encode.o src/pk/rsa/rsa_decrypt_key.o src/pk/rsa/rsa_encrypt_key.o \ | 140 src/pk/asn1/der/octet/der_decode_octet_string.o src/pk/asn1/der/octet/der_encode_octet_string.o \ |
141 src/pk/asn1/der/octet/der_length_octet_string.o \ | |
142 src/pk/asn1/der/printable_string/der_decode_printable_string.o \ | |
143 src/pk/asn1/der/printable_string/der_encode_printable_string.o \ | |
144 src/pk/asn1/der/printable_string/der_length_printable_string.o \ | |
145 src/pk/asn1/der/sequence/der_decode_sequence.o src/pk/asn1/der/sequence/der_decode_sequence_multi.o \ | |
146 src/pk/asn1/der/sequence/der_encode_sequence.o src/pk/asn1/der/sequence/der_encode_sequence_multi.o \ | |
147 src/pk/asn1/der/sequence/der_length_sequence.o \ | |
148 src/pk/asn1/der/short_integer/der_decode_short_integer.o \ | |
149 src/pk/asn1/der/short_integer/der_encode_short_integer.o \ | |
150 src/pk/asn1/der/short_integer/der_length_short_integer.o src/pk/asn1/der/utctime/der_decode_utctime.o \ | |
151 src/pk/asn1/der/utctime/der_encode_utctime.o src/pk/asn1/der/utctime/der_length_utctime.o \ | |
152 src/pk/dh/dh.o src/pk/dsa/dsa_export.o src/pk/dsa/dsa_free.o src/pk/dsa/dsa_import.o \ | |
153 src/pk/dsa/dsa_make_key.o src/pk/dsa/dsa_sign_hash.o src/pk/dsa/dsa_verify_hash.o \ | |
154 src/pk/dsa/dsa_verify_key.o src/pk/ecc/ecc.o src/pk/packet_store_header.o src/pk/packet_valid_header.o \ | |
155 src/pk/pkcs1/pkcs_1_i2osp.o src/pk/pkcs1/pkcs_1_mgf1.o src/pk/pkcs1/pkcs_1_oaep_decode.o \ | |
156 src/pk/pkcs1/pkcs_1_oaep_encode.o src/pk/pkcs1/pkcs_1_os2ip.o src/pk/pkcs1/pkcs_1_pss_decode.o \ | |
157 src/pk/pkcs1/pkcs_1_pss_encode.o src/pk/rsa/rsa_decrypt_key.o src/pk/rsa/rsa_encrypt_key.o \ | |
135 src/pk/rsa/rsa_export.o src/pk/rsa/rsa_exptmod.o src/pk/rsa/rsa_free.o src/pk/rsa/rsa_import.o \ | 158 src/pk/rsa/rsa_export.o src/pk/rsa/rsa_exptmod.o src/pk/rsa/rsa_free.o src/pk/rsa/rsa_import.o \ |
136 src/pk/rsa/rsa_make_key.o src/pk/rsa/rsa_sign_hash.o src/pk/rsa/rsa_v15_decrypt_key.o \ | 159 src/pk/rsa/rsa_make_key.o src/pk/rsa/rsa_sign_hash.o src/pk/rsa/rsa_verify_hash.o src/prngs/fortuna.o \ |
137 src/pk/rsa/rsa_v15_encrypt_key.o src/pk/rsa/rsa_v15_sign_hash.o src/pk/rsa/rsa_v15_verify_hash.o \ | 160 src/prngs/rc4.o src/prngs/rng_get_bytes.o src/prngs/rng_make_prng.o src/prngs/sober128.o \ |
138 src/pk/rsa/rsa_verify_hash.o src/prngs/fortuna.o src/prngs/rc4.o src/prngs/rng_get_bytes.o \ | 161 src/prngs/sprng.o src/prngs/yarrow.o |
139 src/prngs/rng_make_prng.o src/prngs/sober128.o src/prngs/sprng.o src/prngs/yarrow.o | 162 |
140 | 163 HEADERS=src/headers/tommath_superclass.h src/headers/tomcrypt_cfg.h src/headers/tomcrypt_mac.h \ |
141 HEADERS=src/headers/tommath_superclass.h src/headers/tomcrypt_cfg.h \ | 164 src/headers/tomcrypt_macros.h src/headers/tomcrypt_custom.h src/headers/tomcrypt_argchk.h \ |
142 src/headers/tomcrypt_mac.h src/headers/tomcrypt_macros.h \ | 165 src/headers/tomcrypt_cipher.h src/headers/tomcrypt_pk.h src/headers/tommath_class.h \ |
143 src/headers/tomcrypt_custom.h src/headers/tomcrypt_argchk.h \ | 166 src/headers/ltc_tommath.h src/headers/tomcrypt_hash.h src/headers/tomcrypt_misc.h \ |
144 src/headers/tomcrypt_cipher.h src/headers/tomcrypt_pk.h \ | 167 src/headers/tomcrypt.h src/headers/tomcrypt_pkcs.h src/headers/tomcrypt_prng.h testprof/tomcrypt_test.h |
145 src/headers/tommath_class.h src/headers/ltc_tommath.h src/headers/tomcrypt_hash.h \ | |
146 src/headers/tomcrypt_misc.h src/headers/tomcrypt.h src/headers/tomcrypt_pkcs.h \ | |
147 src/headers/tomcrypt_prng.h testprof/tomcrypt_test.h | |
148 | 168 |
149 #ciphers come in two flavours... enc+dec and enc | 169 #ciphers come in two flavours... enc+dec and enc |
150 aes_enc.o: aes.c aes_tab.c | 170 aes_enc.o: aes.c aes_tab.c |
151 $(CC) $(CFLAGS) -DENCRYPT_ONLY -c aes.c -o aes_enc.o | 171 $(CC) $(CFLAGS) -DENCRYPT_ONLY -c aes.c -o aes_enc.o |
152 | 172 |
212 #directories and to set the owner and group to root. | 232 #directories and to set the owner and group to root. |
213 install: library | 233 install: library |
214 install -d -g root -o root $(DESTDIR)$(LIBPATH) | 234 install -d -g root -o root $(DESTDIR)$(LIBPATH) |
215 install -d -g root -o root $(DESTDIR)$(INCPATH) | 235 install -d -g root -o root $(DESTDIR)$(INCPATH) |
216 install -g root -o root $(LIBNAME) $(DESTDIR)$(LIBPATH) | 236 install -g root -o root $(LIBNAME) $(DESTDIR)$(LIBPATH) |
237 install -g root -o root $(LIBTEST) $(DESTDIR)$(LIBPATH) | |
217 install -g root -o root $(HEADERS) $(DESTDIR)$(INCPATH) | 238 install -g root -o root $(HEADERS) $(DESTDIR)$(INCPATH) |
239 | |
240 # $Source: /cvs/libtom/libtomcrypt/makefile.icc,v $ | |
241 # $Revision: 1.33 $ | |
242 # $Date: 2005/06/19 18:22:31 $ |