source: trunk/essentials/app-arch/gzip/nt/Makefile.nt

Last change on this file was 3325, checked in by bird, 18 years ago

gzip 1.3.11

File size: 1.6 KB
Line 
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#
20OBJS = 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
23DEFS =
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#
35all: gzip.exe
36
37#
38# Link target. setargv.obj is provided in the compiler library directory.
39#
40gzip.exe: $(OBJS)
41 $(link) $(linkdebug) $(conflags) -out:gzip.exe $(OBJS) setargv.obj \
42 $(conlibsdll)
43
44#
45# Dependencies
46#
47gzip.obj: gzip.c gzip.h tailor.h
48zip.obj: zip.c gzip.h tailor.h crypt.h
49deflate.obj: deflate.c gzip.h tailor.h
50trees.obj: trees.c gzip.h tailor.h
51bits.obj: bits.c gzip.h tailor.h crypt.h
52unzip.obj: unzip.c gzip.h tailor.h crypt.h
53inflate.obj: inflate.c gzip.h tailor.h crypt.h
54util.obj: util.c gzip.h tailor.h
55lzw.obj: lzw.c gzip.h tailor.h
56unlzw.obj: unlzw.c gzip.h tailor.h revision.h lzw.h
57unpack.obj: unpack.c gzip.h tailor.h
58crypt.obj: crypt.c gzip.h tailor.h
59unlzh.obj: unlzh.c gzip.h tailor.h lzw.h
60
61
62clean:
63 -rm $(OBJS)
64
65clobber: clean
66 -rm gzip.exe
Note: See TracBrowser for help on using the repository browser.