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

📄 makefile

📁 rsa算法是密码学中一个加密体制
💻
字号:
# This is a makefile for gcc compatible make.# May require alterations for some make programs.# HP-UX make may require file to be altered.# extension for object filesO = o# commandsCC = gccCPP = cppLIB = arASM = as# name of temporary library scriptTEMPFILE = $(TEMP)/temp.mak# standard include directorySTDINCDIR=/gcc/include# The places to look for include files (in order).INCL =  -I. -I$(RSAEURODIR) -I$(STDINCDIR)# Extra Defs# To select CPU type set CPUT to any of the following## 386 = i386+ processor, 80386 and above processor# 68k = M680x0 series processor.## Leave empty to disable assembler routines.CPUT = 386# Set to 1 for ANSI Standard Routine to be Used, only availible# if assembler routines not it use.ANSISTD = # utility routinesdel = delCOPY = copy# name of main executable to buildPROG = all# Normal C flags.ifdef CPUTCFLAGS = $(INCL) -O -c -DPROTOTYPES=0 -DUSEASM=1 -DDES386=1elseifdef ANSISTDCFLAGS = $(INCL) -O -c -DPROTOTYPES=0 -DUSA_ANSI=1elseCFLAGS = $(INCL) -O -c -DPROTOTYPES=0 endifendifASMFL = $(INCL) -c -Wa,-LMFLAGS = -I. -I$(RSAEURODIR)# The location of the common source directory.RSAEURODIR = ../source/RSAEUROLIB = rsaeuro.aRSAREFLIB = rsaref.a# The location of the demo source directory.RDEMODIR = ../rdemo/DEMODIR = ../demo/ifdef CPUTall : rstdasm.$(O) demo $(RSAREFLIB)# Use ASMCODE for some key routinesrstdasm.$(O) : $(RSAEURODIR)rsa$(CPUT).s	$(CC) $(ASMFL) $(RSAEURODIR)rsa$(CPUT).s -o rstdasm.$(O)desasm.$(O) : $(RSAEURODIR)des$(CPUT).s	$(CPP) $(RSAEURODIR)des$(CPUT).s | $(ASM) -o desasm.$(O)elseall : clean demo $(RSAREFLIB)# Make sure we use the C version of the routinesclean :	$(del) r_stdlib.$(O)	$(del) rstdasm.$(O)endif$(RSAREFLIB) : $(RSAEUROLIB)	$(COPY) $(RSAEUROLIB) $(RSAREFLIB)demo : redemo mdemo randemorandemo : randemo.$(O) $(RSAEUROLIB)	gcc -o $@ randemo.$(O) $(RSAEUROLIB)mdemo : mdemo.$(O) $(RSAEUROLIB)	gcc -o $@ mdemo.$(O) $(RSAEUROLIB)redemo : redemo.$(O) $(RSAEUROLIB)	gcc -o $@ redemo.$(O) $(RSAEUROLIB)ifdef CPUT$(RSAEUROLIB) : desc.$(O) shsc.$(O) md2c.$(O) md4c.$(O) md5c.$(O) nn.$(O) prime.$(O)\	rsa.$(O) r_encode.$(O) r_dh.$(O) r_enhanc.$(O) r_keygen.$(O) r_random.$(O)\	r_stdlib.$(O) rstdasm.$(O) desasm.$(O)	$(LIB) r $@ $?	ranlib $@else$(RSAEUROLIB) : desc.$(O) shsc.$(O) md2c.$(O) md4c.$(O) md5c.$(O) nn.$(O) prime.$(O)\	rsa.$(O) r_encode.$(O) r_dh.$(O) r_enhanc.$(O) r_keygen.$(O) r_random.$(O)\	r_stdlib.$(O)	$(LIB) r $@ $?	ranlib $@endifrandemo.$(O) : $(DEMODIR)randemo.c $(RSAEURODIR)global.h $(RSAEURODIR)rsaref.h	$(CC) $(CFLAGS) $(DEMODIR)randemo.cmdemo.$(O) : $(DEMODIR)mdemo.c $(RSAEURODIR)global.h $(RSAEURODIR)rsaref.h	$(CC) $(CFLAGS) $(DEMODIR)mdemo.credemo.$(O) : $(DEMODIR)redemo.c $(RSAEURODIR)global.h $(RSAEURODIR)rsaref.h	$(CC) $(CFLAGS) $(DEMODIR)redemo.cinclude $(RSAEURODIR)targets.mak

⌨️ 快捷键说明

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