home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / ZIP19P1.ZIP / vms / makefile.vms < prev    next >
Makefile  |  1993-01-23  |  3KB  |  125 lines

  1. #============================================================================
  2. # Makefile for VMS Zip, ZipCloak, ZipNote  and ZipSplit          Greg Roelofs
  3. # Version:  1.8f   [for use with Todd Aven's MAKE/VMS 3.4]       25 June 1992
  4. #============================================================================
  5.  
  6. # Most recent revisions:  25 June 1992
  7.  
  8.  
  9. #####################
  10. # MACRO DEFINITIONS #
  11. #####################
  12.  
  13. CRYPTO =
  14. CLOAK =
  15. CFLAGS =
  16. UFLAGS = /def=UTIL
  17. # Uncomment next three lines for decryption version:
  18. #CRYPTO = crypt.obj,
  19. #CLOAK = zipcloak.exe
  20. #CFLAGS = /def=CRYPT
  21. #UFLAGS = /def=(UTIL,CRYPT)
  22.  
  23. CC = cc
  24. LIB =
  25. # Uncomment next two lines to use the GNU compiler (also add /undef=__STDC__
  26. # to CFLAGS and UFLAGS, possibly split UFLAGS into two /def's, and possibly
  27. # replace /obj=$@ [below] with copy/rename/delete setup).  NOT TESTED.
  28. #CC = gcc
  29. #LIB = gnu_cc:[000000]gcclib.olb/lib,
  30.  
  31. E = .exe
  32. O = .obj
  33. LD = link
  34. LDFLAGS =
  35.  
  36. ZIPS = zip$E zipnote$E zipsplit$E $(CLOAK)
  37.  
  38. # object file lists
  39. OBJZ = zip$O, zipfile$O, zipup$O, fileio$O, $(CRYPTO) util$O,-
  40.    globals$O, VMSmunch$O, vms$O
  41. OBJI = deflate$O, trees$O, bits$O
  42. OBJN = zipnote$O, zipfile_$O, zipup_$O, fileio_$O, util_$O,-
  43.    globals$O, VMSmunch$O
  44. OBJS = zipsplit$O, zipfile_$O, zipup_$O, fileio_$O, util_$O,-
  45.    globals$O, VMSmunch$O
  46. OBJC = zipcloak$O, zipfile_$O, zipup_$O, fileio_$O, util$O,-
  47.    globals$O, VMSmunch$O, crypt_$O
  48.  
  49.  
  50. ###############################################
  51. # BASIC COMPILE INSTRUCTIONS AND DEPENDENCIES #
  52. ###############################################
  53.  
  54. default:    $(ZIPS)
  55.  
  56.  
  57. # suffix rules
  58. *.obj:    *.c                # `*.c' necessary?
  59.     $(CC) $(CFLAGS) $<
  60.  
  61. *_.obj:    *.c                # `$*' not legal
  62.     $(CC) $(UFLAGS) /obj=$@ $<
  63.  
  64.  
  65. # executables makerules (trailing `$' makes line a data line)
  66. zip$E:        $(OBJZ), $(OBJI)
  67.     $(LD) $(LDFLAGS) $(OBJZ), $(OBJI), $(LIB) sys$input/opt
  68.     sys$share:vaxcrtl.exe/shareable $
  69.  
  70. zipnote$E:    $(OBJN)
  71.     $(LD) $(LDFLAGS) $(OBJN), $(LIB) sys$input/opt
  72.     sys$share:vaxcrtl.exe/shareable $
  73.  
  74. zipcloak$E:    $(OBJC)
  75.     $(LD) $(LDFLAGS) $(OBJC), $(LIB) sys$input/opt
  76.     sys$share:vaxcrtl.exe/shareable $
  77.  
  78. zipsplit$E:    $(OBJS)
  79.     $(LD) $(LDFLAGS) $(OBJS), $(LIB) sys$input/opt
  80.     sys$share:vaxcrtl.exe/shareable $
  81.  
  82. # dependencies for zip, zipnote, zipcloak, and zipsplit
  83. $(OBJZ):    zip.h ziperr.h tailor.h
  84. $(OBJI):    zip.h ziperr.h tailor.h
  85. $(OBJN):    zip.h ziperr.h tailor.h
  86. $(OBJS):    zip.h ziperr.h tailor.h
  87. $(OBJC):    zip.h ziperr.h tailor.h
  88. fileio$O:    VMSmunch.h
  89. vms$O:          vms.c zip.h
  90. VMSmunch$O:     VMSmunch.c VMSmunch.h
  91. zip$O:        revision.h
  92. zipcloak$O:    revision.h
  93. zipfile$O:    VMSmunch.h
  94. zipnote$O:    revision.h
  95. zipsplit$O:    revision.h
  96. zipup$O:    revision.h
  97.  
  98.  
  99. clean:
  100.     del *.obj;*
  101.     del *.exe;*         # use "purge/log" instead?
  102.  
  103.  
  104. # the backslash '\' is the continuation character if it occurs as
  105. # the last non-white character on the line.
  106. # the hyphen '-' is the DCL continuation character, so if it occurs
  107. # as the last non-white character on the line, the next line will
  108. # not have the dollar sign '$' prepended.
  109.  
  110.  
  111. ################################
  112. # INDIVIDUAL MACHINE MAKERULES #
  113. ################################
  114.  
  115. generic:    default        # first try if unknown
  116. generic2:    default        # second try if unknown
  117. vax:        default
  118. vms:        default
  119.  
  120. all:        $(ZIPS)
  121. zip:        zip$E
  122. zipcloak:    zipcloak$E
  123. zipnote:    zipnote$E
  124. zipsplit:    zipsplit$E
  125.