annotate Makefile.in @ 144:7ed585a2c53b libtomcrypt

propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
author Matt Johnston <matt@ucc.asn.au>
date Sun, 19 Dec 2004 11:47:33 +0000
parents b1edc9158f6c
children c2b93763dac9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1 # MAKEFILE for linux GCC
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
2 #
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
3 # Tom St Denis
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
4 # Modified by Clay Culver
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
5
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
6 # The version
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
7 VERSION=0.99
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
8
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
9 # Compiler and Linker Names
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
10 #CC=gcc
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
11 #LD=ld
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
12
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
13 # Archiver [makes .a files]
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
14 #AR=ar
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
15 #ARFLAGS=r
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
16
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
17 # Compilation flags. Note the += does not write over the user's CFLAGS!
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
18 # The rest of the flags come from the parent Dropbear makefile
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
19 CFLAGS += -c -I$(srcdir)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
20 # -Werror
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
21
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
22 # optimize for SPEED
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
23 #CFLAGS += -O3 -funroll-all-loops
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
24
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
25 #add -fomit-frame-pointer. hinders debugging!
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
26 #CFLAGS += -fomit-frame-pointer
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
27
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
28 # optimize for SIZE
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
29 #CFLAGS += -Os -DSMALL_CODE
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
30
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
31 # compile for DEBUGING (required for ccmalloc checking!!!)
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
32 #CFLAGS += -g3
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
33
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
34 #These flags control how the library gets built.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
35
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
36 #Output filenames for various targets.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
37 LIBNAME=libtomcrypt.a
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
38 HASH=hashsum
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
39 CRYPT=encrypt
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
40 SMALL=small
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
41 PROF=x86_prof
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
42 TV=tv_gen
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
43
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
44 #LIBPATH-The directory for libtomcrypt to be installed to.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
45 #INCPATH-The directory to install the header files for libtomcrypt.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
46 #DATAPATH-The directory to install the pdf docs.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
47 DESTDIR=
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
48 LIBPATH=/usr/lib
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
49 INCPATH=/usr/include
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
50 DATAPATH=/usr/share/doc/libtomcrypt/pdf
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
51
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
52 #List of objects to compile.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
53
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
54 #Leave MPI built-in or force developer to link against libtommath?
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
55 #MPIOBJECT=mpi.o
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
56 #Dropbear uses libtommath
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
57 MPIOBJECT=
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
58
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
59 OBJECTS=error_to_string.o mpi_to_ltc_error.o base64_encode.o base64_decode.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
60 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
61 crypt.o crypt_find_cipher.o crypt_find_hash_any.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
62 crypt_hash_is_valid.o crypt_register_hash.o crypt_unregister_prng.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
63 crypt_argchk.o crypt_find_cipher_any.o crypt_find_hash_id.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
64 crypt_prng_descriptor.o crypt_register_prng.o crypt_cipher_descriptor.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
65 crypt_find_cipher_id.o crypt_find_prng.o crypt_prng_is_valid.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
66 crypt_unregister_cipher.o crypt_cipher_is_valid.o crypt_find_hash.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
67 crypt_hash_descriptor.o crypt_register_cipher.o crypt_unregister_hash.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
68 \
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
69 sober128.o fortuna.o sprng.o yarrow.o rc4.o rng_get_bytes.o rng_make_prng.o \
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
70 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
71 rand_prime.o is_prime.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
72 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
73 ecc.o dh.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
74 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
75 rsa_decrypt_key.o rsa_encrypt_key.o rsa_exptmod.o rsa_free.o rsa_make_key.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
76 rsa_sign_hash.o rsa_verify_hash.o rsa_export.o rsa_import.o tim_exptmod.o \
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
77 rsa_v15_encrypt_key.o rsa_v15_decrypt_key.o rsa_v15_sign_hash.o rsa_v15_verify_hash.o \
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
78 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
79 dsa_export.o dsa_free.o dsa_import.o dsa_make_key.o dsa_sign_hash.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
80 dsa_verify_hash.o dsa_verify_key.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
81 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
82 aes.o aes_enc.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
83 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
84 blowfish.o des.o safer_tab.o safer.o saferp.o rc2.o xtea.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
85 rc6.o rc5.o cast5.o noekeon.o twofish.o skipjack.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
86 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
87 md2.o md4.o md5.o sha1.o sha256.o sha512.o tiger.o whirl.o \
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
88 rmd128.o rmd160.o chc.o \
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
89 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
90 packet_store_header.o packet_valid_header.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
91 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
92 eax_addheader.o eax_decrypt.o eax_decrypt_verify_memory.o eax_done.o eax_encrypt.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
93 eax_encrypt_authenticate_memory.o eax_init.o eax_test.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
94 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
95 ocb_decrypt.o ocb_decrypt_verify_memory.o ocb_done_decrypt.o ocb_done_encrypt.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
96 ocb_encrypt.o ocb_encrypt_authenticate_memory.o ocb_init.o ocb_ntz.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
97 ocb_shift_xor.o ocb_test.o s_ocb_done.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
98 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
99 omac_done.o omac_file.o omac_init.o omac_memory.o omac_process.o omac_test.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
100 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
101 pmac_done.o pmac_file.o pmac_init.o pmac_memory.o pmac_ntz.o pmac_process.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
102 pmac_shift_xor.o pmac_test.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
103 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
104 cbc_start.o cbc_encrypt.o cbc_decrypt.o cbc_getiv.o cbc_setiv.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
105 cfb_start.o cfb_encrypt.o cfb_decrypt.o cfb_getiv.o cfb_setiv.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
106 ofb_start.o ofb_encrypt.o ofb_decrypt.o ofb_getiv.o ofb_setiv.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
107 ctr_start.o ctr_encrypt.o ctr_decrypt.o ctr_getiv.o ctr_setiv.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
108 ecb_start.o ecb_encrypt.o ecb_decrypt.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
109 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
110 hash_file.o hash_filehandle.o hash_memory.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
111 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
112 hmac_done.o hmac_file.o hmac_init.o hmac_memory.o hmac_process.o hmac_test.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
113 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
114 pkcs_1_mgf1.o pkcs_1_oaep_encode.o pkcs_1_oaep_decode.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
115 pkcs_1_pss_encode.o pkcs_1_pss_decode.o pkcs_1_i2osp.o pkcs_1_os2ip.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
116 pkcs_1_v15_es_encode.o pkcs_1_v15_es_decode.o pkcs_1_v15_sa_encode.o pkcs_1_v15_sa_decode.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
117 \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
118 pkcs_5_1.o pkcs_5_2.o \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
119 \
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
120 der_encode_integer.o der_decode_integer.o der_length_integer.o \
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
121 der_put_multi_integer.o der_get_multi_integer.o \
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
122 \
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
123 burn_stack.o zeromem.o \
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
124 \
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
125 $(MPIOBJECT)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
126
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
127 TESTOBJECTS=demos/test.o
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
128 HASHOBJECTS=demos/hashsum.o
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
129 CRYPTOBJECTS=demos/encrypt.o
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
130 SMALLOBJECTS=demos/small.o
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
131 PROFS=demos/x86_prof.o
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
132 TVS=demos/tv_gen.o
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
133
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
134 #Files left over from making the crypt.pdf.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
135 LEFTOVERS=*.dvi *.log *.aux *.toc *.idx *.ilg *.ind *.out
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
136
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
137 #Compressed filenames
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
138 COMPRESSED=crypt-$(VERSION).tar.bz2 crypt-$(VERSION).zip
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
139
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
140 #Header files used by libtomcrypt.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
141 HEADERS=ltc_tommath.h mycrypt_cfg.h \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
142 mycrypt_misc.h mycrypt_prng.h mycrypt_cipher.h mycrypt_hash.h \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
143 mycrypt_macros.h mycrypt_pk.h mycrypt.h mycrypt_argchk.h \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
144 mycrypt_custom.h mycrypt_pkcs.h
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
145
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
146 #The default rule for make builds the libtomcrypt library.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
147 default:library
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
148
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
149 #ciphers come in two flavours... enc+dec and enc
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
150 aes_enc.o: aes.c aes_tab.c
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
151 $(CC) $(CFLAGS) -DENCRYPT_ONLY -c $(srcdir)/aes.c -o aes_enc.o
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
152
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
153 #These are the rules to make certain object files.
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
154 aes.o: aes.c aes_tab.c
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
155 twofish.o: twofish.c twofish_tab.c
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
156 whirl.o: whirl.c whirltab.c
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
157 ecc.o: ecc.c ecc_sys.c
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
158 dh.o: dh.c dh_sys.c
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
159 sha512.o: sha512.c sha384.c
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
160 sha256.o: sha256.c sha224.c
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
161
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
162 #This rule makes the libtomcrypt library.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
163 library: $(LIBNAME)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
164
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
165 $(LIBNAME): $(OBJECTS)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
166 $(AR) $(ARFLAGS) $@ $(OBJECTS)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
167 $(RANLIB) $@
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
168
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
169 #This rule makes the hash program included with libtomcrypt
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
170 hashsum: library $(HASHOBJECTS)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
171 $(CC) $(HASHOBJECTS) $(LIBNAME) -o $(HASH) $(WARN)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
172
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
173 #makes the crypt program
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
174 crypt: library $(CRYPTOBJECTS)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
175 $(CC) $(CRYPTOBJECTS) $(LIBNAME) -o $(CRYPT) $(WARN)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
176
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
177 #makes the small program
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
178 small: library $(SMALLOBJECTS)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
179 $(CC) $(SMALLOBJECTS) $(LIBNAME) -o $(SMALL) $(WARN)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
180
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
181 x86_prof: library $(PROFS)
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
182 $(CC) $(PROFS) $(LIBNAME) $(EXTRALIBS) -o $(PROF)
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
183
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
184 tv_gen: library $(TVS)
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
185 $(CC) $(TVS) $(LIBNAME) $(EXTRALIBS) -o $(TV)
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
186
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
187 #This rule installs the library and the header files. This must be run
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
188 #as root in order to have a high enough permission to write to the correct
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
189 #directories and to set the owner and group to root.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
190 install: library docs
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
191 install -d -g root -o root $(DESTDIR)$(LIBPATH)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
192 install -d -g root -o root $(DESTDIR)$(INCPATH)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
193 install -d -g root -o root $(DESTDIR)$(DATAPATH)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
194 install -g root -o root $(LIBNAME) $(DESTDIR)$(LIBPATH)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
195 install -g root -o root $(HEADERS) $(DESTDIR)$(INCPATH)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
196 install -g root -o root doc/crypt.pdf $(DESTDIR)$(DATAPATH)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
197
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
198 install_lib: library
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
199 install -d -g root -o root $(DESTDIR)$(LIBPATH)
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
200 install -d -g root -o root $(DESTDIR)$(INCPATH)
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
201 install -g root -o root $(LIBNAME) $(DESTDIR)$(LIBPATH)
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
202 install -g root -o root $(HEADERS) $(DESTDIR)$(INCPATH)
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
203
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
204 #This rule cleans the source tree of all compiled code, not including the pdf
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
205 #documentation.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
206 clean:
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
207 -rm -f $(OBJECTS) $(TESTOBJECTS) $(HASHOBJECTS) $(CRYPTOBJECTS) $(SMALLOBJECTS) $(LEFTOVERS) $(LIBNAME)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
208 -rm -f $(TEST) $(HASH) $(COMPRESSED) $(PROFS) $(PROF) $(TVS) $(TV)
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
209 -rm -f *.la *.lo *.o *.a *.dll *stackdump *.lib *.exe *.obj demos/*.obj demos/*.o *.bat *.txt *.il *.da demos/*.il demos/*.da *.dyn *.dpi \
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
210 *.gcda *.gcno demos/*.gcno demos/*.gcda *~ doc/*
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
211 -cd demos/test && make clean
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
212 -rm -rf .libs demos/.libs demos/test/.libs
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
213
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
214 #This builds the crypt.pdf file. Note that the rm -f *.pdf has been removed
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
215 #from the clean command! This is because most people would like to keep the
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
216 #nice pre-compiled crypt.pdf that comes with libtomcrypt! We only need to
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
217 #delete it if we are rebuilding it.
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
218 docs: crypt.tex
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
219 -rm -f doc/crypt.pdf $(LEFTOVERS)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
220 echo "hello" > crypt.ind
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
221 latex crypt > /dev/null
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
222 latex crypt > /dev/null
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
223 makeindex crypt.idx > /dev/null
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
224 latex crypt > /dev/null
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
225 dvipdf crypt
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
226 mv -ivf crypt.pdf doc/crypt.pdf
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
227 -rm -f $(LEFTOVERS)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
228
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
229 docdvi: crypt.tex
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
230 echo hello > crypt.ind
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
231 latex crypt > /dev/null
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
232 latex crypt > /dev/null
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
233 makeindex crypt.idx
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
234 latex crypt > /dev/null
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
235
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
236 #pretty build
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
237 pretty:
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
238 perl pretty.build
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
239
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
240 #for GCC 3.4+
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
241 profiled:
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
242 make clean
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
243 make CFLAGS="$(CFLAGS) -fprofile-generate" EXTRALIBS=-lgcov x86_prof
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
244 ./x86_prof
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
245 rm *.o *.a x86_prof
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
246 make CFLAGS="$(CFLAGS) -fprofile-use" EXTRALIBS=-lgcov x86_prof
138
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
247
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
248 #zipup the project (take that!)
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
249 zipup: clean docs
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
250 cd .. ; rm -rf crypt* libtomcrypt-$(VERSION) ; mkdir libtomcrypt-$(VERSION) ; \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
251 cp -R ./libtomcrypt/* ./libtomcrypt-$(VERSION)/ ; tar -c libtomcrypt-$(VERSION)/* > crypt-$(VERSION).tar ; \
b1edc9158f6c Pristine compilation works
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
252 bzip2 -9vv crypt-$(VERSION).tar ; zip -9 -r crypt-$(VERSION).zip libtomcrypt-$(VERSION)/* ; \
144
7ed585a2c53b propagate of 3f8f752126017cbe7d93c4086c27a91550df745f and 747ebf284d40a15b338e5a5c7730ecec6eade3d7 from branch 'au.asn.ucc.matt.ltc-orig' to 'au.asn.ucc.matt.ltc-db'
Matt Johnston <matt@ucc.asn.au>
parents: 138
diff changeset
253 gpg -b -a crypt-$(VERSION).tar.bz2 ; gpg -b -a crypt-$(VERSION).zip