annotate makefile @ 211:f01f0400314d libtomcrypt

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