2a8f06f0e531d660c465a073c2384130de992329
[openssl.git] / crypto / des / Makefile
1 #
2 # OpenSSL/crypto/des/Makefile
3 #
4
5 DIR=    des
6 TOP=    ../..
7 CC=     cc
8 CPP=    $(CC) -E
9 INCLUDES=-I$(TOP) -I../../include
10 CFLAG=-g
11 MAKEFILE=       Makefile
12 AR=             ar r
13 RANLIB=         ranlib
14 DES_ENC=        des_enc.o fcrypt_b.o
15
16 CFLAGS= $(INCLUDES) $(CFLAG)
17 ASFLAGS= $(INCLUDES) $(ASFLAG)
18 AFLAGS= $(ASFLAGS)
19
20 GENERAL=Makefile
21
22 LIB=$(TOP)/libcrypto.a
23 LIBSRC= cbc_cksm.c cbc_enc.c  cfb64enc.c cfb_enc.c  \
24         ecb3_enc.c ecb_enc.c  enc_read.c enc_writ.c \
25         fcrypt.c ofb64enc.c ofb_enc.c  pcbc_enc.c \
26         qud_cksm.c rand_key.c rpc_enc.c  set_key.c  \
27         des_enc.c fcrypt_b.c \
28         xcbc_enc.c \
29         str2key.c  cfb64ede.c ofb64ede.c \
30         read2pwd.c
31
32 LIBOBJ= set_key.o  ecb_enc.o  cbc_enc.o \
33         ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o  ofb64ede.o \
34         enc_read.o enc_writ.o ofb64enc.o \
35         ofb_enc.o  str2key.o  pcbc_enc.o qud_cksm.o rand_key.o \
36         ${DES_ENC} \
37         fcrypt.o xcbc_enc.o rpc_enc.o  cbc_cksm.o \
38         read2pwd.o
39
40 SRC= $(LIBSRC)
41
42 HEADER= des_locl.h rpc_des.h spr.h des_ver.h
43
44 ALL=    $(GENERAL) $(SRC) $(HEADER)
45
46 top:
47         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
48
49 all:    lib
50
51 lib:    $(LIBOBJ)
52         $(AR) $(LIB) $(LIBOBJ)
53         $(RANLIB) $(LIB) || echo Never mind.
54         @touch lib
55
56 des_enc-sparc.S:        asm/des_enc.m4
57         m4 -B 8192 asm/des_enc.m4 > des_enc-sparc.S
58 dest4-sparcv9.s:        asm/dest4-sparcv9.pl
59         $(PERL) asm/dest4-sparcv9.pl $(CFLAGS) > $@
60
61 des-586.s:      asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
62         $(PERL) asm/des-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
63 crypt586.s:     asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
64         $(PERL) asm/crypt586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
65
66 files:
67         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
68
69 tags:
70         ctags $(SRC)
71
72 tests:
73
74 lint:
75         lint -DLINT $(INCLUDES) $(SRC)>fluff
76
77 depend:
78         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
79         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
80
81 dclean:
82         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
83         mv -f Makefile.new $(MAKEFILE)
84
85 clean:
86         rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
87
88 # DO NOT DELETE THIS LINE -- make depend depends on it.
89
90 cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
91 cbc_cksm.o: ../../include/openssl/opensslconf.h cbc_cksm.c des_locl.h
92 cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
93 cbc_enc.o: ../../include/openssl/opensslconf.h cbc_enc.c des_locl.h ncbc_enc.c
94 cfb64ede.o: ../../e_os.h ../../include/openssl/des.h
95 cfb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
96 cfb64ede.o: cfb64ede.c des_locl.h
97 cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
98 cfb64enc.o: ../../include/openssl/opensslconf.h cfb64enc.c des_locl.h
99 cfb_enc.o: ../../e_os.h ../../include/openssl/des.h
100 cfb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
101 cfb_enc.o: cfb_enc.c des_locl.h
102 des_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
103 des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
104 des_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
105 des_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
106 des_enc.o: ../../include/openssl/symhacks.h des_enc.c des_locl.h ncbc_enc.c
107 des_enc.o: spr.h
108 ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
109 ecb3_enc.o: ../../include/openssl/opensslconf.h des_locl.h ecb3_enc.c
110 ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
111 ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
112 ecb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
113 ecb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
114 ecb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
115 ecb_enc.o: des_locl.h des_ver.h ecb_enc.c
116 enc_read.o: ../../e_os.h ../../include/openssl/bio.h
117 enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
118 enc_read.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
119 enc_read.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
120 enc_read.o: ../../include/openssl/opensslconf.h
121 enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
122 enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
123 enc_read.o: ../../include/openssl/symhacks.h ../cryptlib.h des_locl.h
124 enc_read.o: enc_read.c
125 enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
126 enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
127 enc_writ.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
128 enc_writ.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
129 enc_writ.o: ../../include/openssl/opensslconf.h
130 enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
131 enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
132 enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
133 enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
134 fcrypt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
135 fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
136 fcrypt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
137 fcrypt.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
138 fcrypt.o: ../../include/openssl/symhacks.h des_locl.h fcrypt.c
139 fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
140 fcrypt_b.o: ../../include/openssl/opensslconf.h des_locl.h fcrypt_b.c
141 ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
142 ofb64ede.o: ../../include/openssl/opensslconf.h des_locl.h ofb64ede.c
143 ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
144 ofb64enc.o: ../../include/openssl/opensslconf.h des_locl.h ofb64enc.c
145 ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
146 ofb_enc.o: ../../include/openssl/opensslconf.h des_locl.h ofb_enc.c
147 pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
148 pcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h pcbc_enc.c
149 qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
150 qud_cksm.o: ../../include/openssl/opensslconf.h des_locl.h qud_cksm.c
151 rand_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
152 rand_key.o: ../../include/openssl/opensslconf.h
153 rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
154 rand_key.o: rand_key.c
155 read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
156 read2pwd.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
157 read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
158 read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
159 read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
160 read2pwd.o: read2pwd.c
161 rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
162 rpc_enc.o: ../../include/openssl/opensslconf.h des_locl.h des_ver.h rpc_des.h
163 rpc_enc.o: rpc_enc.c
164 set_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
165 set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
166 set_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
167 set_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
168 set_key.o: ../../include/openssl/symhacks.h des_locl.h set_key.c
169 str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
170 str2key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
171 str2key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
172 str2key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
173 str2key.o: ../../include/openssl/symhacks.h des_locl.h str2key.c
174 xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
175 xcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h xcbc_enc.c