home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / gzip-1.2.4.tar.gz / gzip-1.2.4.tar / gzip-1.2.4 / nt / Makefile.nt
Makefile  |  1993-07-16  |  2KB  |  67 lines

  1. # Simple makefile for Windows NT
  2. # Written by Ron Cox <roncox@indirect.com>
  3.  
  4. # This is free software; you can redistribute it and/or modify it under the
  5. # terms of the GNU General Public License, see the file COPYING.
  6.  
  7. # This makefile is suitable for NTFS only. To build a gzip executable suitable
  8. # for a FAT file system, add -DNTFAT to DEFS.
  9.  
  10. # To build debug version, define environment variable DEBUG, or include a
  11. # -DDEBUG on the commandline (i.e.: nmake -DDEBUG)
  12.  
  13. .silent:
  14.  
  15. !include <ntwin32.mak>
  16.  
  17. #
  18. # Object files
  19. #
  20. OBJS = gzip.obj zip.obj deflate.obj trees.obj bits.obj unzip.obj inflate.obj \
  21.     util.obj crypt.obj lzw.obj unlzw.obj unpack.obj getopt.obj unlzh.obj
  22.  
  23. DEFS =
  24. # for FAT support, set: DEFS = -DNTFAT
  25.  
  26. #
  27. # How to build .obj's from .c's
  28. #
  29. .c.obj:
  30.     $(cc) $(DEFS) -Ox $(cflags) $(cvarsdll) $<
  31.  
  32. #
  33. # Main target
  34. #
  35. all: gzip.exe
  36.  
  37. #
  38. # Link target. setargv.obj is provided in the compiler library directory.
  39. #
  40. gzip.exe: $(OBJS)
  41.     $(link) $(linkdebug) $(conflags) -out:gzip.exe $(OBJS) setargv.obj \
  42.       $(conlibsdll)
  43.  
  44. #
  45. # Dependencies
  46. #
  47. gzip.obj:      gzip.c gzip.h tailor.h
  48. zip.obj:       zip.c gzip.h tailor.h crypt.h
  49. deflate.obj:   deflate.c gzip.h tailor.h
  50. trees.obj:     trees.c gzip.h tailor.h
  51. bits.obj:      bits.c gzip.h tailor.h crypt.h
  52. unzip.obj:     unzip.c gzip.h tailor.h crypt.h
  53. inflate.obj:   inflate.c gzip.h tailor.h crypt.h
  54. util.obj:      util.c gzip.h tailor.h
  55. lzw.obj:       lzw.c gzip.h tailor.h
  56. unlzw.obj:     unlzw.c gzip.h tailor.h revision.h lzw.h
  57. unpack.obj:    unpack.c gzip.h tailor.h
  58. crypt.obj:     crypt.c gzip.h tailor.h
  59. unlzh.obj:     unlzh.c gzip.h tailor.h lzw.h
  60.  
  61.  
  62. clean:
  63.     -rm $(OBJS)
  64.  
  65. clobber: clean
  66.     -rm gzip.exe
  67.