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