home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / os2pgp.zip / makefile.rsa < prev    next >
Makefile  |  1995-10-17  |  1KB  |  57 lines

  1. # This is a MAKEFILE for IBM's NMAKE    (IBM Visual Age)
  2.  
  3. # extension for object files
  4. O = obj
  5.  
  6. # commands
  7. CC = icc
  8. LIB = ilib
  9. ASM = masm
  10.  
  11. # name of temporary library script
  12. TEMPFILE = temp.mak
  13.  
  14. # standard include directory
  15. STDINCDIR = f:\ibmcpp\include
  16.  
  17. # The places to look for include files (in order).
  18. INCL =  -I. -I$(SRCDIR) -I$(STDINCDIR)
  19.  
  20. # Normal C flags.
  21. CFLAGS = -Ss -O -Oc $(INCL) -c -DPROTOTYPES=1
  22. LFLAGS =  /stack:26000
  23.  
  24. # Debugging C flags.
  25. #CFLAGS =  -W3 -AL -Zpi -Od $(INCL) -c -DPROTOTYPES=1
  26. #LFLAGS = /codeview /map /stack:26000
  27.  
  28. # The location of the common source directory.
  29. SRCDIR = ..\source\#
  30. SRCLIB = rsaref.lib
  31.  
  32. # The location of the demo source directory.
  33. RDEMODIR = ..\rdemo\#
  34.  
  35. all : $(SRCLIB)
  36.  
  37. rdemo.exe : rdemo.$(O) $(SRCLIB)
  38.         ilink /nofree @<<temp.lnk
  39. $(LFLAGS) rdemo.$(O)
  40. $@,,
  41. $(SRCLIB);
  42. <<NOKEEP
  43.  
  44. $(SRCLIB) : desc.$(O) digit.$(O) md2c.$(O) nn.$(O) prime.$(O)\
  45.   rsa.$(O) r_encode.$(O) r_enhanc.$(O) r_keygen.$(O) r_random.$(O)\
  46.   r_stdlib.$(O)
  47.   @if NOT EXIST $@ $(LIB) $@;
  48.   @echo $@ > $(TEMPFILE)
  49.   @!echo -+$? ^& >> $(TEMPFILE)
  50.   @echo ;' >> $(TEMPFILE)
  51.   @$(LIB) @$(TEMPFILE)
  52.  
  53. rdemo.$(O) : $(RDEMODIR)rdemo.c global.h $(SRCDIR)rsaref.h
  54.         $(CC) $(CFLAGS) $(RDEMODIR)rdemo.c
  55.  
  56. !INCLUDE $(SRCDIR)targets.mak
  57.