home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip51.zip / vms / makefile < prev    next >
Makefile  |  1993-12-21  |  2KB  |  91 lines

  1. #============================================================================
  2. # Makefile for UnZip 5.1 and later                               Greg Roelofs
  3. # Version:  MAKE/VMS 3.4 [Todd Aven]                               7 May 1992
  4. #
  5. # Most recent revisions:  21 Dec 93
  6.  
  7.  
  8. #####################
  9. # MACRO DEFINITIONS #
  10. #####################
  11.  
  12. LOCAL_UNZIP =
  13.  
  14. CC = cc
  15. CFLAGS = $(LOCAL_UNZIP)            # use "cc $(CFLAGS)" this way
  16. # CFLAGS := /def=(FLAG1,FLAG2)        # this also works, if use "cc 'CFLAGS'"
  17. LD = link
  18. LDFLAGS =
  19.  
  20. LN = copy
  21. RM = delete
  22. E = .exe
  23. O = .obj
  24.  
  25. OBJS = unzip$O, crypt.obj, envargs$O, explode$O, extract$O, file_io$O,-
  26.    inflate$O, match$O, unreduce$O, unshrink$O, zipinfo$O, vms$O
  27.  
  28.  
  29. ###############################################
  30. # BASIC COMPILE INSTRUCTIONS AND DEPENDENCIES #
  31. ###############################################
  32.  
  33. default:    all
  34. all:        unzip.exe unzip.hlp
  35.  
  36. *.obj:    *.c                # `*.c' necessary?
  37.     $(CC) $(CFLAGS) $<
  38.  
  39. unzip$E:    $(OBJS)
  40.     $(LD) $(LDFLAGS) $(OBJS), sys$input:/opt      # next line is data line
  41.     sys$share:vaxcrtl.exe/shareable $
  42.  
  43. crypt$O:        crypt.c unzip.h zip.h crypt.h
  44. envargs$O:      envargs.c unzip.h
  45. explode$O:      explode.c unzip.h
  46. extract$O:      extract.c unzip.h crypt.h
  47. file_io$O:      file_io.c unzip.h crypt.h tables.h
  48. inflate$O:      inflate.c inflate.h unzip.h
  49. match$O:        match.c unzip.h
  50. unreduce$O:     unreduce.c unzip.h
  51. unshrink$O:     unshrink.c unzip.h
  52. unzip$O:        unzip.c unzip.h
  53. zipinfo$O:    zipinfo.c unzip.h
  54.  
  55. vms$O:          [.vms]vms.c [.vms]vms.h unzip.h
  56.     $(CC) $(CFLAGS) /include=sys$disk:[] [.vms]vms.c
  57.  
  58. unzip.hlp:    [.vms]unzip.rnh
  59.     runoff /out=unzip.hlp [.vms]unzip.rnh
  60.  
  61. # system: ${SYSDIR}make.exe ${SYSDIR}make.ini
  62. # debug:
  63. #     cflags := /debug/noopt
  64. #     lflags := /debug
  65. # ${DISTDIR}unzip.exe: unzip.exe
  66. #    copy unzip.exe ${DISTDIR}/log
  67.  
  68. clean:
  69.     purge/log
  70. #    purge/log ${DISTDIR}
  71.  
  72.  
  73. # the backslash '\' is the continuation character if it occurs as
  74. # the last non-white character on the line.
  75. # the hyphen '-' is the DCL continuation character, so if it occurs
  76. # as the last non-white character on the line, the next line will
  77. # not have the dollar sign '$' prepended.
  78.  
  79.  
  80. ################################
  81. # INDIVIDUAL MACHINE MAKERULES #
  82. ################################
  83.  
  84. generic:    default        # first try if unknown
  85. generic2:    default        # second try if unknown
  86. vax:        default
  87. vms:        default
  88.  
  89. both:        unzip.exe
  90. unzip:        unzip.exe
  91.