Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. # Makefile for the MVS (OS/390 Base) version of UNZIP 5.4
  2. # Produced for C/C++ V3R2 in OS/390 1.2.0 by Ian E. Gorman, 2 Nov 1998
  3. # Facilities for compiling and testing were made available by
  4. #     OmniMark Technologies Corporation, Ottawa, Canada
  5.  
  6. # NOTES
  7. #
  8. # The only tabs in this file are in the first character of each recipe
  9. # line, where they are required by make.
  10. #
  11. # Run this makefile in OpenMVS (OS/390 POSIX) using source files in the
  12. # HFS file system.  You can write the load module to either HFS file
  13. # system or to a PDS in the native MVS file system.  The PDS must have
  14. # sufficient free space to hold the load module.
  15. #
  16. # To compile to a member of a PDS:
  17. #   make
  18. # or
  19. #   make unzip.mvs
  20. #
  21. # To compile a test version into the HFS file system:
  22. #   make hfs
  23.  
  24. # UNZIP options -- MVS, REENTRANT
  25. ZIPOPTS=-DMVS
  26.  
  27. # directories
  28.  
  29. # generic source code
  30. SRC=..
  31. SRC_P=$(SRC)/
  32.  
  33. # source code for MVS
  34. CMSMVS=../cmsmvs
  35. CMSMVS_P=$(CMSMVS)/
  36.  
  37. # include files
  38. INCLS=-I$(SRC) -I$(CMSMVS)
  39.  
  40. # object files and load modules
  41. BLD_P=../mvs/
  42.  
  43. # Other options
  44.  
  45. # Suffixes (E and O must be different)
  46. E=
  47. O=.o
  48.  
  49. # Need EXTENDED features for global.c and vmvms.c, so not using c89
  50. CC=cc
  51. CFLAGS=-D_OPEN_SYS $(ZIPOPTS) $(INCLS)
  52.  
  53. LD=cc
  54. LDFLAGS=
  55.  
  56. # Files
  57.  
  58. # object (TEXT) files
  59. OBJECTS= $(BLD_P)unzip$(O) $(BLD_P)crc32$(O) \
  60.    $(BLD_P)crypt$(O)    $(BLD_P)envargs$(O)  $(BLD_P)explode$(O) \
  61.    $(BLD_P)extract$(O)  $(BLD_P)fileio$(O)   $(BLD_P)globals$(O) \
  62.    $(BLD_P)inflate$(O)  $(BLD_P)process$(O)  $(BLD_P)list$(O) \
  63.    $(BLD_P)match$(O)    $(BLD_P)ttyio$(O)    $(BLD_P)unreduce$(O) \
  64.    $(BLD_P)unshrink$(O) $(BLD_P)zipinfo$(O)  $(BLD_P)vmmvs$(O)
  65.  
  66. # Header files
  67. HFILES= $(SRC_P)consts.h $(SRC_P)crypt.h $(SRC_P)ebcdic.h \
  68.     $(SRC_P)globals.h $(SRC_P)inflate.h \
  69.     $(SRC_P)ttyio.h $(SRC_P)unzip.h $(SRC_P)unzpriv.h \
  70.     $(SRC_P)unzvers.h $(SRC_P)zip.h $(CMSMVS_P)vmmvs.h \
  71.     $(CMSMVS_P)vmstat.h
  72.  
  73. # Rules
  74.  
  75. all:  $(BLD_P)unzip.mvs$(E)
  76. hfs:  $(BLD_P)unzip$(E)
  77.  
  78. # link
  79.  
  80. $(BLD_P)unzip.mvs$(E):     $(OBJECTS)
  81.         $(LD) -o "//INFOZIP.LOAD(UNZIP)" $(LDFLAGS) $^
  82.         echo "tso call \"infozip(unzip)\" \"'\"\"""$$""@""\"\"'\"" > $%
  83.         chmod a+x $%
  84.  
  85. $(BLD_P)unzip$(E):     $(OBJECTS)
  86.         $(LD) -o $% $(LDFLAGS) $^
  87.  
  88. # compile
  89.  
  90. $(BLD_P)api$(O):        $(SRC_P)api.c           $(HFILES)
  91.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)api.c
  92.  
  93. $(BLD_P)apihelp$(O):    $(SRC_P)apihelp.c       $(HFILES)
  94.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)apihelp.c
  95.  
  96. $(BLD_P)crc32$(O):      $(SRC_P)crc32.c         $(HFILES)
  97.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)crc32.c
  98.  
  99. $(BLD_P)crypt$(O):      $(SRC_P)crypt.c         $(HFILES)
  100.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)crypt.c
  101.  
  102. $(BLD_P)envargs$(O):    $(SRC_P)envargs.c       $(HFILES)
  103.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)envargs.c
  104.  
  105. $(BLD_P)explode$(O):    $(SRC_P)explode.c       $(HFILES)
  106.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)explode.c
  107.  
  108. $(BLD_P)extract$(O):    $(SRC_P)extract.c       $(HFILES)
  109.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)extract.c
  110.  
  111. $(BLD_P)fileio$(O):     $(SRC_P)fileio.c        $(HFILES)
  112.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)fileio.c
  113.  
  114. $(BLD_P)funzip$(O):     $(SRC_P)funzip.c        $(HFILES)
  115.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)funzip.c
  116.  
  117. $(BLD_P)globals$(O):    $(SRC_P)globals.c       $(HFILES)
  118.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)globals.c
  119.  
  120. $(BLD_P)inflate$(O):    $(SRC_P)inflate.c       $(HFILES)
  121.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)inflate.c
  122.  
  123. $(BLD_P)list$(O):       $(SRC_P)list.c          $(HFILES)
  124.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)list.c
  125.  
  126. $(BLD_P)match$(O):      $(SRC_P)match.c         $(HFILES)
  127.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)match.c
  128.  
  129. $(BLD_P)process$(O):    $(SRC_P)process.c       $(HFILES)
  130.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)process.c
  131.  
  132. $(BLD_P)ttyio$(O):      $(SRC_P)ttyio.c         $(HFILES)
  133.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)ttyio.c
  134.  
  135. $(BLD_P)unreduce$(O):   $(SRC_P)unreduce.c      $(HFILES)
  136.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)unreduce.c
  137.  
  138. $(BLD_P)unshrink$(O):   $(SRC_P)unshrink.c      $(HFILES)
  139.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)unshrink.c
  140.  
  141. $(BLD_P)unzip$(O):      $(SRC_P)unzip.c         $(HFILES)
  142.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)unzip.c
  143.  
  144. $(BLD_P)unzipstb$(O):   $(SRC_P)unzipstb.c      $(HFILES)
  145.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)unzipstb.c
  146.  
  147. $(BLD_P)zipinfo$(O):    $(SRC_P)zipinfo.c       $(HFILES)
  148.         $(CC) -c -o $% $(CFLAGS) $(SRC_P)zipinfo.c
  149.  
  150. $(BLD_P)vmmvs$(O):      $(CMSMVS_P)vmmvs.c      $(HFILES)
  151.         $(CC) -c -o $% $(CFLAGS) $(CMSMVS_P)vmmvs.c
  152.