mvs.mki 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. # Makefile for the MVS (OS/390 Base) version of ZIP 2.3
  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. # NOTES
  6. #
  7. # The only tabs in this file are in the first character of each recipe
  8. # line, where they are required by make.
  9. #
  10. # Run this makefile in OpenMVS (OS/390 POSIX) using source files in the
  11. # HFS file system. You can write the load module to either HFS file
  12. # system or to a PDS in the native MVS file system. The PDS must have
  13. # sufficient free space to hold the load module.
  14. #
  15. # To compile to a member of a PDS:
  16. # make
  17. # or
  18. # make zip.mvs
  19. #
  20. # To compile a test version into the HFS file system:
  21. # make hfs
  22. # ZIP options -- MVS, REENTRANT
  23. ZIPOPTS=-DMVS -DREENTRANT
  24. # directories
  25. # generic source code
  26. SRC=..
  27. SRC_P=$(SRC)/
  28. # source code for MVS
  29. CMSMVS=../cmsmvs
  30. CMSMVS_P=$(CMSMVS)/
  31. # include files
  32. INCLS=-I$(SRC) -I$(CMSMVS)
  33. # object files and load modules
  34. BLD_P=../mvs/
  35. # Other options
  36. # Suffixes (E and O must be different)
  37. E=
  38. O=.o
  39. # Need EXTENDED features for global.c and vmvms.c, so not using c89
  40. CC=cc
  41. CFLAGS=-D_OPEN_SYS $(ZIPOPTS) $(INCLS)
  42. LD=cc
  43. LDFLAGS=
  44. # Files
  45. # object (TEXT) files
  46. OBJECTS= $(BLD_P)zip$(O) $(BLD_P)trees$(O) \
  47. $(BLD_P)crypt$(O) $(BLD_P)ttyio$(O) $(BLD_P)deflate$(O) \
  48. $(BLD_P)fileio$(O) $(BLD_P)globals$(O) $(BLD_P)util$(O) \
  49. $(BLD_P)crc32$(O) $(BLD_P)zipfile$(O) \
  50. $(BLD_P)zipup$(O) $(BLD_P)cmsmvs$(O) $(BLD_P)mvs$(O)
  51. # Header files
  52. HFILES= $(SRC_P)api.h $(SRC_P)crc32.h $(SRC_P)crypt.h $(SRC_P)ebcdic.h \
  53. $(SRC_P)revision.h $(SRC_P)tailor.h $(SRC_P)ttyio.h \
  54. $(SRC_P)zip.h $(SRC_P)ziperr.h $(CMSMVS_P)cmsmvs.h \
  55. $(CMSMVS_P)cstat.h $(CMSMVS_P)mvs.h $(CMSMVS_P)zipup.h
  56. # Rules
  57. all: $(BLD_P)zip.mvs$(E)
  58. hfs: $(BLD_P)zip$(E)
  59. # link
  60. $(BLD_P)zip.mvs$(E): $(OBJECTS)
  61. $(LD) -o "//INFOZIP.LOAD(ZIP)" $(LDFLAGS) $^
  62. echo "tso call \"infozip(zip)\" \"'\"\"""$$""@""\"\"'\"" > $%
  63. chmod a+x $%
  64. $(BLD_P)zip$(E): $(OBJECTS)
  65. $(LD) -o $% $(LDFLAGS) $^
  66. # compile
  67. $(BLD_P)trees$(O): $(SRC_P)trees.c $(HFILES)
  68. $(CC) -c -o $% $(CFLAGS) $(SRC_P)trees.c
  69. $(BLD_P)crypt$(O): $(SRC_P)crypt.c $(HFILES)
  70. $(CC) -c -o $% $(CFLAGS) $(SRC_P)crypt.c
  71. $(BLD_P)ttyio$(O): $(SRC_P)ttyio.c $(HFILES)
  72. $(CC) -c -o $% $(CFLAGS) $(SRC_P)ttyio.c
  73. $(BLD_P)deflate$(O): $(SRC_P)deflate.c $(HFILES)
  74. $(CC) -c -o $% $(CFLAGS) $(SRC_P)deflate.c
  75. $(BLD_P)fileio$(O): $(SRC_P)fileio.c $(HFILES)
  76. $(CC) -c -o $% $(CFLAGS) $(SRC_P)fileio.c
  77. $(BLD_P)globals$(O): $(SRC_P)globals.c $(HFILES)
  78. $(CC) -c -o $% $(CFLAGS) $(SRC_P)globals.c
  79. $(BLD_P)zip$(O): $(SRC_P)zip.c $(HFILES)
  80. $(CC) -c -o $% $(CFLAGS) $(SRC_P)zip.c
  81. $(BLD_P)util$(O): $(SRC_P)util.c $(HFILES)
  82. $(CC) -c -o $% $(CFLAGS) $(SRC_P)util.c
  83. $(BLD_P)crc32$(O): $(SRC_P)crc32.c $(HFILES)
  84. $(CC) -c -o $% $(CFLAGS) $(SRC_P)crc32.c
  85. $(BLD_P)zipfile$(O): $(SRC_P)zipfile.c $(HFILES)
  86. $(CC) -c -o $% $(CFLAGS) $(SRC_P)zipfile.c
  87. $(BLD_P)zipup$(O): $(SRC_P)zipup.c $(HFILES)
  88. $(CC) -c -o $% $(CFLAGS) $(SRC_P)zipup.c
  89. $(BLD_P)cmsmvs$(O): $(CMSMVS_P)cmsmvs.c $(HFILES)
  90. $(CC) -c -o $% $(CFLAGS) $(CMSMVS_P)cmsmvs.c
  91. $(BLD_P)mvs$(O): $(CMSMVS_P)mvs.c $(HFILES)
  92. $(CC) -c -o $% $(CFLAGS) $(CMSMVS_P)mvs.c