home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / zip201.zip / msdos / makefile.bor next >
Makefile  |  1993-09-02  |  4KB  |  141 lines

  1. # Makefile for Zip, ZipCloak, ZipNote and ZipSplit for
  2. # Borland (Turbo) C++ 1.0 or 2.0.
  3. # Warning: this file is not suitable for Turbo C 2.0. Use makefile.tc instead.
  4.  
  5. # To use, do "make -fmakefile.bor"
  6.  
  7. # WARNING: the small model is not supported.
  8. # Add -DSMALL_MEM or -DMEDIUM_MEM to CFLAGS if you wish to reduce the memory
  9. # requirements. Add -DNO_ASM to CFLAGS and remove match.obj from OBJI if
  10. # you do not have tasm.
  11.  
  12. # ------------- Turbo C++, Borland C++ -------------
  13. MODEL=-ml
  14. #CFLAGS=-w -w-eff -w-def -w-sig -w-cln -a -d -G -O -Z $(MODEL)
  15. CFLAGS=-O2 -Z -w -w-cln $(MODEL)
  16. UTILFLAGS=-DUTIL $(CFLAGS) -o
  17. CC=bcc
  18. LD=bcc
  19. #   replace bcc with tcc for Turbo C++ 1.0
  20. LDFLAGS=$(MODEL)
  21. AS=tasm
  22. ASFLAGS=-ml -t -DDYN_ALLOC -DSS_NEQ_DS -D__LARGE__
  23.  
  24. # ------------- Common declarations:
  25. STRIP=rem
  26. #    If you don't have lzexe, get it (by ftp on wuarchive.wustl.edu
  27. #    in /mirrors/msdos/filutl/lzexe91e.zip). Then define:
  28. #STRIP=lzexe
  29. #    Or if you've registered PKLITE, then define:
  30. #STRIP=pklite
  31. #    This makes a big difference in .exe size (and possibly load time)
  32.  
  33. # ------------- Used by install rule
  34. # set BIN to the directory you want to install the executables to
  35. BIN = c:\util
  36.  
  37. # variables
  38. OBJZ = zip.obj zipfile.obj zipup.obj fileio.obj util.obj globals.obj crypt.obj
  39.  
  40. OBJI = deflate.obj trees.obj bits.obj match.obj
  41. # remove match.obj if you do not have tasm
  42.  
  43. OBJU = zipfile_.obj zipup_.obj fileio_.obj util_.obj globals.obj
  44. OBJN = zipnote.obj  $(OBJU)
  45. OBJC = zipcloak.obj $(OBJU) crypt_.obj
  46. OBJS = zipsplit.obj $(OBJU)
  47.  
  48. ZIPS = zip.exe zipnote.exe zipsplit.exe zipcloak.exe
  49.  
  50. zips:    $(ZIPS)
  51.  
  52. zip.obj:    zip.h ziperr.h tailor.h revision.h zip.c
  53.     $(CC) -c $(CFLAGS) $*.c
  54.  
  55. zipfile.obj:    zip.h ziperr.h tailor.h zipfile.c
  56.     $(CC) -c $(CFLAGS) $*.c
  57.  
  58. zipup.obj:    zip.h ziperr.h tailor.h revision.h zipup.c
  59.     $(CC) -c $(CFLAGS) $*.c
  60.  
  61. fileio.obj:    zip.h ziperr.h tailor.h fileio.c
  62.     $(CC) -c $(CFLAGS) $*.c
  63.  
  64. util.obj:    zip.h ziperr.h tailor.h util.c
  65.     $(CC) -c $(CFLAGS) $*.c
  66.  
  67. globals.obj:    zip.h ziperr.h tailor.h globals.c
  68.     $(CC) -c $(CFLAGS) $*.c
  69.  
  70. deflate.obj:    zip.h ziperr.h tailor.h deflate.c
  71.     $(CC) -c $(CFLAGS) $*.c
  72.  
  73. trees.obj:    zip.h ziperr.h tailor.h trees.c
  74.     $(CC) -c $(CFLAGS) $*.c
  75.  
  76. bits.obj:    zip.h ziperr.h tailor.h bits.c
  77.     $(CC) -c $(CFLAGS) $*.c
  78.  
  79. crypt.obj:    zip.h ziperr.h tailor.h crypt.c
  80.     $(CC) -c $(CFLAGS) $*.c
  81.  
  82. zipcloak.obj:    zip.h ziperr.h tailor.h revision.h zipcloak.c
  83.     $(CC) -c $(CFLAGS) $*.c
  84.  
  85. zipnote.obj:    zip.h ziperr.h tailor.h revision.h zipnote.c
  86.     $(CC) -c $(CFLAGS) $*.c
  87.  
  88. zipsplit.obj:    zipsplit.c zip.h ziperr.h tailor.h revision.h
  89.     $(CC) -c $(CFLAGS) $*.c
  90.  
  91. zipfile_.obj:    zipfile.c zip.h ziperr.h tailor.h
  92.     $(CC) -c $(UTILFLAGS)$* zipfile.c
  93.  
  94. zipup_.obj:    zipup.c zip.h ziperr.h tailor.h
  95.     $(CC) -c $(UTILFLAGS)$* zipup.c
  96.  
  97. fileio_.obj:    fileio.c zip.h ziperr.h tailor.h
  98.     $(CC) -c $(UTILFLAGS)$* fileio.c
  99.  
  100. util_.obj:    util.c zip.h ziperr.h tailor.h
  101.     $(CC) -c $(UTILFLAGS)$* util.c
  102.  
  103. crypt_.obj:    crypt.c zip.h ziperr.h tailor.h
  104.     $(CC) -c $(UTILFLAGS)$* crypt.c
  105.  
  106. match.obj:    msdos\match.asm
  107.     $(AS) $(ASFLAGS) msdos\match;
  108.  
  109. # we must cut the command line to fit in the MS/DOS 128 byte limit:
  110. zip.exe: $(OBJZ) $(OBJI)
  111.     echo $(OBJZ) > zip.rsp
  112.     echo $(OBJI) >> zip.rsp
  113.     $(LD) $(LDFLAGS) @zip.rsp
  114.     del zip.rsp
  115.     $(STRIP) zip.exe
  116.  
  117. zipcloak.exe: $(OBJC)
  118.     echo $(OBJC) > zipc.rsp
  119.     $(LD) $(LDFLAGS) @zipc.rsp
  120.     del zipc.rsp
  121.     $(STRIP) zipcloak.exe
  122.  
  123. zipnote.exe: $(OBJN)
  124.     echo $(OBJN) > zipn.rsp
  125.     $(LD) $(LDFLAGS) @zipn.rsp
  126.     del zipn.rsp
  127.     $(STRIP) zipnote.exe
  128.  
  129. zipsplit.exe: $(OBJS)
  130.     echo $(OBJS) > zips.rsp
  131.     $(LD) $(LDFLAGS) @zips.rsp
  132.     del zips.rsp
  133.     $(STRIP) zipsplit.exe
  134.  
  135. install:    $(ZIPS)
  136.     copy /b *.exe $(BIN)
  137.  
  138. clean:
  139.     del *.obj
  140.     del *.exe
  141.