home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
os2pgp.zip
/
makefile.rsa
< prev
next >
Wrap
Makefile
|
1995-10-17
|
1KB
|
57 lines
# This is a MAKEFILE for IBM's NMAKE (IBM Visual Age)
# extension for object files
O = obj
# commands
CC = icc
LIB = ilib
ASM = masm
# name of temporary library script
TEMPFILE = temp.mak
# standard include directory
STDINCDIR = f:\ibmcpp\include
# The places to look for include files (in order).
INCL = -I. -I$(SRCDIR) -I$(STDINCDIR)
# Normal C flags.
CFLAGS = -Ss -O -Oc $(INCL) -c -DPROTOTYPES=1
LFLAGS = /stack:26000
# Debugging C flags.
#CFLAGS = -W3 -AL -Zpi -Od $(INCL) -c -DPROTOTYPES=1
#LFLAGS = /codeview /map /stack:26000
# The location of the common source directory.
SRCDIR = ..\source\#
SRCLIB = rsaref.lib
# The location of the demo source directory.
RDEMODIR = ..\rdemo\#
all : $(SRCLIB)
rdemo.exe : rdemo.$(O) $(SRCLIB)
ilink /nofree @<<temp.lnk
$(LFLAGS) rdemo.$(O)
$@,,
$(SRCLIB);
<<NOKEEP
$(SRCLIB) : desc.$(O) digit.$(O) md2c.$(O) nn.$(O) prime.$(O)\
rsa.$(O) r_encode.$(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 global.h $(SRCDIR)rsaref.h
$(CC) $(CFLAGS) $(RDEMODIR)rdemo.c
!INCLUDE $(SRCDIR)targets.mak