2 # SSLeay/crypto/des/Makefile
9 INCLUDES=-I../../include
12 OPENSSLDIR= /usr/local/ssl
13 INSTALLTOP=/usr/local/ssl
14 MAKE= make -f Makefile.ssl
15 MAKEDEPEND= $(TOP)/util/domd $(TOP)
16 MAKEFILE= Makefile.ssl
19 DES_ENC= des_enc.o fcrypt_b.o
21 #DES_ENC= dx86-elf.o yx86-elf.o
23 CFLAGS= $(INCLUDES) $(CFLAG)
29 LIB=$(TOP)/libcrypto.a
30 LIBSRC= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \
31 ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c \
32 fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c \
33 qud_cksm.c rand_key.c read_pwd.c rpc_enc.c set_key.c \
34 des_enc.c fcrypt_b.c read2pwd.c \
36 str2key.c cfb64ede.c ofb64ede.c ede_cbcm_enc.c
38 LIBOBJ= set_key.o ecb_enc.o cbc_enc.o \
39 ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o ofb64ede.o \
40 enc_read.o enc_writ.o ofb64enc.o \
41 ofb_enc.o str2key.o pcbc_enc.o qud_cksm.o rand_key.o \
42 ${DES_ENC} read2pwd.o \
43 fcrypt.o xcbc_enc.o read_pwd.o rpc_enc.o cbc_cksm.o \
49 HEADER= des_locl.h rpc_des.h spr.h des_ver.h $(EXHEADER)
51 ALL= $(GENERAL) $(SRC) $(HEADER)
54 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all)
59 $(AR) $(LIB) $(LIBOBJ)
63 des: des.o cbc3_enc.o lib
64 $(CC) $(CFLAGS) -o des des.o cbc3_enc.o $(LIB)
67 asm/dx86-elf.o: asm/dx86unix.cpp
68 $(CPP) -DELF -x c asm/dx86unix.cpp | as -o asm/dx86-elf.o
70 asm/yx86-elf.o: asm/yx86unix.cpp
71 $(CPP) -DELF -x c asm/yx86unix.cpp | as -o asm/yx86-elf.o
74 asm/dx86-sol.o: asm/dx86unix.cpp
75 $(CC) -E -DSOL asm/dx86unix.cpp | sed 's/^#.*//' > asm/dx86-sol.s
76 as -o asm/dx86-sol.o asm/dx86-sol.s
79 asm/yx86-sol.o: asm/yx86unix.cpp
80 $(CC) -E -DSOL asm/yx86unix.cpp | sed 's/^#.*//' > asm/yx86-sol.s
81 as -o asm/yx86-sol.o asm/yx86-sol.s
85 asm/dx86-out.o: asm/dx86unix.cpp
86 $(CPP) -DOUT asm/dx86unix.cpp | as -o asm/dx86-out.o
88 asm/yx86-out.o: asm/yx86unix.cpp
89 $(CPP) -DOUT asm/yx86unix.cpp | as -o asm/yx86-out.o
92 asm/dx86bsdi.o: asm/dx86unix.cpp
93 $(CPP) -DBSDI asm/dx86unix.cpp | sed 's/ :/:/' | as -o asm/dx86bsdi.o
95 asm/yx86bsdi.o: asm/yx86unix.cpp
96 $(CPP) -DBSDI asm/yx86unix.cpp | sed 's/ :/:/' | as -o asm/yx86bsdi.o
98 asm/dx86unix.cpp: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl
99 (cd asm; $(PERL) des-586.pl cpp >dx86unix.cpp)
101 asm/yx86unix.cpp: asm/crypt586.pl ../perlasm/x86asm.pl
102 (cd asm; $(PERL) crypt586.pl cpp >yx86unix.cpp)
105 $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
108 @$(TOP)/util/point.sh Makefile.ssl Makefile
109 @$(TOP)/util/point.sh ../../perlasm asm/perlasm
110 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER)
111 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST)
112 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS)
117 @for i in $(EXHEADER) ; \
119 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \
120 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \
129 lint -DLINT $(INCLUDES) $(SRC)>fluff
132 $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC)
135 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
136 mv -f Makefile.new $(MAKEFILE)
139 rm -f asm/dx86unix.cpp asm/yx86unix.cpp *.o asm/*.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff
141 # DO NOT DELETE THIS LINE -- make depend depends on it.
143 cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
144 cbc_cksm.o: ../../include/openssl/opensslconf.h des_locl.h
145 cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
146 cbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h ncbc_enc.c
147 cfb64ede.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
148 cfb64ede.o: ../../include/openssl/opensslconf.h des_locl.h
149 cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
150 cfb64enc.o: ../../include/openssl/opensslconf.h des_locl.h
151 cfb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
152 cfb_enc.o: ../../include/openssl/opensslconf.h des_locl.h
153 des_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
154 des_enc.o: ../../include/openssl/opensslconf.h des_locl.h des_locl.h ncbc_enc.c
155 ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
156 ecb3_enc.o: ../../include/openssl/opensslconf.h des_locl.h
157 ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
158 ecb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
159 ecb_enc.o: des_locl.h spr.h
160 ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
161 ede_cbcm_enc.o: ../../include/openssl/opensslconf.h des_locl.h
162 enc_read.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
163 enc_read.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
164 enc_read.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
165 enc_read.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
166 enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
167 enc_read.o: ../../include/openssl/stack.h ../cryptlib.h des_locl.h
168 enc_writ.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
169 enc_writ.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
170 enc_writ.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
171 enc_writ.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
172 enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/rand.h
173 enc_writ.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h
174 enc_writ.o: ../cryptlib.h des_locl.h
175 fcrypt.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
176 fcrypt.o: ../../include/openssl/opensslconf.h des_locl.h
177 fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
178 fcrypt_b.o: ../../include/openssl/opensslconf.h des_locl.h
179 ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
180 ofb64ede.o: ../../include/openssl/opensslconf.h des_locl.h
181 ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
182 ofb64enc.o: ../../include/openssl/opensslconf.h des_locl.h
183 ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
184 ofb_enc.o: ../../include/openssl/opensslconf.h des_locl.h
185 pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
186 pcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h
187 qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
188 qud_cksm.o: ../../include/openssl/opensslconf.h des_locl.h
189 rand_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
190 rand_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/rand.h
191 read2pwd.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
192 read2pwd.o: ../../include/openssl/opensslconf.h des_locl.h
193 read_pwd.o: ../../include/openssl/bio.h ../../include/openssl/buffer.h
194 read_pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h
195 read_pwd.o: ../../include/openssl/e_os.h ../../include/openssl/e_os2.h
196 read_pwd.o: ../../include/openssl/err.h ../../include/openssl/opensslconf.h
197 read_pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h
198 read_pwd.o: ../../include/openssl/stack.h ../cryptlib.h des_locl.h
199 rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
200 rpc_enc.o: ../../include/openssl/opensslconf.h des_locl.h des_ver.h rpc_des.h
201 set_key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
202 set_key.o: ../../include/openssl/opensslconf.h des_locl.h
203 str2key.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
204 str2key.o: ../../include/openssl/opensslconf.h des_locl.h
205 xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/e_os2.h
206 xcbc_enc.o: ../../include/openssl/opensslconf.h des_locl.h