Mercurial > dropbear
comparison makefile.icc @ 191:1c15b283127b libtomcrypt-orig
Import of libtomcrypt 1.02 with manual path rename rearrangement etc
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 06 May 2005 13:23:02 +0000 |
parents | 5d99163f7e32 |
children | 39d5d58461d6 |
comparison
equal
deleted
inserted
replaced
143:5d99163f7e32 | 191:1c15b283127b |
---|---|
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./ -DINTEL_CC | 25 CFLAGS += -c -I./src/headers/ -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 |
31 # | 31 # |
32 # -mcpu= can be pentium, pentiumpro (covers PII through PIII) or pentium4 | 32 # -mcpu= can be pentium, pentiumpro (covers PII through PIII) or pentium4 |
33 # -ax? specifies make code specifically for ? but compatible with IA-32 | 33 # -ax? specifies make code specifically for ? but compatible with IA-32 |
34 # -x? specifies compile solely for ? [not specifically IA-32 compatible] | 34 # -x? specifies compile solely for ? [not specifically IA-32 compatible] |
35 # | 35 # |
36 # where ? is | 36 # where ? is |
37 # K - PIII | 37 # K - PIII |
38 # W - first P4 [Williamette] | 38 # W - first P4 [Williamette] |
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 -xP -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. |
50 | 50 |
51 #Output filenames for various targets. | 51 #Output filenames for various targets. |
52 LIBNAME=libtomcrypt.a | 52 LIBNAME=libtomcrypt.a |
53 LIBTEST=testprof/libtomcrypt_prof.a | |
53 HASH=hashsum | 54 HASH=hashsum |
54 CRYPT=encrypt | 55 CRYPT=encrypt |
55 SMALL=small | 56 SMALL=small |
56 PROF=x86_prof | 57 PROF=x86_prof |
57 TV=tv_gen | 58 TV=tv_gen |
59 MULTI=multi | |
60 TIMING=timing | |
61 TEST=test | |
58 | 62 |
59 #LIBPATH-The directory for libtomcrypt to be installed to. | 63 #LIBPATH-The directory for libtomcrypt to be installed to. |
60 #INCPATH-The directory to install the header files for libtomcrypt. | 64 #INCPATH-The directory to install the header files for libtomcrypt. |
61 #DATAPATH-The directory to install the pdf docs. | 65 #DATAPATH-The directory to install the pdf docs. |
62 DESTDIR= | 66 DESTDIR= |
65 DATAPATH=/usr/share/doc/libtomcrypt/pdf | 69 DATAPATH=/usr/share/doc/libtomcrypt/pdf |
66 | 70 |
67 #List of objects to compile. | 71 #List of objects to compile. |
68 | 72 |
69 #Leave MPI built-in or force developer to link against libtommath? | 73 #Leave MPI built-in or force developer to link against libtommath? |
70 MPIOBJECT=mpi.o | 74 MPIOBJECT=src/misc/mpi/mpi.o |
71 | 75 |
72 OBJECTS=error_to_string.o mpi_to_ltc_error.o base64_encode.o base64_decode.o \ | 76 OBJECTS=src/ciphers/aes/aes_enc.o $(MPIOBJECT) src/ciphers/aes/aes.o src/ciphers/anubis.o \ |
73 \ | 77 src/ciphers/blowfish.o src/ciphers/cast5.o src/ciphers/des.o src/ciphers/khazad.o src/ciphers/noekeon.o \ |
74 crypt.o crypt_find_cipher.o crypt_find_hash_any.o \ | 78 src/ciphers/rc2.o src/ciphers/rc5.o src/ciphers/rc6.o src/ciphers/safer/safer.o \ |
75 crypt_hash_is_valid.o crypt_register_hash.o crypt_unregister_prng.o \ | 79 src/ciphers/safer/safer_tab.o src/ciphers/safer/saferp.o src/ciphers/skipjack.o \ |
76 crypt_argchk.o crypt_find_cipher_any.o crypt_find_hash_id.o \ | 80 src/ciphers/twofish/twofish.o src/ciphers/xtea.o src/encauth/ccm/ccm_memory.o \ |
77 crypt_prng_descriptor.o crypt_register_prng.o crypt_cipher_descriptor.o \ | 81 src/encauth/ccm/ccm_test.o src/encauth/eax/eax_addheader.o src/encauth/eax/eax_decrypt.o \ |
78 crypt_find_cipher_id.o crypt_find_prng.o crypt_prng_is_valid.o \ | 82 src/encauth/eax/eax_decrypt_verify_memory.o src/encauth/eax/eax_done.o src/encauth/eax/eax_encrypt.o \ |
79 crypt_unregister_cipher.o crypt_cipher_is_valid.o crypt_find_hash.o \ | 83 src/encauth/eax/eax_encrypt_authenticate_memory.o src/encauth/eax/eax_init.o \ |
80 crypt_hash_descriptor.o crypt_register_cipher.o crypt_unregister_hash.o \ | 84 src/encauth/eax/eax_test.o src/encauth/gcm/gcm_add_aad.o src/encauth/gcm/gcm_add_iv.o \ |
81 \ | 85 src/encauth/gcm/gcm_done.o src/encauth/gcm/gcm_gf_mult.o src/encauth/gcm/gcm_init.o \ |
82 sober128.o fortuna.o sprng.o yarrow.o rc4.o rng_get_bytes.o rng_make_prng.o \ | 86 src/encauth/gcm/gcm_memory.o src/encauth/gcm/gcm_process.o src/encauth/gcm/gcm_reset.o \ |
83 \ | 87 src/encauth/gcm/gcm_test.o src/encauth/ocb/ocb_decrypt.o src/encauth/ocb/ocb_decrypt_verify_memory.o \ |
84 rand_prime.o is_prime.o \ | 88 src/encauth/ocb/ocb_done_decrypt.o src/encauth/ocb/ocb_done_encrypt.o src/encauth/ocb/ocb_encrypt.o \ |
85 \ | 89 src/encauth/ocb/ocb_encrypt_authenticate_memory.o src/encauth/ocb/ocb_init.o src/encauth/ocb/ocb_ntz.o \ |
86 ecc.o dh.o \ | 90 src/encauth/ocb/ocb_shift_xor.o src/encauth/ocb/ocb_test.o src/encauth/ocb/s_ocb_done.o \ |
87 \ | 91 src/hashes/chc/chc.o src/hashes/helper/hash_file.o src/hashes/helper/hash_filehandle.o \ |
88 rsa_decrypt_key.o rsa_encrypt_key.o rsa_exptmod.o rsa_free.o rsa_make_key.o \ | 92 src/hashes/helper/hash_memory.o src/hashes/helper/hash_memory_multi.o src/hashes/md2.o src/hashes/md4.o \ |
89 rsa_sign_hash.o rsa_verify_hash.o rsa_export.o rsa_import.o tim_exptmod.o \ | 93 src/hashes/md5.o src/hashes/rmd128.o src/hashes/rmd160.o src/hashes/sha1.o src/hashes/sha2/sha256.o \ |
90 rsa_v15_encrypt_key.o rsa_v15_decrypt_key.o rsa_v15_sign_hash.o rsa_v15_verify_hash.o \ | 94 src/hashes/sha2/sha512.o src/hashes/tiger.o src/hashes/whirl/whirl.o src/mac/hmac/hmac_done.o \ |
91 \ | 95 src/mac/hmac/hmac_file.o src/mac/hmac/hmac_init.o src/mac/hmac/hmac_memory.o \ |
92 dsa_export.o dsa_free.o dsa_import.o dsa_make_key.o dsa_sign_hash.o \ | 96 src/mac/hmac/hmac_memory_multi.o src/mac/hmac/hmac_process.o src/mac/hmac/hmac_test.o \ |
93 dsa_verify_hash.o dsa_verify_key.o \ | 97 src/mac/omac/omac_done.o src/mac/omac/omac_file.o src/mac/omac/omac_init.o src/mac/omac/omac_memory.o \ |
94 \ | 98 src/mac/omac/omac_memory_multi.o src/mac/omac/omac_process.o src/mac/omac/omac_test.o \ |
95 aes.o aes_enc.o \ | 99 src/mac/pelican/pelican.o src/mac/pelican/pelican_memory.o src/mac/pelican/pelican_test.o \ |
96 \ | 100 src/mac/pmac/pmac_done.o src/mac/pmac/pmac_file.o src/mac/pmac/pmac_init.o src/mac/pmac/pmac_memory.o \ |
97 blowfish.o des.o safer_tab.o safer.o saferp.o rc2.o xtea.o \ | 101 src/mac/pmac/pmac_memory_multi.o src/mac/pmac/pmac_ntz.o src/mac/pmac/pmac_process.o \ |
98 rc6.o rc5.o cast5.o noekeon.o twofish.o skipjack.o \ | 102 src/mac/pmac/pmac_shift_xor.o src/mac/pmac/pmac_test.o src/misc/base64/base64_decode.o \ |
99 \ | 103 src/misc/base64/base64_encode.o src/misc/burn_stack.o src/misc/crypt/crypt.o \ |
100 md2.o md4.o md5.o sha1.o sha256.o sha512.o tiger.o whirl.o \ | 104 src/misc/crypt/crypt_argchk.o src/misc/crypt/crypt_cipher_descriptor.o \ |
101 rmd128.o rmd160.o chc.o \ | 105 src/misc/crypt/crypt_cipher_is_valid.o src/misc/crypt/crypt_find_cipher.o \ |
102 \ | 106 src/misc/crypt/crypt_find_cipher_any.o src/misc/crypt/crypt_find_cipher_id.o \ |
103 packet_store_header.o packet_valid_header.o \ | 107 src/misc/crypt/crypt_find_hash.o src/misc/crypt/crypt_find_hash_any.o \ |
104 \ | 108 src/misc/crypt/crypt_find_hash_id.o src/misc/crypt/crypt_find_prng.o \ |
105 eax_addheader.o eax_decrypt.o eax_decrypt_verify_memory.o eax_done.o eax_encrypt.o \ | 109 src/misc/crypt/crypt_hash_descriptor.o src/misc/crypt/crypt_hash_is_valid.o \ |
106 eax_encrypt_authenticate_memory.o eax_init.o eax_test.o \ | 110 src/misc/crypt/crypt_prng_descriptor.o src/misc/crypt/crypt_prng_is_valid.o \ |
107 \ | 111 src/misc/crypt/crypt_register_cipher.o src/misc/crypt/crypt_register_hash.o \ |
108 ocb_decrypt.o ocb_decrypt_verify_memory.o ocb_done_decrypt.o ocb_done_encrypt.o \ | 112 src/misc/crypt/crypt_register_prng.o src/misc/crypt/crypt_unregister_cipher.o \ |
109 ocb_encrypt.o ocb_encrypt_authenticate_memory.o ocb_init.o ocb_ntz.o \ | 113 src/misc/crypt/crypt_unregister_hash.o src/misc/crypt/crypt_unregister_prng.o \ |
110 ocb_shift_xor.o ocb_test.o s_ocb_done.o \ | 114 src/misc/error_to_string.o src/misc/mpi/is_prime.o src/misc/mpi/mpi_to_ltc_error.o \ |
111 \ | 115 src/misc/mpi/rand_prime.o src/misc/pkcs5/pkcs_5_1.o src/misc/pkcs5/pkcs_5_2.o src/misc/zeromem.o \ |
112 omac_done.o omac_file.o omac_init.o omac_memory.o omac_process.o omac_test.o \ | 116 src/modes/cbc/cbc_decrypt.o src/modes/cbc/cbc_done.o src/modes/cbc/cbc_encrypt.o \ |
113 \ | 117 src/modes/cbc/cbc_getiv.o src/modes/cbc/cbc_setiv.o src/modes/cbc/cbc_start.o \ |
114 pmac_done.o pmac_file.o pmac_init.o pmac_memory.o pmac_ntz.o pmac_process.o \ | 118 src/modes/cfb/cfb_decrypt.o src/modes/cfb/cfb_done.o src/modes/cfb/cfb_encrypt.o \ |
115 pmac_shift_xor.o pmac_test.o \ | 119 src/modes/cfb/cfb_getiv.o src/modes/cfb/cfb_setiv.o src/modes/cfb/cfb_start.o \ |
116 \ | 120 src/modes/ctr/ctr_decrypt.o src/modes/ctr/ctr_done.o src/modes/ctr/ctr_encrypt.o \ |
117 cbc_start.o cbc_encrypt.o cbc_decrypt.o cbc_getiv.o cbc_setiv.o \ | 121 src/modes/ctr/ctr_getiv.o src/modes/ctr/ctr_setiv.o src/modes/ctr/ctr_start.o \ |
118 cfb_start.o cfb_encrypt.o cfb_decrypt.o cfb_getiv.o cfb_setiv.o \ | 122 src/modes/ecb/ecb_decrypt.o src/modes/ecb/ecb_done.o src/modes/ecb/ecb_encrypt.o \ |
119 ofb_start.o ofb_encrypt.o ofb_decrypt.o ofb_getiv.o ofb_setiv.o \ | 123 src/modes/ecb/ecb_start.o src/modes/ofb/ofb_decrypt.o src/modes/ofb/ofb_done.o \ |
120 ctr_start.o ctr_encrypt.o ctr_decrypt.o ctr_getiv.o ctr_setiv.o \ | 124 src/modes/ofb/ofb_encrypt.o src/modes/ofb/ofb_getiv.o src/modes/ofb/ofb_setiv.o \ |
121 ecb_start.o ecb_encrypt.o ecb_decrypt.o \ | 125 src/modes/ofb/ofb_start.o src/pk/asn1/der/der_decode_integer.o src/pk/asn1/der/der_encode_integer.o \ |
122 \ | 126 src/pk/asn1/der/der_get_multi_integer.o src/pk/asn1/der/der_length_integer.o \ |
123 hash_file.o hash_filehandle.o hash_memory.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 \ |
124 \ | 128 src/pk/dsa/dsa_import.o src/pk/dsa/dsa_make_key.o src/pk/dsa/dsa_sign_hash.o \ |
125 hmac_done.o hmac_file.o hmac_init.o hmac_memory.o hmac_process.o hmac_test.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 \ |
126 \ | 130 src/pk/packet_valid_header.o src/pk/pkcs1/pkcs_1_i2osp.o src/pk/pkcs1/pkcs_1_mgf1.o \ |
127 pkcs_1_mgf1.o pkcs_1_oaep_encode.o pkcs_1_oaep_decode.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 \ |
128 pkcs_1_pss_encode.o pkcs_1_pss_decode.o pkcs_1_i2osp.o pkcs_1_os2ip.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 \ |
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 \ | 133 src/pk/pkcs1/pkcs_1_v15_es_encode.o src/pk/pkcs1/pkcs_1_v15_sa_decode.o \ |
130 \ | 134 src/pk/pkcs1/pkcs_1_v15_sa_encode.o src/pk/rsa/rsa_decrypt_key.o src/pk/rsa/rsa_encrypt_key.o \ |
131 pkcs_5_1.o pkcs_5_2.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 \ |
132 \ | 136 src/pk/rsa/rsa_make_key.o src/pk/rsa/rsa_sign_hash.o src/pk/rsa/rsa_v15_decrypt_key.o \ |
133 der_encode_integer.o der_decode_integer.o der_length_integer.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 \ |
134 der_put_multi_integer.o der_get_multi_integer.o \ | 138 src/pk/rsa/rsa_verify_hash.o src/prngs/fortuna.o src/prngs/rc4.o src/prngs/rng_get_bytes.o \ |
135 \ | 139 src/prngs/rng_make_prng.o src/prngs/sober128.o src/prngs/sprng.o src/prngs/yarrow.o |
136 burn_stack.o zeromem.o \ | 140 |
137 \ | 141 HEADERS=src/headers/tommath_superclass.h src/headers/tomcrypt_cfg.h \ |
138 $(MPIOBJECT) | 142 src/headers/tomcrypt_mac.h src/headers/tomcrypt_macros.h \ |
139 | 143 src/headers/tomcrypt_custom.h src/headers/tomcrypt_argchk.h \ |
144 src/headers/tomcrypt_cipher.h src/headers/tomcrypt_pk.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 | |
140 | 148 |
141 #ciphers come in two flavours... enc+dec and enc | 149 #ciphers come in two flavours... enc+dec and enc |
142 aes_enc.o: aes.c aes_tab.c | 150 aes_enc.o: aes.c aes_tab.c |
143 $(CC) $(CFLAGS) -DENCRYPT_ONLY -c aes.c -o aes_enc.o | 151 $(CC) $(CFLAGS) -DENCRYPT_ONLY -c aes.c -o aes_enc.o |
144 | 152 |
145 HASHOBJECTS=demos/hashsum.o | 153 HASHOBJECTS=demos/hashsum.o |
146 CRYPTOBJECTS=demos/encrypt.o | 154 CRYPTOBJECTS=demos/encrypt.o |
147 SMALLOBJECTS=demos/small.o | 155 SMALLOBJECTS=demos/small.o |
148 PROFS=demos/x86_prof.o | |
149 TVS=demos/tv_gen.o | 156 TVS=demos/tv_gen.o |
157 TIMINGS=demos/timing.o | |
158 TESTS=demos/test.o | |
150 | 159 |
151 #Files left over from making the crypt.pdf. | 160 #Files left over from making the crypt.pdf. |
152 LEFTOVERS=*.dvi *.log *.aux *.toc *.idx *.ilg *.ind | 161 LEFTOVERS=*.dvi *.log *.aux *.toc *.idx *.ilg *.ind |
153 | 162 |
154 #Compressed filenames | 163 #Compressed filenames |
155 COMPRESSED=crypt.tar.bz2 crypt.zip crypt.tar.gz | 164 COMPRESSED=crypt.tar.bz2 crypt.zip crypt.tar.gz |
156 | 165 |
157 #Header files used by libtomcrypt. | 166 #ciphers come in two flavours... enc+dec and enc |
158 HEADERS=ltc_tommath.h mycrypt_cfg.h \ | 167 src/ciphers/aes/aes_enc.o: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c |
159 mycrypt_misc.h mycrypt_prng.h mycrypt_cipher.h mycrypt_hash.h \ | 168 $(CC) $(CFLAGS) -DENCRYPT_ONLY -c src/ciphers/aes/aes.c -o src/ciphers/aes/aes_enc.o |
160 mycrypt_macros.h mycrypt_pk.h mycrypt.h mycrypt_argchk.h mycrypt_custom.h | |
161 | 169 |
162 #These are the rules to make certain object files. | 170 #These are the rules to make certain object files. |
163 rsa.o: rsa.c rsa_sys.c | 171 src/ciphers/aes/aes.o: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c |
164 ecc.o: ecc.c ecc_sys.c | 172 src/ciphers/twofish/twofish.o: src/ciphers/twofish/twofish.c src/ciphers/twofish/twofish_tab.c |
165 dh.o: dh.c dh_sys.c | 173 src/hashes/whirl/whirl.o: src/hashes/whirl/whirl.c src/hashes/whirl/whirltab.c |
166 aes.o: aes.c aes_tab.c | 174 src/pk/ecc/ecc.o: src/pk/ecc/ecc.c src/pk/ecc/ecc_sys.c |
167 twofish.o: twofish.c twofish_tab.c | 175 src/pk/dh/dh.o: src/pk/dh/dh.c src/pk/dh/dh_sys.c |
168 sha512.o: sha512.c sha384.c | 176 src/hashes/sha2/sha512.o: src/hashes/sha2/sha512.c src/hashes/sha2/sha384.c |
169 sha256.o: sha256.c sha224.c | 177 src/hashes/sha2/sha256.o: src/hashes/sha2/sha256.c src/hashes/sha2/sha224.c |
170 | 178 |
171 #This rule makes the libtomcrypt library. | 179 #This rule makes the libtomcrypt library. |
172 library: $(LIBNAME) | 180 library: $(LIBTEST) $(LIBNAME) |
181 | |
182 $(LIBTEST): | |
183 cd testprof ; make -f makefile.icc | |
173 | 184 |
174 $(LIBNAME): $(OBJECTS) | 185 $(LIBNAME): $(OBJECTS) |
175 $(AR) $(ARFLAGS) $@ $(OBJECTS) | 186 $(AR) $(ARFLAGS) $@ $(OBJECTS) |
187 ranlib $(LIBNAME) | |
176 | 188 |
177 #This rule makes the hash program included with libtomcrypt | 189 #This rule makes the hash program included with libtomcrypt |
178 hashsum: library $(HASHOBJECTS) | 190 hashsum: library $(HASHOBJECTS) |
179 $(CC) $(HASHOBJECTS) $(LIBNAME) -o $(HASH) $(WARN) | 191 $(CC) $(HASHOBJECTS) $(LIBNAME) -o $(HASH) $(WARN) |
180 | 192 |
184 | 196 |
185 #makes the small program | 197 #makes the small program |
186 small: library $(SMALLOBJECTS) | 198 small: library $(SMALLOBJECTS) |
187 $(CC) $(SMALLOBJECTS) $(LIBNAME) -o $(SMALL) $(WARN) | 199 $(CC) $(SMALLOBJECTS) $(LIBNAME) -o $(SMALL) $(WARN) |
188 | 200 |
189 x86_prof: library $(PROFS) | |
190 $(CC) $(PROFS) $(LIBNAME) -o $(PROF) | |
191 | |
192 tv_gen: library $(TVS) | 201 tv_gen: library $(TVS) |
193 $(CC) $(TVS) $(LIBNAME) -o $(TV) | 202 $(CC) $(TVS) $(LIBNAME) -o $(TV) |
194 | 203 |
195 profiled: | 204 timing: library $(TIMINGS) |
196 make clean | 205 $(CC) $(TIMINGS) $(LIBTEST) $(LIBNAME) -o $(TIMING) |
197 make CFLAGS="$(CFLAGS) -prof_gen" x86_prof | 206 |
198 ./x86_prof | 207 test: library $(TESTS) |
199 rm *.o *.a x86_prof | 208 $(CC) $(TESTS) $(LIBTEST) $(LIBNAME) -o $(TEST) |
200 make CFLAGS="$(CFLAGS) -prof_use" x86_prof | |
201 | |
202 | 209 |
203 #This rule installs the library and the header files. This must be run | 210 #This rule installs the library and the header files. This must be run |
204 #as root in order to have a high enough permission to write to the correct | 211 #as root in order to have a high enough permission to write to the correct |
205 #directories and to set the owner and group to root. | 212 #directories and to set the owner and group to root. |
206 install: library | 213 install: library |
207 install -d -g root -o root $(DESTDIR)$(LIBPATH) | 214 install -d -g root -o root $(DESTDIR)$(LIBPATH) |
208 install -d -g root -o root $(DESTDIR)$(INCPATH) | 215 install -d -g root -o root $(DESTDIR)$(INCPATH) |
209 install -g root -o root $(LIBNAME) $(DESTDIR)$(LIBPATH) | 216 install -g root -o root $(LIBNAME) $(DESTDIR)$(LIBPATH) |
210 install -g root -o root $(HEADERS) $(DESTDIR)$(INCPATH) | 217 install -g root -o root $(HEADERS) $(DESTDIR)$(INCPATH) |
211 | |
212 #This rule cleans the source tree of all compiled code, not including the pdf | |
213 #documentation. | |
214 clean: | |
215 rm -f $(OBJECTS) $(TESTOBJECTS) $(HASHOBJECTS) $(CRYPTOBJECTS) $(SMALLOBJECTS) $(LEFTOVERS) $(LIBNAME) | |
216 rm -f $(TEST) $(HASH) $(COMPRESSED) $(PROFS) $(PROF) $(TVS) $(TV) | |
217 rm -f *.a *.dll *stackdump *.lib *.exe *.obj demos/*.obj demos/*.o *.bat *.txt *.il *.da demos/*.il demos/*.da *.dyn |