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

📄 makefile

📁 私家珍藏的RSA Laborary有关加密的函数库
💻
字号:
# This is a MAKEFILE for Microsoft's NMAKE

# extension for object files
O = obj

# commands
CC = cl
LIB = lib

# name of temporary library script
TEMPFILE = $(TEMP)\temp.mak

# The places to look for include files (in order).
INCL =  -I. -I$(RSAREFDIR)

# Normal C flags.
CFLAGS = -Ox -W3 -AL $(INCL) -nologo -c
LFLAGS = /stack:26000

# Debugging C flags.
# CFLAGS =  -W3 -AL -Zi -Od $(INCL) -nologo -c
# LFLAGS = /codeview /map /stack:26000
 
# The location of the common source directory.
RSAREFDIR = ..\source\#
RSAREFLIB = rsaref.lib

# The location of the demo source directory.
RDEMODIR = ..\rdemo\#

all : rdemo.exe dhdemo.exe

rdemo.exe : rdemo.$(O) $(RSAREFLIB)
	link @<<rdemo.lnk
$(LFLAGS) rdemo.$(O)
$@,NUL,
$(RSAREFLIB);
<<NOKEEP

dhdemo.exe : dhdemo.$(O) $(RSAREFLIB)
	link @<<dhdemo.lnk
$(LFLAGS) dhdemo.$(O)
$@,,
$(RSAREFLIB);
<<NOKEEP

$(RSAREFLIB) : desc.$(O) digit.$(O) md2c.$(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)
  @if NOT EXIST $@ $(LIB) $@;
  @echo $@ > $(TEMPFILE)
  @!echo -+$? & >> $(TEMPFILE)
  @echo ;' >> $(TEMPFILE)
  @$(LIB) @$(TEMPFILE)

rdemo.$(O) : $(RDEMODIR)rdemo.c $(RSAREFDIR)global.h $(RSAREFDIR)rsaref.h
	$(CC) $(CFLAGS) $(RDEMODIR)rdemo.c

dhdemo.$(O) : $(RDEMODIR)dhdemo.c $(RSAREFDIR)global.h $(RSAREFDIR)rsaref.h
	$(CC) $(CFLAGS) $(RDEMODIR)dhdemo.c

!INCLUDE $(RSAREFDIR)targets.mak

⌨️ 快捷键说明

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