Makefile revision 221345
1142425Snectar# 2160814Ssimon# OpenSSL/crypto/sha/Makefile 3142425Snectar# 4142425Snectar 5142425SnectarDIR= sha 6142425SnectarTOP= ../.. 7142425SnectarCC= cc 8142425SnectarCPP= $(CC) -E 9142425SnectarINCLUDES= 10142425SnectarCFLAG=-g 11142425SnectarMAKEFILE= Makefile 12142425SnectarAR= ar r 13142425Snectar 14142425SnectarSHA1_ASM_OBJ= 15142425Snectar 16142425SnectarCFLAGS= $(INCLUDES) $(CFLAG) 17142425SnectarASFLAGS= $(INCLUDES) $(ASFLAG) 18160814SsimonAFLAGS= $(ASFLAGS) 19142425Snectar 20142425SnectarGENERAL=Makefile 21160814SsimonTEST=shatest.c sha1test.c sha256t.c sha512t.c 22142425SnectarAPPS= 23142425Snectar 24142425SnectarLIB=$(TOP)/libcrypto.a 25160814SsimonLIBSRC=sha_dgst.c sha1dgst.c sha_one.c sha1_one.c sha256.c sha512.c 26160814SsimonLIBOBJ=sha_dgst.o sha1dgst.o sha_one.o sha1_one.o sha256.o sha512.o $(SHA1_ASM_OBJ) 27142425Snectar 28142425SnectarSRC= $(LIBSRC) 29142425Snectar 30142425SnectarEXHEADER= sha.h 31142425SnectarHEADER= sha_locl.h $(EXHEADER) 32142425Snectar 33142425SnectarALL= $(GENERAL) $(SRC) $(HEADER) 34142425Snectar 35142425Snectartop: 36142425Snectar (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) 37142425Snectar 38142425Snectarall: lib 39142425Snectar 40142425Snectarlib: $(LIBOBJ) 41194206Ssimon $(ARX) $(LIB) $(LIBOBJ) 42142425Snectar $(RANLIB) $(LIB) || echo Never mind. 43142425Snectar @touch lib 44142425Snectar 45160814Ssimon# ELF 46160814Ssimonsx86-elf.s: asm/sha1-586.pl ../perlasm/x86asm.pl 47160814Ssimon (cd asm; $(PERL) sha1-586.pl elf $(CFLAGS) $(PROCESSOR) > ../$@) 48160814Ssimons512sse2-elf.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl 49160814Ssimon (cd asm; $(PERL) sha512-sse2.pl elf $(CFLAGS) $(PROCESSOR) > ../$@) 50160814Ssimon# COFF 51160814Ssimonsx86-cof.s: asm/sha1-586.pl ../perlasm/x86asm.pl 52160814Ssimon (cd asm; $(PERL) sha1-586.pl coff $(CFLAGS) $(PROCESSOR) > ../$@) 53160814Ssimons512sse2-cof.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl 54160814Ssimon (cd asm; $(PERL) sha512-sse2.pl coff $(CFLAGS) $(PROCESSOR) > ../$@) 55142425Snectar# a.out 56160814Ssimonsx86-out.s: asm/sha1-586.pl ../perlasm/x86asm.pl 57160814Ssimon (cd asm; $(PERL) sha1-586.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@) 58160814Ssimons512sse2-out.s: asm/sha512-sse2.pl ../perlasm/x86asm.pl 59160814Ssimon (cd asm; $(PERL) sha512-sse2.pl a.out $(CFLAGS) $(PROCESSOR) > ../$@) 60142425Snectar 61160814Ssimonsha1-ia64.s: asm/sha1-ia64.pl 62194206Ssimon (cd asm; $(PERL) sha1-ia64.pl ../$@ $(CFLAGS)) 63160814Ssimonsha256-ia64.s: asm/sha512-ia64.pl 64160814Ssimon (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS)) 65160814Ssimonsha512-ia64.s: asm/sha512-ia64.pl 66160814Ssimon (cd asm; $(PERL) sha512-ia64.pl ../$@ $(CFLAGS)) 67142425Snectar 68194206Ssimon# Solaris make has to be explicitly told 69194206Ssimonsha1-x86_64.s: asm/sha1-x86_64.pl; $(PERL) asm/sha1-x86_64.pl $@ 70194206Ssimonsha256-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $@ 71194206Ssimonsha512-x86_64.s:asm/sha512-x86_64.pl; $(PERL) asm/sha512-x86_64.pl $@ 72194206Ssimon 73142425Snectarfiles: 74142425Snectar $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 75142425Snectar 76142425Snectarlinks: 77142425Snectar @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 78142425Snectar @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 79142425Snectar @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 80142425Snectar 81142425Snectarinstall: 82160814Ssimon @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile... 83160814Ssimon @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ 84142425Snectar do \ 85142425Snectar (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 86142425Snectar chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 87142425Snectar done; 88142425Snectar 89142425Snectartags: 90142425Snectar ctags $(SRC) 91142425Snectar 92142425Snectartests: 93142425Snectar 94142425Snectarlint: 95142425Snectar lint -DLINT $(INCLUDES) $(SRC)>fluff 96142425Snectar 97142425Snectardepend: 98160814Ssimon @[ -n "$(MAKEDEPEND)" ] # should be set by upper Makefile... 99142425Snectar $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 100142425Snectar 101142425Snectardclean: 102142425Snectar $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 103142425Snectar mv -f Makefile.new $(MAKEFILE) 104142425Snectar 105142425Snectarclean: 106160814Ssimon rm -f *.s *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 107142425Snectar 108142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it. 109142425Snectar 110142425Snectarsha1_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 111142425Snectarsha1_one.o: ../../include/openssl/opensslconf.h 112160814Ssimonsha1_one.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 113160814Ssimonsha1_one.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 114160814Ssimonsha1_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 115160814Ssimonsha1_one.o: sha1_one.c 116194206Ssimonsha1dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/fips.h 117194206Ssimonsha1dgst.o: ../../include/openssl/opensslconf.h 118160814Ssimonsha1dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/sha.h 119160814Ssimonsha1dgst.o: ../md32_common.h sha1dgst.c sha_locl.h 120160814Ssimonsha256.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 121194206Ssimonsha256.o: ../../include/openssl/fips.h ../../include/openssl/opensslconf.h 122194206Ssimonsha256.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 123194206Ssimonsha256.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 124194206Ssimonsha256.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 125194206Ssimonsha256.o: ../md32_common.h sha256.c 126160814Ssimonsha512.o: ../../e_os.h ../../include/openssl/bio.h 127160814Ssimonsha512.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h 128160814Ssimonsha512.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 129194206Ssimonsha512.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h 130194206Ssimonsha512.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 131194206Ssimonsha512.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 132194206Ssimonsha512.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 133194206Ssimonsha512.o: ../../include/openssl/symhacks.h ../cryptlib.h sha512.c 134194206Ssimonsha_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h 135194206Ssimonsha_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 136194206Ssimonsha_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h 137194206Ssimonsha_dgst.o: ../../include/openssl/opensslconf.h 138194206Ssimonsha_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h 139194206Ssimonsha_dgst.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h 140194206Ssimonsha_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 141160814Ssimonsha_dgst.o: ../md32_common.h sha_dgst.c sha_locl.h 142142425Snectarsha_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 143142425Snectarsha_one.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h 144160814Ssimonsha_one.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h 145160814Ssimonsha_one.o: ../../include/openssl/sha.h ../../include/openssl/stack.h 146160814Ssimonsha_one.o: ../../include/openssl/symhacks.h sha_one.c 147