Makefile revision 142425
1142425Snectar# 2142425Snectar# SSLeay/crypto/md5/Makefile 3142425Snectar# 4142425Snectar 5142425SnectarDIR= md5 6142425SnectarTOP= ../.. 7142425SnectarCC= cc 8142425SnectarCPP= $(CC) -E 9142425SnectarINCLUDES=-I.. -I$(TOP) -I../../include 10142425SnectarCFLAG=-g 11142425SnectarINSTALL_PREFIX= 12142425SnectarOPENSSLDIR= /usr/local/ssl 13142425SnectarINSTALLTOP=/usr/local/ssl 14142425SnectarMAKEDEPPROG= makedepend 15142425SnectarMAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) 16142425SnectarMAKEFILE= Makefile 17142425SnectarAR= ar r 18142425Snectar 19142425SnectarMD5_ASM_OBJ= 20142425Snectar 21142425SnectarCFLAGS= $(INCLUDES) $(CFLAG) 22142425SnectarASFLAGS= $(INCLUDES) $(ASFLAG) 23142425Snectar 24142425SnectarGENERAL=Makefile 25142425SnectarTEST=md5test.c 26142425SnectarAPPS= 27142425Snectar 28142425SnectarLIB=$(TOP)/libcrypto.a 29142425SnectarLIBSRC=md5_dgst.c md5_one.c 30142425SnectarLIBOBJ=md5_dgst.o md5_one.o $(MD5_ASM_OBJ) 31142425Snectar 32142425SnectarSRC= $(LIBSRC) 33142425Snectar 34142425SnectarEXHEADER= md5.h 35142425SnectarHEADER= md5_locl.h $(EXHEADER) 36142425Snectar 37142425SnectarALL= $(GENERAL) $(SRC) $(HEADER) 38142425Snectar 39142425Snectartop: 40142425Snectar (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) 41142425Snectar 42142425Snectarall: lib 43142425Snectar 44142425Snectarlib: $(LIBOBJ) 45142425Snectar $(AR) $(LIB) $(LIBOBJ) 46142425Snectar $(RANLIB) $(LIB) || echo Never mind. 47142425Snectar @touch lib 48142425Snectar 49142425Snectar# elf 50142425Snectarasm/mx86-elf.s: asm/md5-586.pl ../perlasm/x86asm.pl 51142425Snectar (cd asm; $(PERL) md5-586.pl elf $(CFLAGS) > mx86-elf.s) 52142425Snectar 53142425Snectar# a.out 54142425Snectarasm/mx86-out.o: asm/mx86unix.cpp 55142425Snectar $(CPP) -DOUT asm/mx86unix.cpp | as -o asm/mx86-out.o 56142425Snectar 57142425Snectar# bsdi 58142425Snectarasm/mx86bsdi.o: asm/mx86unix.cpp 59142425Snectar $(CPP) -DBSDI asm/mx86unix.cpp | sed 's/ :/:/' | as -o asm/mx86bsdi.o 60142425Snectar 61142425Snectarasm/mx86unix.cpp: asm/md5-586.pl ../perlasm/x86asm.pl 62142425Snectar (cd asm; $(PERL) md5-586.pl cpp >mx86unix.cpp) 63142425Snectar 64142425Snectarasm/md5-sparcv8plus.o: asm/md5-sparcv9.S 65142425Snectar $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \ 66142425Snectar -o asm/md5-sparcv8plus.o asm/md5-sparcv9.S 67142425Snectar 68142425Snectar# Old GNU assembler doesn't understand V9 instructions, so we 69142425Snectar# hire /usr/ccs/bin/as to do the job. Note that option is called 70142425Snectar# *-gcc27, but even gcc 2>=8 users may experience similar problem 71142425Snectar# if they didn't bother to upgrade GNU assembler. Such users should 72142425Snectar# not choose this option, but be adviced to *remove* GNU assembler 73142425Snectar# or upgrade it. 74142425Snectarasm/md5-sparcv8plus-gcc27.o: asm/md5-sparcv9.S 75142425Snectar $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -E asm/md5-sparcv9.S | \ 76142425Snectar /usr/ccs/bin/as -xarch=v8plus - -o asm/md5-sparcv8plus-gcc27.o 77142425Snectar 78142425Snectarasm/md5-sparcv9.o: asm/md5-sparcv9.S 79142425Snectar $(CC) $(ASFLAGS) -DMD5_BLOCK_DATA_ORDER -c \ 80142425Snectar -o asm/md5-sparcv9.o asm/md5-sparcv9.S 81142425Snectar 82142425Snectarfiles: 83142425Snectar $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO 84142425Snectar 85142425Snectarlinks: 86142425Snectar @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) 87142425Snectar @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) 88142425Snectar @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) 89142425Snectar 90142425Snectarinstall: 91142425Snectar @for i in $(EXHEADER) ; \ 92142425Snectar do \ 93142425Snectar (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ 94142425Snectar chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ 95142425Snectar done; 96142425Snectar 97142425Snectartags: 98142425Snectar ctags $(SRC) 99142425Snectar 100142425Snectartests: 101142425Snectar 102142425Snectarlint: 103142425Snectar lint -DLINT $(INCLUDES) $(SRC)>fluff 104142425Snectar 105142425Snectardepend: 106142425Snectar $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) 107142425Snectar 108142425Snectardclean: 109142425Snectar $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new 110142425Snectar mv -f Makefile.new $(MAKEFILE) 111142425Snectar 112142425Snectarclean: 113142425Snectar rm -f asm/mx86unix.cpp asm/*-elf.* *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff 114142425Snectar 115142425Snectar# DO NOT DELETE THIS LINE -- make depend depends on it. 116142425Snectar 117142425Snectarmd5_dgst.o: ../../include/openssl/bio.h ../../include/openssl/crypto.h 118142425Snectarmd5_dgst.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h 119142425Snectarmd5_dgst.o: ../../include/openssl/fips.h ../../include/openssl/lhash.h 120142425Snectarmd5_dgst.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h 121142425Snectarmd5_dgst.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 122142425Snectarmd5_dgst.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 123142425Snectarmd5_dgst.o: ../md32_common.h md5_dgst.c md5_locl.h 124142425Snectarmd5_one.o: ../../include/openssl/crypto.h ../../include/openssl/e_os2.h 125142425Snectarmd5_one.o: ../../include/openssl/md5.h ../../include/openssl/opensslconf.h 126142425Snectarmd5_one.o: ../../include/openssl/opensslv.h ../../include/openssl/safestack.h 127142425Snectarmd5_one.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h 128142425Snectarmd5_one.o: md5_one.c 129