Makefile revision 325335
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 64dest4-sparcv9.s: asm/dest4-sparcv9.pl 65 $(PERL) asm/dest4-sparcv9.pl $(CFLAGS) > $@ 66 67des-586.s: asm/des-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 68 $(PERL) asm/des-586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@ 69crypt586.s: asm/crypt586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 70 $(PERL) asm/crypt586.pl $(PERLASM_SCHEME) $(CFLAGS) > $@ 71 72files: 73 $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 74 75links: 76 @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 77 @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 78 @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 79 80# We need to use force because 'install' matches 'INSTALL' on case 81# insensitive systems 82FRC.install: 83install: FRC.install 84 @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... 85 @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 86 do \ 87 (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 88 chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 89 done; 90 91tags: 92 ctags $(SRC) 93 94tests: 95 96lint: 97 lint -DLINT $(INCLUDES) $(SRC)>fluff 98 99update: depend 100 101depend: 102 @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... 103 $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 104 105dclean: 106 $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 107 mv -f Makefile.new $(MAKEFILE) 108 109clean: 110 rm -f *.s *.S *.o *.obj des lib tags core .pure .nfs* *.old *.bak fluff 111 112# DO NOT DELETE THIS LINE -- make depend depends on it. 113 114cbc_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 115cbc_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 116cbc_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 117cbc_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 118cbc_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 119cbc_cksm.o: cbc_cksm.c des_locl.h 120cbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 121cbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 122cbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 123cbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 124cbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 125cbc_enc.o: cbc_enc.c des_locl.h ncbc_enc.c 126cfb64ede.o: ../../e_os.h ../../include/openssl/des.h 127cfb64ede.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 128cfb64ede.o: ../../include/openssl/opensslconf.h 129cfb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 130cfb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 131cfb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 132cfb64ede.o: cfb64ede.c des_locl.h 133cfb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 134cfb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 135cfb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 136cfb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 137cfb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 138cfb64enc.o: cfb64enc.c des_locl.h 139cfb_enc.o: ../../e_os.h ../../include/openssl/des.h 140cfb_enc.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 141cfb_enc.o: ../../include/openssl/opensslconf.h ../../include/openssl/ossl_typ.h 142cfb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 143cfb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 144cfb_enc.o: ../../include/openssl/ui_compat.h cfb_enc.c des_locl.h 145des_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 146des_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 147des_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 148des_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 149des_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 150des_enc.o: des_enc.c des_locl.h ncbc_enc.c spr.h 151des_old.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 152des_old.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 153des_old.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h 154des_old.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 155des_old.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 156des_old.o: ../../include/openssl/ui_compat.h des_old.c 157des_old2.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 158des_old2.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 159des_old2.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h 160des_old2.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 161des_old2.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 162des_old2.o: ../../include/openssl/ui_compat.h des_old2.c 163ecb3_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 164ecb3_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 165ecb3_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 166ecb3_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 167ecb3_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 168ecb3_enc.o: des_locl.h ecb3_enc.c 169ecb_enc.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h 170ecb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 171ecb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 172ecb_enc.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 173ecb_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 174ecb_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 175ecb_enc.o: ../../include/openssl/ui_compat.h des_locl.h des_ver.h ecb_enc.c 176ede_cbcm_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 177ede_cbcm_enc.o: ../../include/openssl/e_os2.h 178ede_cbcm_enc.o: ../../include/openssl/opensslconf.h 179ede_cbcm_enc.o: ../../include/openssl/ossl_typ.h 180ede_cbcm_enc.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 181ede_cbcm_enc.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 182ede_cbcm_enc.o: ../../include/openssl/ui_compat.h des_locl.h ede_cbcm_enc.c 183enc_read.o: ../../e_os.h ../../include/openssl/bio.h 184enc_read.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 185enc_read.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 186enc_read.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 187enc_read.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 188enc_read.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 189enc_read.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 190enc_read.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 191enc_read.o: ../../include/openssl/ui_compat.h ../cryptlib.h des_locl.h 192enc_read.o: enc_read.c 193enc_writ.o: ../../e_os.h ../../include/openssl/bio.h 194enc_writ.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 195enc_writ.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 196enc_writ.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 197enc_writ.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 198enc_writ.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 199enc_writ.o: ../../include/openssl/rand.h ../../include/openssl/safestack.h 200enc_writ.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 201enc_writ.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 202enc_writ.o: ../cryptlib.h des_locl.h enc_writ.c 203fcrypt.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 204fcrypt.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 205fcrypt.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 206fcrypt.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 207fcrypt.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 208fcrypt.o: des_locl.h fcrypt.c 209fcrypt_b.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 210fcrypt_b.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 211fcrypt_b.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 212fcrypt_b.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 213fcrypt_b.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 214fcrypt_b.o: des_locl.h fcrypt_b.c 215ofb64ede.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 216ofb64ede.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 217ofb64ede.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 218ofb64ede.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 219ofb64ede.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 220ofb64ede.o: des_locl.h ofb64ede.c 221ofb64enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 222ofb64enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 223ofb64enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 224ofb64enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 225ofb64enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 226ofb64enc.o: des_locl.h ofb64enc.c 227ofb_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 228ofb_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 229ofb_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 230ofb_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 231ofb_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 232ofb_enc.o: des_locl.h ofb_enc.c 233pcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 234pcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 235pcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 236pcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 237pcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 238pcbc_enc.o: des_locl.h pcbc_enc.c 239qud_cksm.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 240qud_cksm.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 241qud_cksm.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 242qud_cksm.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 243qud_cksm.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 244qud_cksm.o: des_locl.h qud_cksm.c 245rand_key.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 246rand_key.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 247rand_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/rand.h 248rand_key.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 249rand_key.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 250rand_key.o: ../../include/openssl/ui_compat.h rand_key.c 251read2pwd.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 252read2pwd.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 253read2pwd.o: ../../include/openssl/opensslconf.h 254read2pwd.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 255read2pwd.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h 256read2pwd.o: ../../include/openssl/symhacks.h ../../include/openssl/ui.h 257read2pwd.o: ../../include/openssl/ui_compat.h read2pwd.c 258rpc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 259rpc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 260rpc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 261rpc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 262rpc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 263rpc_enc.o: des_locl.h des_ver.h rpc_des.h rpc_enc.c 264set_key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 265set_key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 266set_key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 267set_key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 268set_key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 269set_key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 270set_key.o: des_locl.h set_key.c 271str2key.o: ../../include/openssl/crypto.h ../../include/openssl/des.h 272str2key.o: ../../include/openssl/des_old.h ../../include/openssl/e_os2.h 273str2key.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 274str2key.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 275str2key.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 276str2key.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 277str2key.o: des_locl.h str2key.c 278xcbc_enc.o: ../../include/openssl/des.h ../../include/openssl/des_old.h 279xcbc_enc.o: ../../include/openssl/e_os2.h ../../include/openssl/opensslconf.h 280xcbc_enc.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 281xcbc_enc.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 282xcbc_enc.o: ../../include/openssl/ui.h ../../include/openssl/ui_compat.h 283xcbc_enc.o: des_locl.h xcbc_enc.c 284