10b7e349ed0f81a4dab7cd2862b70193a7a2ad43
[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 TEST=destest.c
22 APPS=
23
24 LIB=$(TOP)/libcrypto.a
25 LIBSRC= cbc_cksm.c cbc_enc.c  cfb64enc.c cfb_enc.c  \
26         ecb3_enc.c ecb_enc.c  enc_read.c enc_writ.c \
27         fcrypt.c ofb64enc.c ofb_enc.c  pcbc_enc.c \
28         qud_cksm.c rand_key.c rpc_enc.c  set_key.c  \
29         des_enc.c fcrypt_b.c \
30         xcbc_enc.c \
31         str2key.c  cfb64ede.c ofb64ede.c \
32         read2pwd.c
33
34 LIBOBJ= set_key.o  ecb_enc.o  cbc_enc.o \
35         ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o  ofb64ede.o \
36         enc_read.o enc_writ.o ofb64enc.o \
37         ofb_enc.o  str2key.o  pcbc_enc.o qud_cksm.o rand_key.o \
38         ${DES_ENC} \
39         fcrypt.o xcbc_enc.o rpc_enc.o  cbc_cksm.o \
40         read2pwd.o
41
42 SRC= $(LIBSRC)
43
44 EXHEADER= des.h
45 HEADER= des_locl.h rpc_des.h spr.h des_ver.h $(EXHEADER)
46
47 ALL=    $(GENERAL) $(SRC) $(HEADER)
48
49 top:
50         (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
51
52 all:    lib
53
54 lib:    $(LIBOBJ)
55         $(AR) $(LIB) $(LIBOBJ)
56         $(RANLIB) $(LIB) || echo Never mind.
57         @touch lib
58
59 des_enc-sparc.S:        asm/des_enc.m4
60         m4 -B 8192 asm/des_enc.m4 > des_enc-sparc.S
61 dest4-sparcv9.s:        asm/dest4-sparcv9.pl
62         $(PERL) asm/dest4-sparcv9.pl $(CFLAGS) > $@
63
64 des-586.s:      asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
65         $(PERL) asm/des-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
66 crypt586.s:     asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
67         $(PERL) asm/crypt586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@
68
69 files:
70         $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
71
72 links:
73         @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
74         @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
75         @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
76
77 # We need to use force because 'install' matches 'INSTALL' on case
78 # insensitive systems
79 FRC.install:
80 install: FRC.install
81         @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
82         @headerlist="$(EXHEADER)"; for i in $$headerlist ; \
83         do  \
84         (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
85         chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
86         done;
87
88 tags:
89         ctags $(SRC)
90
91 tests:
92
93 lint:
94         lint -DLINT $(INCLUDES) $(SRC)>fluff
95
96 depend:
97         @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile...
98         $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC)
99
100 dclean:
101         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
102         mv -f Makefile.new $(MAKEFILE)
103
104 clean:
105         rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
106
107 # DO NOT DELETE THIS LINE -- make depend depends on it.
108
109 cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
110 cbc_cksm.o: ../../include/openssl/opensslconf.h cbc_cksm.c des_locl.h
111 cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
112 cbc_enc.o: ../../include/openssl/opensslconf.h cbc_enc.c des_locl.h ncbc_enc.c
113 cfb64ede.o: ../../e_os.h ../../include/openssl/des.h
114 cfb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
115 cfb64ede.o: cfb64ede.c des_locl.h
116 cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
117 cfb64enc.o: ../../include/openssl/opensslconf.h cfb64enc.c des_locl.h
118 cfb_enc.o: ../../e_os.h ../../include/openssl/des.h
119 cfb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
120 cfb_enc.o: cfb_enc.c des_locl.h
121 des_enc.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
122 des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
123 des_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
124 des_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
125 des_enc.o: ../../include/openssl/symhacks.h des_enc.c des_locl.h ncbc_enc.c
126 des_enc.o: spr.h
127 ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
128 ecb3_enc.o: ../../include/openssl/opensslconf.h des_locl.h ecb3_enc.c
129 ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h
130 ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
131 ecb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
132 ecb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h
133 ecb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
134 ecb_enc.o: des_locl.h des_ver.h ecb_enc.c
135 enc_read.o: ../../e_os.h ../../include/openssl/bio.h
136 enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
137 enc_read.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
138 enc_read.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
139 enc_read.o: ../../include/openssl/opensslconf.h
140 enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
141 enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
142 enc_read.o: ../../include/openssl/symhacks.h ../cryptlib.h des_locl.h
143 enc_read.o: enc_read.c
144 enc_writ.o: ../../e_os.h ../../include/openssl/bio.h
145 enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
146 enc_writ.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
147 enc_writ.o: ../../include/openssl/err.h ../../include/openssl/lhash.h
148 enc_writ.o: ../../include/openssl/opensslconf.h
149 enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
150 enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h
151 enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
152 enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c
153 fcrypt.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
154 fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
155 fcrypt.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
156 fcrypt.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
157 fcrypt.o: ../../include/openssl/symhacks.h des_locl.h fcrypt.c
158 fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
159 fcrypt_b.o: ../../include/openssl/opensslconf.h des_locl.h fcrypt_b.c
160 ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
161 ofb64ede.o: ../../include/openssl/opensslconf.h des_locl.h ofb64ede.c
162 ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
163 ofb64enc.o: ../../include/openssl/opensslconf.h des_locl.h ofb64enc.c
164 ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
165 ofb_enc.o: ../../include/openssl/opensslconf.h des_locl.h ofb_enc.c
166 pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
167 pcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h pcbc_enc.c
168 qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
169 qud_cksm.o: ../../include/openssl/opensslconf.h des_locl.h qud_cksm.c
170 rand_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
171 rand_key.o: ../../include/openssl/opensslconf.h
172 rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h
173 rand_key.o: rand_key.c
174 read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
175 read2pwd.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
176 read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
177 read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
178 read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h
179 read2pwd.o: read2pwd.c
180 rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
181 rpc_enc.o: ../../include/openssl/opensslconf.h des_locl.h des_ver.h rpc_des.h
182 rpc_enc.o: rpc_enc.c
183 set_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
184 set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
185 set_key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
186 set_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
187 set_key.o: ../../include/openssl/symhacks.h des_locl.h set_key.c
188 str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
189 str2key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h
190 str2key.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
191 str2key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
192 str2key.o: ../../include/openssl/symhacks.h des_locl.h str2key.c
193 xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
194 xcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h xcbc_enc.c