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

  1. #============================================================================
  2. # Makefile for UnZip & ZipInfo:  VMS                             Greg Roelofs
  3. # Version:  5.0 (inflate,explode)                                  7 May 1992
  4. #============================================================================
  5.  
  6. # Most recent revisions:  26 June 1992
  7.  
  8.  
  9. #####################
  10. # MACRO DEFINITIONS #
  11. #####################
  12.  
  13. CRYPTF =
  14. CRYPTO =
  15. # Uncomment next two lines for decryption version:
  16. #CRYPTF = /def=(CRYPT)
  17. #CRYPTO = crypt.obj,
  18.  
  19. CC = cc
  20. CFLAGS = $(CRYPTF)            # use "cc $(CFLAGS)" this way
  21. # CFLAGS := /def=(FLAG1,FLAG2)        # this also works, if use "cc 'CFLAGS'"
  22. ZCFLAGS = /def=(ZIPINFO)
  23. LD = link
  24. LDFLAGS =
  25.  
  26. LN = copy
  27. RM = delete
  28. E = .exe
  29. O = .obj
  30.  
  31. OBJS = unzip$O, $(CRYPTO) envargs$O, explode$O, extract$O, file_io$O,-
  32.    inflate$O, mapname$O, match$O, misc$O, unreduce$O, unshrink$O,-
  33.    vms$O, sys$input:/opt
  34. ZI_OBJS = zipinfo$O, envargs$O, match$O, misc$O_, vms$O_, sys$input:/opt
  35.  
  36.  
  37. ###############################################
  38. # BASIC COMPILE INSTRUCTIONS AND DEPENDENCIES #
  39. ###############################################
  40.  
  41. default:    unzip.exe zipinfo.exe
  42.  
  43. *.obj:    *.c                # `*.c' necessary?
  44.     $(CC) $(CFLAGS) $<
  45.  
  46. *.obj_:    *.c                # `$*' not legal
  47.     $(CC) $(ZCFLAGS) $< /obj=$@
  48.  
  49. unzip$E:    $(OBJS)
  50.     $(LD) $(LDFLAGS) $(OBJS)    # next line is data line
  51.     sys$share:vaxcrtl.exe/shareable $
  52.  
  53. zipinfo$E:    $(ZI_OBJS)
  54.     $(LD) $(LDFLAGS) $(ZI_OBJS)    # next line is data line
  55.     sys$share:vaxcrtl.exe/shareable $
  56.  
  57. crypt$O:        crypt.c unzip.h zip.h    # may or may not be in distribution
  58. envargs$O:      envargs.c unzip.h
  59. explode$O:      explode.c unzip.h
  60. extract$O:      extract.c unzip.h
  61. file_io$O:      file_io.c unzip.h
  62. inflate$O:      inflate.c unzip.h
  63. mapname$O:      mapname.c unzip.h
  64. match$O:        match.c unzip.h
  65. misc$O:         misc.c unzip.h
  66. misc$O_:    misc.c unzip.h
  67. unreduce$O:     unreduce.c unzip.h
  68. unshrink$O:     unshrink.c unzip.h
  69. unzip$O:        unzip.c unzip.h
  70. vms$O:          vms.c unzip.h
  71. vms$O_:         vms.c unzip.h
  72. VMSmunch$O:     VMSmunch.c VMSmunch.h
  73. zipinfo$O:    zipinfo.c unzip.h
  74.  
  75. # system: ${SYSDIR}make.exe ${SYSDIR}make.ini
  76. # debug:
  77. #     cflags := /debug/noopt
  78. #     lflags := /debug
  79. # ${DISTDIR}unzip.exe: unzip.exe
  80. #    copy unzip.exe ${DISTDIR}/log
  81.  
  82. clean:
  83.     purge/log
  84. #    purge/log ${DISTDIR}
  85.  
  86.  
  87. # the backslash '\' is the continuation character if it occurs as
  88. # the last non-white character on the line.
  89. # the hyphen '-' is the DCL continuation character, so if it occurs
  90. # as the last non-white character on the line, the next line will
  91. # not have the dollar sign '$' prepended.
  92.  
  93.  
  94. ################################
  95. # INDIVIDUAL MACHINE MAKERULES #
  96. ################################
  97.  
  98. generic:    default        # first try if unknown
  99. generic2:    default        # second try if unknown
  100. vax:        default
  101. vms:        default
  102.  
  103. both:        unzip.exe zipinfo.exe
  104. unzip:        unzip.exe
  105. zipinfo:    zipinfo.exe
  106.