home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / a_utils / _archvrs / unix / unzip51 / vms / makefile < prev    next >
Encoding:
Makefile  |  1992-10-21  |  2.7 KB  |  100 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:  21 October 1992
  7.  
  8.  
  9. #####################
  10. # MACRO DEFINITIONS #
  11. #####################
  12.  
  13. LOCAL_UNZIP =
  14.  
  15. CC = cc
  16. CFLAGS = $(LOCAL_UNZIP)            # use "cc $(CFLAGS)" this way
  17. # CFLAGS := /def=(FLAG1,FLAG2)        # this also works, if use "cc 'CFLAGS'"
  18. ZCFLAGS = /def=(ZIPINFO)
  19. LD = link
  20. LDFLAGS =
  21.  
  22. LN = copy
  23. RM = delete
  24. E = .exe
  25. O = .obj
  26.  
  27. OBJS = unzip$O, crypt.obj, envargs$O, explode$O, extract$O, file_io$O,-
  28.    inflate$O, mapname$O, match$O, misc$O, unreduce$O, unshrink$O,-
  29.    vms$O
  30. ZI_OBJS = zipinfo$O, envargs$O, match$O, vms$O_
  31.  
  32.  
  33. ###############################################
  34. # BASIC COMPILE INSTRUCTIONS AND DEPENDENCIES #
  35. ###############################################
  36.  
  37. default:    unzip.exe zipinfo.exe
  38.  
  39. *.obj:    *.c                # `*.c' necessary?
  40.     $(CC) $(CFLAGS) $<
  41.  
  42. *.obj_:    *.c                # `$*' not legal
  43.     $(CC) $(ZCFLAGS) $< /obj=$@
  44.  
  45. unzip$E:    $(OBJS)
  46.     $(LD) $(LDFLAGS) $(OBJS), sys$input:/opt      # next line is data line
  47.     sys$share:vaxcrtl.exe/shareable $
  48.  
  49. zipinfo$E:    $(ZI_OBJS)
  50.     $(LD) $(LDFLAGS) $(ZI_OBJS), sys$input:/opt   # next line is data line
  51.     sys$share:vaxcrtl.exe/shareable $
  52.  
  53. crypt$O:        crypt.c unzip.h zip.h crypt.h
  54. envargs$O:      envargs.c unzip.h
  55. explode$O:      explode.c unzip.h
  56. extract$O:      extract.c unzip.h crypt.h
  57. file_io$O:      file_io.c unzip.h crypt.h
  58. inflate$O:      inflate.c unzip.h
  59. mapname$O:      mapname.c unzip.h
  60. match$O:        match.c unzip.h
  61. misc$O:         misc.c unzip.h
  62. unreduce$O:     unreduce.c unzip.h
  63. unshrink$O:     unshrink.c unzip.h
  64. unzip$O:        unzip.c unzip.h crypt.h
  65. vms$O:          vms.c unzip.h
  66. vms$O_:         vms.c unzip.h
  67. zipinfo$O:    zipinfo.c unzip.h file_io.c misc.c
  68.  
  69. # system: ${SYSDIR}make.exe ${SYSDIR}make.ini
  70. # debug:
  71. #     cflags := /debug/noopt
  72. #     lflags := /debug
  73. # ${DISTDIR}unzip.exe: unzip.exe
  74. #    copy unzip.exe ${DISTDIR}/log
  75.  
  76. clean:
  77.     purge/log
  78. #    purge/log ${DISTDIR}
  79.  
  80.  
  81. # the backslash '\' is the continuation character if it occurs as
  82. # the last non-white character on the line.
  83. # the hyphen '-' is the DCL continuation character, so if it occurs
  84. # as the last non-white character on the line, the next line will
  85. # not have the dollar sign '$' prepended.
  86.  
  87.  
  88. ################################
  89. # INDIVIDUAL MACHINE MAKERULES #
  90. ################################
  91.  
  92. generic:    default        # first try if unknown
  93. generic2:    default        # second try if unknown
  94. vax:        default
  95. vms:        default
  96.  
  97. both:        unzip.exe zipinfo.exe
  98. unzip:        unzip.exe
  99. zipinfo:    zipinfo.exe
  100.