⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 Dos mode MD5 Source code
💻
字号:
# This makefile compiles the source code for the "RSA Data Security, Inc.# MD5 Message-Digest Algorithm" as found in RFC 1321.  That code is copyrighted:##	Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991.#	All rights reserved.## See the source code for copyright restrictions.## No "makefile" is provided in the RFC.# This one was written by Jim Ellis (jte@cert.org) for convenience.## Modified by: Sh Yunchen (rock@bbs.isu.edu.tw) # I add two labels to create a archive and install.# Create : make archive# Install: make install# The name of archive: libmd5.a# Where did they install to?# Archive: $PREFIX/lib# Header files: $PREFIX/include/md5#PREFIX = /usrCC = gcc# Note: a bug in mddriver causes "MD" to default to an incorrect value,# so we set it to "5" here.CFLAGS = -O2 -DMD=5md5: md5c.o mddriver.o	$(CC) -o md5 md5c.o mddriver.oarchive: md5c.o	ar ruv libmd5.a $<	ranlib libmd5.aall: md5 archivemddriver.o: global.h md5.h	$(CC) -c $(CFLAGS) mddriver.cmd5c.o: global.h md5.h	$(CC) -c $(CFLAGS) md5c.ctest: md5 test.rfc	-./md5 -x | diff - test.rfc > diffs 2>&1	@-if test -s diffs ; then echo '*** MD5 TEST FAILED'; cat diffs; else echo '*** MD5 Test Passed'; fi	rm -f diffs# test.rfc is taken from Appendix 5 of RFC 1321.test.rfc:	echo 'MD5 test suite:' > test.rfc	echo 'MD5 ("") = d41d8cd98f00b204e9800998ecf8427e' >> test.rfc	echo 'MD5 ("a") = 0cc175b9c0f1b6a831c399e269772661' >> test.rfc	echo 'MD5 ("abc") = 900150983cd24fb0d6963f7d28e17f72' >> test.rfc	echo 'MD5 ("message digest") = f96b697d7cb7938d525a2f31aaf161d0' >> test.rfc	echo 'MD5 ("abcdefghijklmnopqrstuvwxyz") = c3fcd3d76192e4007dfb496cca67e13b' >> test.rfc	echo 'MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") = d174ab98d277d9f5a5611c2c9f419d9f' >> test.rfc	echo 'MD5 ("12345678901234567890123456789012345678901234567890123456789012345678901234567890") = 57edf4a22be3c955ac49da2e2107b67a' >> test.rfcclean:	rm -f *.o md5 diffs test.rfc libmd5.ainstall:	if [ -w $(PREFIX) ]; then true; else exit 1; fi	if [ -d $(PREFIX) ]; then true; else mkdir $(PREFIX); fi	if [ -d $(PREFIX)/lib ]; then true; else mkdir $(PREFIX)/lib; fi	install -m 755 libmd5.a $(PREFIX)/lib	if [ -d $(PREFIX)/include ]; then true; else mkdir $(PREFIX)/include; fi	install -m 644 md5.hi $(PREFIX)/include/md5.h	if [ -d $(PREFIX)/include/md5 ]; then true; else mkdir $(PREFIX)/include/md5; fi	install -m 644 global.h $(PREFIX)/include/md5	install -m 644 md5.h $(PREFIX)/include/md5

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -