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 # or use 16 #DES_ENC= dx86-elf.o yx86-elf.o 17 18 CFLAGS= $(INCLUDES) $(CFLAG) 19 ASFLAGS= $(INCLUDES) $(ASFLAG) 20 AFLAGS= $(ASFLAGS) 21 22 GENERAL=Makefile 23 TEST=destest.c 24 APPS= 25 26 LIB=$(TOP)/libcrypto.a 27 LIBSRC= des_lib.c cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \ 28 ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c \ 29 fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c \ 30 qud_cksm.c rand_key.c rpc_enc.c set_key.c \ 31 des_enc.c fcrypt_b.c \ 32 xcbc_enc.c \ 33 str2key.c cfb64ede.c ofb64ede.c ede_cbcm_enc.c des_old.c des_old2.c \ 34 read2pwd.c 35 36 LIBOBJ= des_lib.o set_key.o ecb_enc.o cbc_enc.o \ 37 ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o ofb64ede.o \ 38 enc_read.o enc_writ.o ofb64enc.o \ 39 ofb_enc.o str2key.o pcbc_enc.o qud_cksm.o rand_key.o \ 40 ${DES_ENC} \ 41 fcrypt.o xcbc_enc.o rpc_enc.o cbc_cksm.o \ 42 ede_cbcm_enc.o des_old.o des_old2.o read2pwd.o 43 44 SRC= $(LIBSRC) 45 46 EXHEADER= des.h des_old.h 47 HEADER= des_locl.h rpc_des.h spr.h des_ver.h $(EXHEADER) 48 49 ALL= $(GENERAL) $(SRC) $(HEADER) 50 51 top: 52 (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) 53 54 all: lib 55 56 lib: $(LIBOBJ) 57 $(ARX) $(LIB) $(LIBOBJ) 58 $(RANLIB) $(LIB) || echo Never mind. 59 @touch lib 60 61 des: des.o cbc3_enc.o lib 62 $(CC) $(CFLAGS) -o des des.o cbc3_enc.o $(LIB) 63 64 des_enc-sparc.S: asm/des_enc.m4 65 m4 -B 8192 asm/des_enc.m4 > des_enc-sparc.S 66 67 # ELF 68 dx86-elf.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 69 (cd asm; $(PERL) des-586.pl elf $(CFLAGS) > ../$@) 70 yx86-elf.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 71 (cd asm; $(PERL) crypt586.pl elf $(CFLAGS) > ../$@) 72 # COFF 73 dx86-cof.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 74 (cd asm; $(PERL) des-586.pl coff $(CFLAGS) > ../$@) 75 yx86-cof.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 76 (cd asm; $(PERL) crypt586.pl coff $(CFLAGS) > ../$@) 77 # a.out 78 dx86-out.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 79 (cd asm; $(PERL) des-586.pl a.out $(CFLAGS) > ../$@) 80 yx86-out.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 81 (cd asm; $(PERL) crypt586.pl a.out $(CFLAGS) > ../$@) 82 83 files: 84 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 85 86 links: 87 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 88 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 89 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 90 91 # We need to use force because 'install' matches 'INSTALL' on case 92 # insensitive systems 93 FRC.install: 94 install: FRC.install 95 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... 96 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 97 do \ 98 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 99 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 100 done; 101 102 tags: 103 ctags $(SRC) 104 105 tests: 106 107 lint: 108 lint -DLINT $(INCLUDES) $(SRC)>fluff 109 110 depend: 111 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... 112 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 113 114 dclean: 115 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 116 mv -f Makefile.new $(MAKEFILE) 117 118 clean: 119 rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff 120 121 # DO NOT DELETE THIS LINE -- make depend depends on it. 122 123 cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 124 cbc_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 125 cbc_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 126 cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 127 cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 128 cbc_cksm.o: cbc_cksm.c des_locl.h 129 cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 130 cbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 131 cbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 132 cbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 133 cbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 134 cbc_enc.o: cbc_enc.c des_locl.h ncbc_enc.c 135 cfb64ede.o: ../../e_os.h ../../include/openssl/des.h 136 cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 137 cfb64ede.o: ../../include/openssl/opensslconf.h 138 cfb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 139 cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 140 cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 141 cfb64ede.o: cfb64ede.c des_locl.h 142 cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 143 cfb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 144 cfb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 145 cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 146 cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 147 cfb64enc.o: cfb64enc.c des_locl.h 148 cfb_enc.o: ../../e_os.h ../../include/openssl/des.h 149 cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 150 cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h 151 cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 152 cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 153 cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h 154 des_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 155 des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 156 des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 157 des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 158 des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 159 des_enc.o: des_enc.c des_locl.h ncbc_enc.c 160 des_lib.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h 161 des_lib.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 162 des_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 163 des_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 164 des_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 165 des_lib.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 166 des_lib.o: ../../include/openssl/ui_compat.h des_lib.c des_locl.h des_ver.h 167 des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 168 des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 169 des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h 170 des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 171 des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 172 des_old.o: ../../include/openssl/ui_compat.h des_old.c 173 des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 174 des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 175 des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h 176 des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 177 des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 178 des_old2.o: ../../include/openssl/ui_compat.h des_old2.c 179 ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 180 ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 181 ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 182 ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 183 ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 184 ecb3_enc.o: des_locl.h ecb3_enc.c 185 ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 186 ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 187 ecb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 188 ecb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 189 ecb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 190 ecb_enc.o: des_locl.h ecb_enc.c spr.h 191 ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 192 ede_cbcm_enc.o: ../../include/openssl/e_os2.h 193 ede_cbcm_enc.o: ../../include/openssl/opensslconf.h 194 ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h 195 ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 196 ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 197 ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c 198 enc_read.o: ../../e_os.h ../../include/openssl/bio.h 199 enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 200 enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 201 enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 202 enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 203 enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 204 enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 205 enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 206 enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h 207 enc_read.o: enc_read.c 208 enc_writ.o: ../../e_os.h ../../include/openssl/bio.h 209 enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 210 enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 211 enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 212 enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 213 enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 214 enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h 215 enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 216 enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 217 enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c 218 fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 219 fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 220 fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 221 fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 222 fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 223 fcrypt.o: des_locl.h fcrypt.c 224 fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 225 fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 226 fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 227 fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 228 fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 229 fcrypt_b.o: des_locl.h fcrypt_b.c 230 ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 231 ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 232 ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 233 ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 234 ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 235 ofb64ede.o: des_locl.h ofb64ede.c 236 ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 237 ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 238 ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 239 ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 240 ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 241 ofb64enc.o: des_locl.h ofb64enc.c 242 ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 243 ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 244 ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 245 ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 246 ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 247 ofb_enc.o: des_locl.h ofb_enc.c 248 pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 249 pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 250 pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 251 pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 252 pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 253 pcbc_enc.o: des_locl.h pcbc_enc.c 254 qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 255 qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 256 qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 257 qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 258 qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 259 qud_cksm.o: des_locl.h qud_cksm.c 260 rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 261 rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 262 rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h 263 rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 264 rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 265 rand_key.o: ../../include/openssl/ui_compat.h rand_key.c 266 read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 267 read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 268 read2pwd.o: ../../include/openssl/opensslconf.h 269 read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 270 read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 271 read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 272 read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c 273 rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 274 rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 275 rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 276 rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 277 rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 278 rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c 279 set_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 280 set_key.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h 281 set_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h 282 set_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 283 set_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 284 set_key.o: ../../include/openssl/ui_compat.h des_locl.h set_key.c 285 str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 286 str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 287 str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 288 str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 289 str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 290 str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 291 str2key.o: des_locl.h str2key.c 292 xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 293 xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 294 xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 295 xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 296 xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 297 xcbc_enc.o: des_locl.h xcbc_enc.c 298