1142425Snectar# 2160814Ssimon# OpenSSL/crypto/blowfish/Makefile 3142425Snectar# 4142425Snectar 5142425SnectarDIR= bf 6142425SnectarTOP= ../.. 7142425SnectarCC= cc 8142425SnectarCPP= $(CC) -E 9142425SnectarINCLUDES= 10142425SnectarCFLAG=-g 11142425SnectarMAKEFILE= Makefile 12142425SnectarAR= ar r 13142425Snectar 14142425SnectarBF_ENC= bf_enc.o 15142425Snectar# or use 16142425Snectar#DES_ENC= bx86-elf.o 17142425Snectar 18142425SnectarCFLAGS= $(INCLUDES) $(CFLAG) 19142425SnectarASFLAGS= $(INCLUDES) $(ASFLAG) 20160814SsimonAFLAGS= $(ASFLAGS) 21142425Snectar 22142425SnectarGENERAL=Makefile 23142425SnectarTEST=bftest.c 24142425SnectarAPPS= 25142425Snectar 26142425SnectarLIB=$(TOP)/libcrypto.a 27142425SnectarLIBSRC=bf_skey.c bf_ecb.c bf_enc.c bf_cfb64.c bf_ofb64.c 28142425SnectarLIBOBJ=bf_skey.o bf_ecb.o $(BF_ENC) bf_cfb64.o bf_ofb64.o 29142425Snectar 30142425SnectarSRC= $(LIBSRC) 31142425Snectar 32142425SnectarEXHEADER= blowfish.h 33142425SnectarHEADER= bf_pi.h bf_locl.h $(EXHEADER) 34142425Snectar 35142425SnectarALL= $(GENERAL) $(SRC) $(HEADER) 36142425Snectar 37142425Snectartop: 38142425Snectar (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) 39142425Snectar 40142425Snectarall: lib 41142425Snectar 42142425Snectarlib: $(LIBOBJ) 43194206Ssimon $(ARX) $(LIB) $(LIBOBJ) 44142425Snectar $(RANLIB) $(LIB) || echo Never mind. 45142425Snectar @touch lib 46142425Snectar 47160814Ssimon# ELF 48160814Ssimonbx86-elf.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 49160814Ssimon (cd asm; $(PERL) bf-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@) 50160814Ssimon# COFF 51160814Ssimonbx86-cof.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 52160814Ssimon (cd asm; $(PERL) bf-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@) 53142425Snectar# a.out 54160814Ssimonbx86-out.s: asm/bf-586.pl ../perlasm/x86asm.pl ../perlasm/cbc.pl 55160814Ssimon (cd asm; $(PERL) bf-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@) 56142425Snectar 57142425Snectarfiles: 58142425Snectar $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 59142425Snectar 60142425Snectarlinks: 61142425Snectar @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 62142425Snectar @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 63142425Snectar @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 64142425Snectar 65160814Ssimon# We need to use force because 'install' matches 'INSTALL' on case 66160814Ssimon# insensitive systems 67160814SsimonFRC.install: 68160814Ssimoninstall: FRC.install 69160814Ssimon @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... 70160814Ssimon @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 71142425Snectar do \ 72142425Snectar (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 73142425Snectar chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 74142425Snectar done; 75142425Snectar 76142425Snectartags: 77142425Snectar ctags $(SRC) 78142425Snectar 79142425Snectartests: 80142425Snectar 81142425Snectarlint: 82142425Snectar lint -DLINT $(INCLUDES) $(SRC)>fluff 83142425Snectar 84142425Snectardepend: 85160814Ssimon @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... 86142425Snectar $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 87142425Snectar 88142425Snectardclean: 89142425Snectar $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 90142425Snectar mv -f Makefile.new $(MAKEFILE) 91142425Snectar 92142425Snectarclean: 93160814Ssimon rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 94142425Snectar 95142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it. 96142425Snectar 97142425Snectarbf_cfb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h 98142425Snectarbf_cfb64.o: ../../include/openssl/opensslconf.h bf_cfb64.c bf_locl.h 99142425Snectarbf_ecb.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h 100142425Snectarbf_ecb.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 101142425Snectarbf_ecb.o: bf_ecb.c bf_locl.h 102142425Snectarbf_enc.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h 103142425Snectarbf_enc.o: ../../include/openssl/opensslconf.h bf_enc.c bf_locl.h 104142425Snectarbf_ofb64.o: ../../include/openssl/blowfish.h ../../include/openssl/e_os2.h 105142425Snectarbf_ofb64.o: ../../include/openssl/opensslconf.h bf_locl.h bf_ofb64.c 106194206Ssimonbf_skey.o: ../../include/openssl/blowfish.h ../../include/openssl/crypto.h 107194206Ssimonbf_skey.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h 108194206Ssimonbf_skey.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 109194206Ssimonbf_skey.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 110194206Ssimonbf_skey.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 111194206Ssimonbf_skey.o: bf_locl.h bf_pi.h bf_skey.c 112