📄 makefile.asm
字号:
############################################################################### ## Software supplement to the book "Cryptography in C and C++" ## by Michael Welschenbach ## ## makefile.asm for RSA demo with support of assembler functions ## ## Copyright (C) 1998-2005 by Michael Welschenbach ## Copyright (C) 1998-2005 by Springer-Verlag Berlin, Heidelberg ## Copyright (C) 2001-2005 by Apress L.P., Berkeley, CA ## Copyright (C) 2002-2005 by Wydawnictwa MIKOM, Poland ## Copyright (C) 2002-2005 by PHEI, P.R.China ## Copyright (C) 2002-2005 by InfoBook, Korea ## Copyright (C) 2002-2005 by Triumph Publishing, Russia ## ## All Rights Reserved ## ## The software may be used for noncommercial purposes and may be altered, ## as long as the following conditions are accepted without any ## qualification: ## ## (1) All changes to the sources must be identified in such a way that the ## changed software cannot be misinterpreted as the original software. ## ## (2) The statements of copyright may not be removed or altered. ## ## (3) The following DISCLAIMER is accepted: ## ## DISCLAIMER: ## ## There is no warranty for the software contained in this distribution, to ## the extent permitted by applicable law. The copyright holders provide the ## software `as is' without warranty of any kind, either expressed or ## implied, including, but not limited to, the implied warranty of fitness ## for a particular purpose. The entire risk as to the quality and ## performance of the program is with you. ## ## In no event unless required by applicable law or agreed to in writing ## will the copyright holders, or any of the individual authors named in ## the source files, be liable to you for damages, including any general, ## special, incidental or consequential damages arising out of any use of ## the software or out of inability to use the software (including but not ## limited to any financial losses, loss of data or data being rendered ## inaccurate or losses sustained by you or by third parties as a result of ## a failure of the software to operate with any other programs), even if ## such holder or other party has been advised of the possibility of such ## damages. ## ###############################################################################CFLAGS = -c -O2 -Wall -ansi -DFLINT_ASM -I../src -o $@#Parameters for Unix/LinuxSTDCPP=stdc++EXECUTABLE = -o rsademoLIBPATH = ../libFLINTLIB = flint#Parameters for DOS, Windows, OS/2#STDCPP=stdcpp#STDCPP=stdc++#EXECUTABLE = -o rsademo.exe#LIBPATH = ../lib#FLINTLIB = flintarsademo: rsademo.o rsakey.o flintpp.o flint.o random.o entropy.o aes.o ripemd.o sha1.o randompp.o gcc $(EXECUTABLE) rsademo.o rsakey.o random.o entropy.o aes.o ripemd.o sha1.o randompp.o flintpp.o flint.o -l$(FLINTLIB) -l$(STDCPP)rsademo.o: rsademo.cpp gcc $(CFLAGS) rsademo.cpprsakey.o: rsakey.cpp gcc $(CFLAGS) rsakey.cppflintpp.o: ../src/flintpp.cpp gcc $(CFLAGS) ../src/flintpp.cppflint.o: ../src/flint.c gcc $(CFLAGS) ../src/flint.cripemd.o: ../src/ripemd.c gcc $(CFLAGS) ../src/ripemd.crandompp.o: ../src/randompp.cpp gcc $(CFLAGS) ../src/randompp.cpprandom.o: ../src/random.c gcc $(CFLAGS) ../src/random.caes.o: ../src/aes.c gcc $(CFLAGS) ../src/aes.csha1.o: ../src/sha1.c gcc $(CFLAGS) ../src/sha1.centropy.o: ../src/entropy.c gcc $(CFLAGS) ../src/entropy.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -