home *** CD-ROM | disk | FTP | other *** search
/ Windows NT Super Tune-Up Kit / PIE-WindowsNTSuperTuneUpKit-1997.iso / COMPRESS / NT_PKZIP / MAKEFILE.NT < prev    next >
Text File  |  1993-09-30  |  3KB  |  101 lines

  1. # MAKEFILE for Windows NT       David Feinleib, t-davefe@microsoft.com 2/92
  2.  
  3.  
  4. # Changes made to make PDZIP compatible with NT:
  5. # - Added WIN32 sections in header files, to include windows.h and make
  6. #   definitions
  7. # - Added Win32 FindFirstFile and FindNextFile to do the directory
  8. #   searches in the opendir() and readdir() functions
  9. # - The opendir() and readdir() functions required the most modification;
  10. #   there seems to be a problem with strcpy in some cases that I haven't
  11. #   pinpointed yet; the code works around this.
  12. # - Wrote new makefile
  13.  
  14. !include <ntwin32.mak>
  15.  
  16. UTILFLAGS=-DUTIL $(CFLAGS)
  17. DEF=-DMSC -DNO_ASM -DEXPORT -DMSDOS
  18. #     If you use lzexe as recommended, remove /e from LDFLAGS
  19. AS=masm386
  20. #     For MSC 6.0, use: AS=ml 
  21. ASFLAGS=-ml -t
  22.  
  23. # ------------- Common declarations:
  24. STRIP=rem
  25. # variables
  26.  
  27. OBJZ = zip.obj zipfile.obj zipup.obj fileio.obj util.obj tempf.obj shrink.obj\
  28.  globals.obj
  29. OBJI = implode.obj im_lmat.obj im_ctree.obj im_bits.obj
  30.  
  31. #OBJN = zipnote.obj zipfile_.obj zipup_.obj fileio_.obj globals.obj
  32. OBJS = zipsplit.obj zipfile_.obj zipup_.obj fileio_.obj globals.obj
  33.  
  34. #zips:   zip.exe zipnote.exe zipsplit.exe ship.exe
  35.  
  36. all: zip.exe
  37.     @echo Building ZIP for Windows NT
  38.  
  39. zip.obj:        zip.h ziperr.h tailor.h revision.h zip.c
  40.     $(cc) $(cflags) $(DEF) $(cvars) $*.c
  41.  
  42. zipfile.obj:    zip.h ziperr.h tailor.h zipfile.c
  43.     $(cc) $(cflags) $(DEF) $(cvars) zipfile.c
  44.  
  45. zipup.obj:      zip.h ziperr.h tailor.h revision.h zipup.c
  46.     $(cc) $(cflags) $(DEF) $(cvars) $*.c
  47.  
  48. fileio.obj:     zip.h ziperr.h tailor.h fileio.c
  49.     $(cc) $(cflags) $(DEF) $(cvars) $*.c
  50.  
  51. util.obj:       zip.h ziperr.h tailor.h util.c
  52.     $(cc) $(cflags) $(DEF) $(cvars) $*.c
  53.  
  54. tempf.obj:      tempf.h tailor.h tempf.c
  55.     $(cc) $(cflags) $(DEF) $(cvars) $*.c
  56.  
  57. shrink.obj:     zip.h ziperr.h tempf.h tailor.h shrink.c
  58.     $(cc) $(cflags) $(DEF) $(cvars) $*.c
  59.  
  60. globals.obj:    zip.h ziperr.h tailor.h globals.c
  61.     $(cc) $(cflags) $(DEF) $(cvars) $*.c
  62.  
  63. #zipnote.obj:    zip.h ziperr.h tailor.h revision.h zipnote.c
  64. #    $(cc) $(cflags) $(DEF) $(cvars) $*.c
  65. #    $(cvtobj) $*.obj
  66.  
  67. # MSC 5.1 dies on zipsplit with -Ox
  68. zipsplit.obj:   zipsplit.c zip.h ziperr.h tailor.h revision.h
  69.     $(cc) $(cflags) $(DEF) -DEXPORT $(cvars) $*.c
  70.  
  71. implode.obj:    implode.h crypt.h ziperr.h tempf.h tailor.h implode.c
  72.     $(cc) $(cflags) $(DEF) $(cvars) $*.c
  73.  
  74. im_lmat.obj:    implode.h crypt.h ziperr.h tempf.h tailor.h im_lmat.c
  75.     $(cc) $(cflags) $(DEF) $(cvars) $*.c
  76.  
  77. im_lm.obj:      im_lm.asm
  78. #       $(AS) $(ASFLAGS) im_lm;
  79.     masm386 im_lm;
  80.  
  81. im_ctree.obj:   implode.h crypt.h ziperr.h tempf.h tailor.h im_ctree.c
  82.     $(cc) $(cflags) $(DEF) $(cvars) $*.c
  83.  
  84. im_bits.obj:    implode.h crypt.h ziperr.h tempf.h tailor.h im_bits.c
  85.     $(cc) $(cflags) $(DEF) $(cvars) $*.c
  86.  
  87. zipfile_.obj:   zipfile.c zip.h
  88.     $(cc) $(cflags) $(DEF) $*UTILFLAGS) $(cvars) zipfile.c
  89.  
  90. zipup_.obj:     zipup.c zip.h
  91.     $(cc) $(cflags) $(DEF) $(UTILFLAGS) $(cvars) zipup.c
  92.  
  93. fileio_.obj:    fileio.c zip.h
  94.     $(cc) $(cflags) $(DEF) $(UTILFLAGS) $(cvars) fileio.c
  95.  
  96. # link zip.exe
  97. zip.exe: $(OBJZ) $(OBJI)
  98.     $(link) $(conflags) -out:zip.exe $(OBJZ) $(OBJI) $(conlibs)
  99.  
  100.  
  101.