comparison makefile.shared @ 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
1 # MAKEFILE for linux GCC 1 # MAKEFILE for linux GCC
2 # 2 #
3 # This makefile produces a shared object and requires libtool to be installed.
4 #
5 # Thanks to Zed Shaw for helping debug this on BSD/OSX.
3 # Tom St Denis 6 # Tom St Denis
4 # Modified by Clay Culver
5 7
6 # The version 8 # The version
7 VERSION=0:99 9 VERSION=0:102
8 10
9 # Compiler and Linker Names 11 # Compiler and Linker Names
10 CC=libtool --mode=compile gcc 12 CC=libtool --mode=compile gcc
11 13
12 # Archiver [makes .a files] 14 # Compilation flags. Note the += does not write over the user's CFLAGS!
13 AR=libtool --mode=link 15 CFLAGS += -c -I./src/headers/ -Wall -Wsign-compare -W -Wshadow
14 16
15 # Compilation flags. Note the += does not write over the user's CFLAGS! 17 # additional warnings (newer GCC 3.4 and higher)
16 CFLAGS += -c -I./ -Wall -Wsign-compare -W -Wshadow 18 #CFLAGS += -Wsystem-headers -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wmissing-prototypes \
17 # -Werror 19 # -Wmissing-declarations -Wpointer-arith
18 20
19 # optimize for SPEED 21 # optimize for SPEED
20 CFLAGS += -O3 -funroll-all-loops 22 CFLAGS += -O3 -funroll-all-loops
21 23
22 #add -fomit-frame-pointer. hinders debugging! 24 # add -fomit-frame-pointer. hinders debugging!
23 CFLAGS += -fomit-frame-pointer 25 CFLAGS += -fomit-frame-pointer
24 26
25 # optimize for SIZE 27 # optimize for SIZE
26 #CFLAGS += -Os 28 #CFLAGS += -Os
27 29
28 # compile for DEBUGING (required for ccmalloc checking!!!) 30 # compile for DEBUGING (required for ccmalloc checking!!!)
29 #CFLAGS += -g3 31 #CFLAGS += -g3
30 32
31 #These flags control how the library gets built. 33 # older GCCs can't handle the "rotate with immediate" ROLc/RORc/etc macros
34 # define this to help
35 #CFLAGS += -DLTC_NO_ROLC
32 36
33 #Output filenames for various targets. 37 #Output filenames for various targets.
38 LIBTEST=libtomcrypt_prof.la
34 LIBNAME=libtomcrypt.la 39 LIBNAME=libtomcrypt.la
35 HASH=hashsum 40 HASH=hashsum
36 CRYPT=encrypt 41 CRYPT=encrypt
37 SMALL=small 42 SMALL=small
38 PROF=x86_prof 43 PROF=x86_prof
39 TV=tv_gen 44 TV=tv_gen
45 TEST=test
46 TIMING=timing
47
40 48
41 #LIBPATH-The directory for libtomcrypt to be installed to. 49 #LIBPATH-The directory for libtomcrypt to be installed to.
42 #INCPATH-The directory to install the header files for libtomcrypt. 50 #INCPATH-The directory to install the header files for libtomcrypt.
43 #DATAPATH-The directory to install the pdf docs. 51 #DATAPATH-The directory to install the pdf docs.
44 DESTDIR= 52 DESTDIR=
45 LIBPATH=/usr/lib 53 LIBPATH=/usr/lib
46 INCPATH=/usr/include 54 INCPATH=/usr/include
47 DATAPATH=/usr/share/doc/libtomcrypt/pdf 55 DATAPATH=/usr/share/doc/libtomcrypt/pdf
48 56
57 #Who do we install as?
58 USER=root
59 GROUP=wheel
60
49 #List of objects to compile. 61 #List of objects to compile.
50 62
51 #Leave MPI built-in or force developer to link against libtommath? 63 #Leave MPI built-in or force developer to link against libtommath?
52 MPIOBJECT=mpi.o 64 MPIOBJECT=src/misc/mpi/mpi.o
53 65
54 #If you don't want mpi.o then add this 66 #If you don't want mpi.o then add this
55 #MPISHARED=$(LIBPATH)/libtommath.la 67 #MPISHARED=$(LIBPATH)/libtommath.la
56 68
57 OBJECTS=error_to_string.o mpi_to_ltc_error.o base64_encode.o base64_decode.o \ 69 OBJECTS=src/ciphers/aes/aes_enc.o $(MPIOBJECT) src/ciphers/aes/aes.o src/ciphers/anubis.o \
58 \ 70 src/ciphers/blowfish.o src/ciphers/cast5.o src/ciphers/des.o src/ciphers/khazad.o src/ciphers/noekeon.o \
59 crypt.o crypt_find_cipher.o crypt_find_hash_any.o \ 71 src/ciphers/rc2.o src/ciphers/rc5.o src/ciphers/rc6.o src/ciphers/safer/safer.o \
60 crypt_hash_is_valid.o crypt_register_hash.o crypt_unregister_prng.o \ 72 src/ciphers/safer/safer_tab.o src/ciphers/safer/saferp.o src/ciphers/skipjack.o \
61 crypt_argchk.o crypt_find_cipher_any.o crypt_find_hash_id.o \ 73 src/ciphers/twofish/twofish.o src/ciphers/xtea.o src/encauth/ccm/ccm_memory.o \
62 crypt_prng_descriptor.o crypt_register_prng.o crypt_cipher_descriptor.o \ 74 src/encauth/ccm/ccm_test.o src/encauth/eax/eax_addheader.o src/encauth/eax/eax_decrypt.o \
63 crypt_find_cipher_id.o crypt_find_prng.o crypt_prng_is_valid.o \ 75 src/encauth/eax/eax_decrypt_verify_memory.o src/encauth/eax/eax_done.o src/encauth/eax/eax_encrypt.o \
64 crypt_unregister_cipher.o crypt_cipher_is_valid.o crypt_find_hash.o \ 76 src/encauth/eax/eax_encrypt_authenticate_memory.o src/encauth/eax/eax_init.o \
65 crypt_hash_descriptor.o crypt_register_cipher.o crypt_unregister_hash.o \ 77 src/encauth/eax/eax_test.o src/encauth/gcm/gcm_add_aad.o src/encauth/gcm/gcm_add_iv.o \
66 \ 78 src/encauth/gcm/gcm_done.o src/encauth/gcm/gcm_gf_mult.o src/encauth/gcm/gcm_init.o \
67 sober128.o fortuna.o sprng.o yarrow.o rc4.o rng_get_bytes.o rng_make_prng.o \ 79 src/encauth/gcm/gcm_memory.o src/encauth/gcm/gcm_process.o src/encauth/gcm/gcm_reset.o \
68 \ 80 src/encauth/gcm/gcm_test.o src/encauth/ocb/ocb_decrypt.o src/encauth/ocb/ocb_decrypt_verify_memory.o \
69 rand_prime.o is_prime.o \ 81 src/encauth/ocb/ocb_done_decrypt.o src/encauth/ocb/ocb_done_encrypt.o src/encauth/ocb/ocb_encrypt.o \
70 \ 82 src/encauth/ocb/ocb_encrypt_authenticate_memory.o src/encauth/ocb/ocb_init.o src/encauth/ocb/ocb_ntz.o \
71 ecc.o dh.o \ 83 src/encauth/ocb/ocb_shift_xor.o src/encauth/ocb/ocb_test.o src/encauth/ocb/s_ocb_done.o \
72 \ 84 src/hashes/chc/chc.o src/hashes/helper/hash_file.o src/hashes/helper/hash_filehandle.o \
73 rsa_decrypt_key.o rsa_encrypt_key.o rsa_exptmod.o rsa_free.o rsa_make_key.o \ 85 src/hashes/helper/hash_memory.o src/hashes/helper/hash_memory_multi.o src/hashes/md2.o src/hashes/md4.o \
74 rsa_sign_hash.o rsa_verify_hash.o rsa_export.o rsa_import.o tim_exptmod.o \ 86 src/hashes/md5.o src/hashes/rmd128.o src/hashes/rmd160.o src/hashes/sha1.o src/hashes/sha2/sha256.o \
75 rsa_v15_encrypt_key.o rsa_v15_decrypt_key.o rsa_v15_sign_hash.o rsa_v15_verify_hash.o \ 87 src/hashes/sha2/sha512.o src/hashes/tiger.o src/hashes/whirl/whirl.o src/mac/hmac/hmac_done.o \
76 \ 88 src/mac/hmac/hmac_file.o src/mac/hmac/hmac_init.o src/mac/hmac/hmac_memory.o \
77 dsa_export.o dsa_free.o dsa_import.o dsa_make_key.o dsa_sign_hash.o \ 89 src/mac/hmac/hmac_memory_multi.o src/mac/hmac/hmac_process.o src/mac/hmac/hmac_test.o \
78 dsa_verify_hash.o dsa_verify_key.o \ 90 src/mac/omac/omac_done.o src/mac/omac/omac_file.o src/mac/omac/omac_init.o src/mac/omac/omac_memory.o \
79 \ 91 src/mac/omac/omac_memory_multi.o src/mac/omac/omac_process.o src/mac/omac/omac_test.o \
80 aes.o aes_enc.o \ 92 src/mac/pelican/pelican.o src/mac/pelican/pelican_memory.o src/mac/pelican/pelican_test.o \
81 \ 93 src/mac/pmac/pmac_done.o src/mac/pmac/pmac_file.o src/mac/pmac/pmac_init.o src/mac/pmac/pmac_memory.o \
82 blowfish.o des.o safer_tab.o safer.o saferp.o rc2.o xtea.o \ 94 src/mac/pmac/pmac_memory_multi.o src/mac/pmac/pmac_ntz.o src/mac/pmac/pmac_process.o \
83 rc6.o rc5.o cast5.o noekeon.o twofish.o skipjack.o \ 95 src/mac/pmac/pmac_shift_xor.o src/mac/pmac/pmac_test.o src/misc/base64/base64_decode.o \
84 \ 96 src/misc/base64/base64_encode.o src/misc/burn_stack.o src/misc/crypt/crypt.o \
85 md2.o md4.o md5.o sha1.o sha256.o sha512.o tiger.o whirl.o \ 97 src/misc/crypt/crypt_argchk.o src/misc/crypt/crypt_cipher_descriptor.o \
86 rmd128.o rmd160.o chc.o \ 98 src/misc/crypt/crypt_cipher_is_valid.o src/misc/crypt/crypt_find_cipher.o \
87 \ 99 src/misc/crypt/crypt_find_cipher_any.o src/misc/crypt/crypt_find_cipher_id.o \
88 packet_store_header.o packet_valid_header.o \ 100 src/misc/crypt/crypt_find_hash.o src/misc/crypt/crypt_find_hash_any.o \
89 \ 101 src/misc/crypt/crypt_find_hash_id.o src/misc/crypt/crypt_find_prng.o \
90 eax_addheader.o eax_decrypt.o eax_decrypt_verify_memory.o eax_done.o eax_encrypt.o \ 102 src/misc/crypt/crypt_hash_descriptor.o src/misc/crypt/crypt_hash_is_valid.o \
91 eax_encrypt_authenticate_memory.o eax_init.o eax_test.o \ 103 src/misc/crypt/crypt_prng_descriptor.o src/misc/crypt/crypt_prng_is_valid.o \
92 \ 104 src/misc/crypt/crypt_register_cipher.o src/misc/crypt/crypt_register_hash.o \
93 ocb_decrypt.o ocb_decrypt_verify_memory.o ocb_done_decrypt.o ocb_done_encrypt.o \ 105 src/misc/crypt/crypt_register_prng.o src/misc/crypt/crypt_unregister_cipher.o \
94 ocb_encrypt.o ocb_encrypt_authenticate_memory.o ocb_init.o ocb_ntz.o \ 106 src/misc/crypt/crypt_unregister_hash.o src/misc/crypt/crypt_unregister_prng.o \
95 ocb_shift_xor.o ocb_test.o s_ocb_done.o \ 107 src/misc/error_to_string.o src/misc/mpi/is_prime.o src/misc/mpi/mpi_to_ltc_error.o \
96 \ 108 src/misc/mpi/rand_prime.o src/misc/pkcs5/pkcs_5_1.o src/misc/pkcs5/pkcs_5_2.o src/misc/zeromem.o \
97 omac_done.o omac_file.o omac_init.o omac_memory.o omac_process.o omac_test.o \ 109 src/modes/cbc/cbc_decrypt.o src/modes/cbc/cbc_done.o src/modes/cbc/cbc_encrypt.o \
98 \ 110 src/modes/cbc/cbc_getiv.o src/modes/cbc/cbc_setiv.o src/modes/cbc/cbc_start.o \
99 pmac_done.o pmac_file.o pmac_init.o pmac_memory.o pmac_ntz.o pmac_process.o \ 111 src/modes/cfb/cfb_decrypt.o src/modes/cfb/cfb_done.o src/modes/cfb/cfb_encrypt.o \
100 pmac_shift_xor.o pmac_test.o \ 112 src/modes/cfb/cfb_getiv.o src/modes/cfb/cfb_setiv.o src/modes/cfb/cfb_start.o \
101 \ 113 src/modes/ctr/ctr_decrypt.o src/modes/ctr/ctr_done.o src/modes/ctr/ctr_encrypt.o \
102 cbc_start.o cbc_encrypt.o cbc_decrypt.o cbc_getiv.o cbc_setiv.o \ 114 src/modes/ctr/ctr_getiv.o src/modes/ctr/ctr_setiv.o src/modes/ctr/ctr_start.o \
103 cfb_start.o cfb_encrypt.o cfb_decrypt.o cfb_getiv.o cfb_setiv.o \ 115 src/modes/ecb/ecb_decrypt.o src/modes/ecb/ecb_done.o src/modes/ecb/ecb_encrypt.o \
104 ofb_start.o ofb_encrypt.o ofb_decrypt.o ofb_getiv.o ofb_setiv.o \ 116 src/modes/ecb/ecb_start.o src/modes/ofb/ofb_decrypt.o src/modes/ofb/ofb_done.o \
105 ctr_start.o ctr_encrypt.o ctr_decrypt.o ctr_getiv.o ctr_setiv.o \ 117 src/modes/ofb/ofb_encrypt.o src/modes/ofb/ofb_getiv.o src/modes/ofb/ofb_setiv.o \
106 ecb_start.o ecb_encrypt.o ecb_decrypt.o \ 118 src/modes/ofb/ofb_start.o src/pk/asn1/der/der_decode_integer.o src/pk/asn1/der/der_encode_integer.o \
107 \ 119 src/pk/asn1/der/der_get_multi_integer.o src/pk/asn1/der/der_length_integer.o \
108 hash_file.o hash_filehandle.o hash_memory.o \ 120 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 \
109 \ 121 src/pk/dsa/dsa_import.o src/pk/dsa/dsa_make_key.o src/pk/dsa/dsa_sign_hash.o \
110 hmac_done.o hmac_file.o hmac_init.o hmac_memory.o hmac_process.o hmac_test.o \ 122 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 \
111 \ 123 src/pk/packet_valid_header.o src/pk/pkcs1/pkcs_1_i2osp.o src/pk/pkcs1/pkcs_1_mgf1.o \
112 pkcs_1_mgf1.o pkcs_1_oaep_encode.o pkcs_1_oaep_decode.o \ 124 src/pk/pkcs1/pkcs_1_oaep_decode.o src/pk/pkcs1/pkcs_1_oaep_encode.o src/pk/pkcs1/pkcs_1_os2ip.o \
113 pkcs_1_pss_encode.o pkcs_1_pss_decode.o pkcs_1_i2osp.o pkcs_1_os2ip.o \ 125 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 \
114 pkcs_1_v15_es_encode.o pkcs_1_v15_es_decode.o pkcs_1_v15_sa_encode.o pkcs_1_v15_sa_decode.o \ 126 src/pk/pkcs1/pkcs_1_v15_es_encode.o src/pk/pkcs1/pkcs_1_v15_sa_decode.o \
115 \ 127 src/pk/pkcs1/pkcs_1_v15_sa_encode.o src/pk/rsa/rsa_decrypt_key.o src/pk/rsa/rsa_encrypt_key.o \
116 pkcs_5_1.o pkcs_5_2.o \ 128 src/pk/rsa/rsa_export.o src/pk/rsa/rsa_exptmod.o src/pk/rsa/rsa_free.o src/pk/rsa/rsa_import.o \
117 \ 129 src/pk/rsa/rsa_make_key.o src/pk/rsa/rsa_sign_hash.o src/pk/rsa/rsa_v15_decrypt_key.o \
118 der_encode_integer.o der_decode_integer.o der_length_integer.o \ 130 src/pk/rsa/rsa_v15_encrypt_key.o src/pk/rsa/rsa_v15_sign_hash.o src/pk/rsa/rsa_v15_verify_hash.o \
119 der_put_multi_integer.o der_get_multi_integer.o \ 131 src/pk/rsa/rsa_verify_hash.o src/prngs/fortuna.o src/prngs/rc4.o src/prngs/rng_get_bytes.o \
120 \ 132 src/prngs/rng_make_prng.o src/prngs/sober128.o src/prngs/sprng.o src/prngs/yarrow.o
121 burn_stack.o zeromem.o \ 133
122 \ 134 HEADERS=src/headers/tommath_superclass.h src/headers/tomcrypt_cfg.h \
123 $(MPIOBJECT) 135 src/headers/tomcrypt_mac.h src/headers/tomcrypt_macros.h \
136 src/headers/tomcrypt_custom.h src/headers/tomcrypt_argchk.h \
137 src/headers/tomcrypt_cipher.h src/headers/tomcrypt_pk.h \
138 src/headers/tommath_class.h src/headers/ltc_tommath.h src/headers/tomcrypt_hash.h \
139 src/headers/tomcrypt_misc.h src/headers/tomcrypt.h src/headers/tomcrypt_pkcs.h \
140 src/headers/tomcrypt_prng.h testprof/tomcrypt_test.h
124 141
125 TESTOBJECTS=demos/test.o 142 TESTOBJECTS=demos/test.o
126 HASHOBJECTS=demos/hashsum.o 143 HASHOBJECTS=demos/hashsum.o
127 CRYPTOBJECTS=demos/encrypt.o 144 CRYPTOBJECTS=demos/encrypt.o
128 SMALLOBJECTS=demos/small.o 145 SMALLOBJECTS=demos/small.o
129 PROFS=demos/x86_prof.o
130 TVS=demos/tv_gen.o 146 TVS=demos/tv_gen.o
131 147 TESTS=demos/test.o
132 #Files left over from making the crypt.pdf. 148 TIMINGS=demos/timing.o
133 LEFTOVERS=*.dvi *.log *.aux *.toc *.idx *.ilg *.ind *.out
134
135 #Compressed filenames
136 COMPRESSED=crypt-$(VERSION).tar.bz2 crypt-$(VERSION).zip
137
138 #Header files used by libtomcrypt.
139 HEADERS=ltc_tommath.h mycrypt_cfg.h \
140 mycrypt_misc.h mycrypt_prng.h mycrypt_cipher.h mycrypt_hash.h \
141 mycrypt_macros.h mycrypt_pk.h mycrypt.h mycrypt_argchk.h \
142 mycrypt_custom.h mycrypt_pkcs.h tommath_class.h tommath_superclass.h
143 149
144 #The default rule for make builds the libtomcrypt library. 150 #The default rule for make builds the libtomcrypt library.
145 default:library 151 default:library
146 152
147 #ciphers come in two flavours... enc+dec and enc 153 #ciphers come in two flavours... enc+dec and enc
148 aes_enc.o: aes.c aes_tab.c 154 src/ciphers/aes/aes_enc.o: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c
149 $(CC) $(CFLAGS) -DENCRYPT_ONLY -c aes.c -o aes_enc.o 155 $(CC) $(CFLAGS) -DENCRYPT_ONLY -c src/ciphers/aes/aes.c -o src/ciphers/aes/aes_enc.o
150 156
151 #These are the rules to make certain object files. 157 #These are the rules to make certain object files.
152 aes.o: aes.c aes_tab.c 158 src/ciphers/aes/aes.o: src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c
153 twofish.o: twofish.c twofish_tab.c 159 src/ciphers/twofish/twofish.o: src/ciphers/twofish/twofish.c src/ciphers/twofish/twofish_tab.c
154 whirl.o: whirl.c whirltab.c 160 src/hashes/whirl/whirl.o: src/hashes/whirl/whirl.c src/hashes/whirl/whirltab.c
155 ecc.o: ecc.c ecc_sys.c 161 src/pk/ecc/ecc.o: src/pk/ecc/ecc.c src/pk/ecc/ecc_sys.c
156 dh.o: dh.c dh_sys.c 162 src/pk/dh/dh.o: src/pk/dh/dh.c src/pk/dh/dh_sys.c
157 sha512.o: sha512.c sha384.c 163 src/hashes/sha2/sha512.o: src/hashes/sha2/sha512.c src/hashes/sha2/sha384.c
158 sha256.o: sha256.c sha224.c 164 src/hashes/sha2/sha256.o: src/hashes/sha2/sha256.c src/hashes/sha2/sha224.c
159 165
160 #This rule makes the libtomcrypt library. 166 #This rule makes the libtomcrypt library.
161 library: $(LIBNAME) 167 library: $(LIBTEST) $(LIBNAME)
168
169 $(LIBTEST):
170 cd testprof ; CFLAGS="$(CFLAGS)" GROUP=$(GROUP) USER=$(USER) VERSION=$(VERSION) LIBPATH=$(LIBPATH) LIBNAME=$(LIBTEST) make -f makefile.shared
162 171
163 $(LIBNAME): $(OBJECTS) 172 $(LIBNAME): $(OBJECTS)
164 libtool --mode=link gcc $(CFLAGS) *.lo -o libtomcrypt.la -rpath $(LIBPATH) -version-info $(VERSION) 173 libtool --silent --mode=link gcc $(CFLAGS) `find . -type f | grep "[.]lo" | grep "src/" | xargs` -o libtomcrypt.la -rpath $(LIBPATH) -version-info $(VERSION)
165 libtool --mode=link gcc $(CFLAGS) *.o -o libtomcrypt.a 174 libtool --silent --mode=link gcc $(CFLAGS) `find . -type f | grep "[.]o" | grep "src/" | xargs` -o libtomcrypt.a
166 libtool --mode=install install -c libtomcrypt.la $(LIBPATH)/libtomcrypt.la 175 ranlib libtomcrypt.a
167 install -d -g root -o root $(DESTDIR)$(INCPATH) 176 libtool --silent --mode=install install -c libtomcrypt.la $(LIBPATH)/libtomcrypt.la
168 install -g root -o root $(HEADERS) $(DESTDIR)$(INCPATH) 177 install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH)
178 install -g $(GROUP) -o $(USER) $(HEADERS) $(DESTDIR)$(INCPATH)
169 179
170 #This rule makes the hash program included with libtomcrypt 180 #This rule makes the hash program included with libtomcrypt
171 hashsum: library 181 hashsum: library
172 gcc $(CFLAGS) demos/hashsum.c -o hashsum.o 182 gcc $(CFLAGS) demos/hashsum.c -o hashsum.o
173 libtool --mode=link gcc -o hashsum hashsum.o -ltomcrypt $(MPISHARED) 183 gcc -o hashsum hashsum.o -ltomcrypt_prof -ltomcrypt $(MPISHARED)
174 184
175 #makes the crypt program 185 #makes the crypt program
176 crypt: library 186 crypt: library
177 gcc $(CFLAGS) demos/encrypt.c -o encrypt.o 187 gcc $(CFLAGS) demos/encrypt.c -o encrypt.o
178 libtool --mode=link gcc -o crypt encrypt.o -ltomcrypt $(MPISHARED) 188 gcc -o crypt encrypt.o -ltomcrypt_prof -ltomcrypt $(MPISHARED)
179
180 x86_prof: library
181 gcc $(CFLAGS) demos/x86_prof.c -o x86_prof.o
182 libtool --mode=link gcc -o x86_prof x86_prof.o -ltomcrypt $(MPISHARED) $(EXTRALIBS)
183 189
184 tv_gen: library $(TVS) 190 tv_gen: library $(TVS)
185 gcc $(CFLAGS) demos/tv_gen.c -o tv_gen.o 191 gcc -o tv_gen $(TVS) -ltomcrypt_prof -ltomcrypt $(MPISHARED)
186 libtool --mode=link gcc -o tv_gen tv_gen.o -ltomcrypt $(MPISHARED) 192
193 test: library $(TESTS)
194 gcc -o $(TEST) $(TESTS) -ltomcrypt_prof -ltomcrypt $(MPISHARED)
195
196 timing: library $(TIMINGS)
197 gcc -o $(TIMING) $(TIMINGS) -ltomcrypt_prof -ltomcrypt $(MPISHARED)
198