1 # Simple makefile for Windows NT
2 # Written by Ron Cox <roncox@indirect.com>
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.
7 # This makefile is suitable for NTFS only. To build a gzip executable suitable
8 # for a FAT file system, add -DNTFAT to DEFS.
10 # To build debug version, define environment variable DEBUG, or include a
11 # -DDEBUG on the commandline (i.e.: nmake -DDEBUG)
15 !include <ntwin32.mak>
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
24 # for FAT support, set: DEFS = -DNTFAT
27 # How to build .obj's from .c's
30 $(cc) $(DEFS) -Ox $(cflags) $(cvarsdll) $<
38 # Link target. setargv.obj is provided in the compiler library directory.
41 $(link) $(linkdebug) $(conflags) -out:gzip.exe $(OBJS) setargv.obj \
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