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

  1. # Makefile for unzip and zipinfo for Borland C++ 3.0             Alvin Koh
  2. # Version: 5.0                                                26 June 1992
  3. #
  4. # Toad Hall: Works great for BC++ v2.0 too!  [some spaces should be tabs?]
  5.  
  6. # make definitions
  7.  
  8. CC = bcc
  9. TASM = tasm
  10. TLINK = tlink
  11. MODEL = s               # small model
  12.  
  13. CRYPTO =
  14. CRYPTF =
  15. # definitions for crypt version
  16. #CRYPTO = crypt.obj
  17. #CRYPTF = -DCRYPT
  18.  
  19. # compiler flags
  20.  
  21. GENFLAGS = -m$(MODEL) -ff- -k- -wamb -wamp -wasm -wpro -wdef -wnod -wstv \
  22.            -wucp -wuse -P-.C
  23. CFLAGS = $(GENFLAGS) $(CRYPTF)
  24. ZIFLAGS = $(GENFLAGS) -K -d -wcln -wsig -DZIPINFO
  25.  
  26. # implicit rules
  27.  
  28. .c.obj:
  29.         $(CC) -c $(CFLAGS) {$< }
  30.  
  31. # list macros
  32.  
  33. unzip_dependencies = \
  34.         unzip.obj $(CRYPTO) \
  35.         envargs.obj \
  36.         explode.obj \
  37.         extract.obj \
  38.         file_io.obj \
  39.         inflate.obj \
  40.         mapname.obj \
  41.         match.obj \
  42.         misc.obj \
  43.         unreduce.obj \
  44.         unshrink.obj
  45.  
  46. zipinfo_dependencies = \
  47.         zipinfo.obj \
  48.         envargs.obj \
  49.         match.obj \
  50.         misc_.obj
  51.  
  52. # explicit rules
  53.  
  54. all:    unzip.exe zipinfo.exe
  55.  
  56. unzip.exe:      $(unzip_dependencies)
  57.         $(TLINK) /x/n/c/d/P- @&&|
  58. c0$(MODEL).obj+
  59. unzip.obj $(CRYPTO)+
  60. envargs.obj+
  61. explode.obj+
  62. extract.obj+
  63. file_io.obj+
  64. inflate.obj+
  65. mapname.obj+
  66. match.obj+
  67. misc.obj+
  68. unreduce.obj+
  69. unshrink.obj
  70. unzip.exe
  71.                 # no map file
  72. emu.lib+
  73. math$(MODEL).lib+
  74. c$(MODEL).lib
  75. |
  76.  
  77. zipinfo.exe:    $(zipinfo_dependencies)
  78.         $(TLINK) /x/n/c/d/P- @&&|
  79. c0$(MODEL).obj+
  80. zipinfo.obj+
  81. envargs.obj+
  82. match.obj+
  83. misc_.obj
  84. zipinfo.exe
  85.                 # no map file
  86. emu.lib+
  87. math$(MODEL).lib+
  88. c$(MODEL).lib
  89. |
  90.  
  91. # individual file dependencies
  92.  
  93. unzip.obj:      unzip.c unzip.h
  94. crypt.obj:      crypt.c unzip.h zip.h
  95. envargs.obj:    envargs.c unzip.h
  96. explode.obj:    explode.c unzip.h
  97. extract.obj:    extract.c unzip.h
  98. file_io.obj:    file_io.c unzip.h
  99. inflate.obj:    inflate.c unzip.h
  100. mapname.obj:    mapname.c unzip.h
  101. match.obj:      match.c unzip.h
  102. misc.obj:       misc.c unzip.h
  103. unreduce.obj:   unreduce.c unzip.h
  104. unshrink.obj:   unshrink.c unzip.h
  105.  
  106. zipinfo.obj:    zipinfo.c unzip.h
  107.         $(CC) -c $(ZIFLAGS) zipinfo.c
  108.  
  109. misc_.obj:      misc.c unzip.h
  110.         $(CC) -c $(ZIFLAGS) -omisc_.obj misc.c
  111.