Makefile revision 302408
1119419Sobrien# 256505Speter# OpenSSL/crypto/sha/Makefile 356505Speter# 456505Speter 556505SpeterDIR= sha 656505SpeterTOP= ../.. 756505SpeterCC= cc 856505SpeterCPP= $(CC) -E 956505SpeterINCLUDES= 1056505SpeterCFLAG=-g 1156505SpeterMAKEFILE= Makefile 1256505SpeterAR= ar r 1356505Speter 1456505SpeterSHA1_ASM_OBJ= 1556505Speter 1656505SpeterCFLAGS= $(INCLUDES) $(CFLAG) 1756505SpeterASFLAGS= $(INCLUDES) $(ASFLAG) 1856505SpeterAFLAGS= $(ASFLAGS) 1956505Speter 2056505SpeterGENERAL=Makefile 21119419SobrienTEST=shatest.c sha1test.c sha256t.c sha512t.c 22119419SobrienAPPS= 23119419Sobrien 2456505SpeterLIB=$(TOP)/libcrypto.a 2556505SpeterLIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c sha256.c sha512.c 2656505SpeterLIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o sha256.o sha512.o $(SHA1_ASM_OBJ) 27129879Sphk 2856505SpeterSRC= $(LIBSRC) 2956505Speter 3056505SpeterEXHEADER= sha.h 3156505SpeterHEADER= sha_locl.h $(EXHEADER) 3256505Speter 3356505SpeterALL= $(GENERAL) $(SRC) $(HEADER) 3456505Speter 3556505Spetertop: 36152175Srodrigc (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) 37119287Simp 3856505Speterall: lib 3956506Speter 4056505Speterlib: $(LIBOBJ) 4156505Speter $(AR) $(LIB) $(LIBOBJ) 4256506Speter $(RANLIB) $(LIB) || echo Never mind. 4356506Speter @touch lib 4456505Speter 4556505Spetersha1-586.s: asm/sha1-586.pl ../perlasm/x86asm.pl 4656506Speter $(PERL) asm/sha1-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ 4756505Spetersha256-586.s: asm/sha256-586.pl ../perlasm/x86asm.pl 4856505Speter $(PERL) asm/sha256-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ 4956505Spetersha512-586.s: asm/sha512-586.pl ../perlasm/x86asm.pl 5056506Speter $(PERL) asm/sha512-586.pl $(PERLASM_SCHEME) $(CFLAGS) $(PROCESSOR) > $@ 5156505Speter 5256505Spetersha1-ia64.s: asm/sha1-ia64.pl 5356506Speter (cd asm; $(PERL) sha1-ia64.pl ../$@ $(CFLAGS)) 5456506Spetersha256-ia64.s: asm/sha512-ia64.pl 55142890Simp (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS)) 5656506Spetersha512-ia64.s: asm/sha512-ia64.pl 5756506Speter (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS)) 5856505Speter 5956505Spetersha256-armv4.S: asm/sha256-armv4.pl 6056505Speter $(PERL) $< $(PERLASM_SCHEME) $@ 6156505Speter 6256505Spetersha1-alpha.s: asm/sha1-alpha.pl 6356505Speter (preproc=$$$$.$@.S; trap "rm $$preproc" INT; \ 6456505Speter $(PERL) asm/sha1-alpha.pl > $$preproc && \ 6556505Speter $(CC) -E -P $$preproc > $@ && rm $$preproc) 6656505Speter 6756505Speter# Solaris make has to be explicitly told 6856505Spetersha1-x86_64.s: asm/sha1-x86_64.pl; $(PERL) asm/sha1-x86_64.pl $(PERLASM_SCHEME) > $@ 6956505Spetersha1-mb-x86_64.s: asm/sha1-mb-x86_64.pl; $(PERL) asm/sha1-mb-x86_64.pl $(PERLASM_SCHEME) > $@ 7056505Spetersha256-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@ 7156505Spetersha256-mb-x86_64.s: asm/sha256-mb-x86_64.pl; $(PERL) asm/sha256-mb-x86_64.pl $(PERLASM_SCHEME) > $@ 7256505Spetersha512-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $(PERLASM_SCHEME) $@ 7356505Spetersha1-sparcv9.S: asm/sha1-sparcv9.pl; $(PERL) asm/sha1-sparcv9.pl $@ $(CFLAGS) 7456505Spetersha256-sparcv9.S:asm/sha512-sparcv9.pl; $(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS) 7556505Spetersha512-sparcv9.S:asm/sha512-sparcv9.pl; $(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS) 7656505Speter 7756505Spetersha1-ppc.s: asm/sha1-ppc.pl; $(PERL) asm/sha1-ppc.pl $(PERLASM_SCHEME) $@ 7856505Spetersha256-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@ 7956505Spetersha512-ppc.s: asm/sha512-ppc.pl; $(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@ 8056505Spetersha256p8-ppc.s: asm/sha512p8-ppc.pl; $(PERL) asm/sha512p8-ppc.pl $(PERLASM_SCHEME) $@ 8156505Spetersha512p8-ppc.s: asm/sha512p8-ppc.pl; $(PERL) asm/sha512p8-ppc.pl $(PERLASM_SCHEME) $@ 82127135Snjl 83127135Snjlsha1-parisc.s: asm/sha1-parisc.pl; $(PERL) asm/sha1-parisc.pl $(PERLASM_SCHEME) $@ 84127135Snjlsha256-parisc.s:asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@ 8556505Spetersha512-parisc.s:asm/sha512-parisc.pl; $(PERL) asm/sha512-parisc.pl $(PERLASM_SCHEME) $@ 8656505Speter 8756505Spetersha1-mips.S: asm/sha1-mips.pl; $(PERL) asm/sha1-mips.pl $(PERLASM_SCHEME) $@ 8856505Spetersha256-mips.S: asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@ 8956505Spetersha512-mips.S: asm/sha512-mips.pl; $(PERL) asm/sha512-mips.pl $(PERLASM_SCHEME) $@ 9056505Speter 9156505Speter# GNU make "catch all" 9256505Spetersha1-%.S: asm/sha1-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@ 93127135Snjlsha256-%.S: asm/sha512-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@ 94127135Snjlsha512-%.S: asm/sha512-%.pl; $(PERL) $< $(PERLASM_SCHEME) $@ 95127135Snjl 9656505Spetersha1-armv4-large.o: sha1-armv4-large.S 9756505Spetersha256-armv4.o: sha256-armv4.S 9856505Spetersha512-armv4.o: sha512-armv4.S 9956505Spetersha1-armv8.o: sha1-armv8.S 10056505Spetersha256-armv8.o: sha256-armv8.S 10156505Spetersha512-armv8.o: sha512-armv8.S 102166914Simp 10356505Speterfiles: 10456505Speter $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 10556505Speter 10656505Speterlinks: 10756505Speter @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 108174136Speter @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 109174136Speter @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 110174136Speter 111174136Speterinstall: 112174136Speter @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... 113174136Speter @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 114174136Speter do \ 115174136Speter (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 116174136Speter chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 117174136Speter done; 118174136Speter 119174136Spetertags: 120174136Speter ctags $(SRC) 121174136Speter 122174136Spetertests: 123174136Speter 124174136Speterlint: 125174136Speter lint -DLINT $(INCLUDES) $(SRC)>fluff 126174136Speter 127174136Speterupdate: depend 128174136Speter 129174136Speterdepend: 130174136Speter @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... 13156505Speter $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 13256505Speter 13356505Speterdclean: 13456505Speter $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 13556505Speter mv -f Makefile.new $(MAKEFILE) 13656505Speter 13756505Speterclean: 13856505Speter rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 13956505Speter 14056505Speter# DO NOT DELETE THIS LINE -- make depend depends on it. 14156505Speter 14256505Spetersha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 14356505Spetersha1_one.o: ../../include/openssl/opensslconf.h 14456505Spetersha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 14556505Spetersha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 14656505Spetersha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 14756505Spetersha1_one.o: sha1_one.c 14856505Spetersha1dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 14956505Spetersha1dgst.o: ../../include/openssl/opensslconf.h 15056505Spetersha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 15156505Spetersha1dgst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 15256505Spetersha1dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 15356505Spetersha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h 15456505Spetersha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 15556505Spetersha256.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 15656505Spetersha256.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 15756505Spetersha256.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 15856505Spetersha256.o: ../../include/openssl/symhacks.h ../md32_common.h sha256.c 15956505Spetersha512.o: ../../e_os.h ../../include/openssl/bio.h 16056505Spetersha512.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 16156505Spetersha512.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 16256505Spetersha512.o: ../../include/openssl/lhash.h ../../include/openssl/opensslconf.h 16356505Spetersha512.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 16456505Spetersha512.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 16556505Spetersha512.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 16656505Spetersha512.o: ../cryptlib.h sha512.c 16756505Spetersha_dgst.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 16856505Spetersha_dgst.o: ../../include/openssl/opensslconf.h 169sha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 170sha_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 171sha_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 172sha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h 173sha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 174sha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 175sha_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 176sha_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 177sha_one.o: ../../include/openssl/symhacks.h sha_one.c 178