Makefile revision 296341
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 97update: depend 98 99depend: 100 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... 101 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 102 103dclean: 104 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 105 mv -f Makefile.new $(MAKEFILE) 106 107clean: 108 rm -f *.s *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff 109 110# DO NOT DELETE THIS LINE -- make depend depends on it. 111 112cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 113cbc_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 114cbc_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 115cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 116cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 117cbc_cksm.o: cbc_cksm.c des_locl.h 118cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 119cbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 120cbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 121cbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 122cbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 123cbc_enc.o: cbc_enc.c des_locl.h ncbc_enc.c 124cfb64ede.o: ../../e_os.h ../../include/openssl/des.h 125cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 126cfb64ede.o: ../../include/openssl/opensslconf.h 127cfb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 128cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 129cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 130cfb64ede.o: cfb64ede.c des_locl.h 131cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 132cfb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 133cfb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 134cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 135cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 136cfb64enc.o: cfb64enc.c des_locl.h 137cfb_enc.o: ../../e_os.h ../../include/openssl/des.h 138cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 139cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h 140cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 141cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 142cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h 143des_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 144des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 145des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 146des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 147des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 148des_enc.o: des_enc.c des_locl.h ncbc_enc.c spr.h 149des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 150des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 151des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h 152des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 153des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 154des_old.o: ../../include/openssl/ui_compat.h des_old.c 155des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 156des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 157des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h 158des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 159des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 160des_old2.o: ../../include/openssl/ui_compat.h des_old2.c 161ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 162ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 163ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 164ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 165ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 166ecb3_enc.o: des_locl.h ecb3_enc.c 167ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h 168ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 169ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 170ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 171ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 172ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 173ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c 174ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 175ede_cbcm_enc.o: ../../include/openssl/e_os2.h 176ede_cbcm_enc.o: ../../include/openssl/opensslconf.h 177ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h 178ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 179ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 180ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c 181enc_read.o: ../../e_os.h ../../include/openssl/bio.h 182enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 183enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 184enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 185enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 186enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 187enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 188enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 189enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h 190enc_read.o: enc_read.c 191enc_writ.o: ../../e_os.h ../../include/openssl/bio.h 192enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 193enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 194enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 195enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 196enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 197enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h 198enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 199enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 200enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c 201fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 202fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 203fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 204fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 205fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 206fcrypt.o: des_locl.h fcrypt.c 207fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 208fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 209fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 210fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 211fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 212fcrypt_b.o: des_locl.h fcrypt_b.c 213ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 214ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 215ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 216ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 217ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 218ofb64ede.o: des_locl.h ofb64ede.c 219ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 220ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 221ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 222ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 223ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 224ofb64enc.o: des_locl.h ofb64enc.c 225ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 226ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 227ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 228ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 229ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 230ofb_enc.o: des_locl.h ofb_enc.c 231pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 232pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 233pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 234pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 235pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 236pcbc_enc.o: des_locl.h pcbc_enc.c 237qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 238qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 239qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 240qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 241qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 242qud_cksm.o: des_locl.h qud_cksm.c 243rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 244rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 245rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h 246rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 247rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 248rand_key.o: ../../include/openssl/ui_compat.h rand_key.c 249read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 250read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 251read2pwd.o: ../../include/openssl/opensslconf.h 252read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 253read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 254read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 255read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c 256rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 257rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 258rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 259rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 260rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 261rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c 262set_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 263set_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 264set_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 265set_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 266set_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 267set_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 268set_key.o: des_locl.h set_key.c 269str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 270str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 271str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 272str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 273str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 274str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 275str2key.o: des_locl.h str2key.c 276xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 277xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 278xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 279xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 280xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 281xcbc_enc.o: des_locl.h xcbc_enc.c 282