1 # Makefile for gzip (GNU zip) -*- Indented-Text -*-
2 # Copyright (C) 1992-1993 Jean-loup Gailly and the Free Software Foundation
3 # VMS version made by Klaus Reimann <kr@cip.physik.uni-stuttgart.de>,
4 # revised by Roland B Roberts <roberts@nsrl31.nsrl.rochester.edu>
5 # and Karl-Jose Filler <pla_jfi@pki-nbg.philips.de>
6 # This version is for VAXC with MMS.
8 # After constructing gzip.exe with this Makefile, you should set up
9 # symbols for gzip.exe. Edit the example below, changing
10 # "disk:[directory]" as appropriate.
12 # $ gzip == "$disk:[directory]gzip.exe"
13 # $ gunzip == "$disk:[directory]gunzip.exe"
14 # $ zcat == "$disk:[directory]zcat.exe"
17 # This program is free software; you can redistribute it and/or modify
18 # it under the terms of the GNU General Public License as published by
19 # the Free Software Foundation; either version 3, or (at your option)
22 # This program is distributed in the hope that it will be useful,
23 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 # GNU General Public License for more details.
27 # You should have received a copy of the GNU General Public License
28 # along with this program; if not, write to the Free Software
29 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 #### Start of system configuration section. ####
40 # Things you might add to DEFS
41 # -DDIRENT Use <dirent.h> for recursion (-r)
42 # -DSYSDIR Use <sys/dir.h> for recursion (-r)
43 # -DSYSNDIR Use <sys/ndir.h> for recursion (-r)
44 # -DNDIR Use <ndir.h> for recursion (-r)
45 # -DSTDC_HEADERS Use <stdlib.h>
46 # -DHAVE_UNISTD_H Use <unistd.h>
47 # -DNO_UTIME_H Don't use <utime.h>
48 # -DHAVE_SYSUTIME_H Use <sys/utime.h>
49 # -DNO_MEMORY_H Don't use <memory.h>. Not needed if STDC_HEADERS.
50 # -DNO_STRING_H Use strings.h, not string.h. Not needed if STDC_HEADERS
51 # -DRETSIGTYPE=int Define this if signal handlers must return an int.
52 # -DNO_SYMLINK OS defines S_IFLNK but does not support symbolic links
53 # -DNO_MULTIPLE_DOTS System does not allow file names with multiple dots
54 # -DNO_UTIME System does not support setting file modification time
55 # -DNO_CHOWN System does not support setting file owner
56 # -DNO_DIR System does not support readdir()
57 # -DPROTO Force function prototypes even if __STDC__ not defined
58 # -DASMV Use asm version match.S
59 # -DMSDOS MSDOS specific
61 # -DVAXC Vax/VMS with Vax C compiler
62 # -DVMS Vax/VMS with gcc
64 # -DDYN_ALLOC Use dynamic allocation of large data structures
65 # -DMAXSEG_64K Maximum array size is 64K (for 16 bit system)
66 # -DRECORD_IO read() and write() are rounded to record sizes.
67 # -DNO_STDIN_FSTAT fstat() is not available on stdin
68 # -DNO_SIZE_CHECK stat() does not give a reliable file size
70 # DEFS = /define=(VAXC)
77 # additional assembly sources for particular systems be required.
80 #### End of system configuration section. ####
82 OBJS = gzip.obj zip.obj deflate.obj trees.obj bits.obj unzip.obj inflate.obj \
83 util.obj crypt.obj lzw.obj unlzw.obj unpack.obj unlzh.obj getopt.obj \
89 define/user sys sys$library
90 $(CC) $* $(DEFS) $(CFLAGS)
92 # $(CC) $* $(DEFS) $(CFLAGS)$
95 define lnk$library sys$share:vaxcrtl
96 $(LINK) $(LDFLAGS) /exec=gzip $+
98 # Create a hard link. To remove both files, use "make clean". Using a hard
99 # link saves disk space, by the way. Note, however, that copying a hard link
100 # copies the data, not just the link. Therefore, set up the link in the
101 # directory in which the executable is to reside, or else rename (move) the
102 # executables into the directory.
104 set file/enter=gunzip.exe gzip.exe
105 set file/enter=zcat.exe gzip.exe
108 set file/remove gunzip.exe;0
109 set file/remove zcat.exe;0
113 # Actual build-related targets
115 gzip.obj zip.obj deflate.obj trees.obj bits.obj unzip.obj inflate.obj : gzip.h tailor.h
116 util.obj lzw.obj unlzw.obj unpack.obj unlzh.obj crypt.obj : gzip.h tailor.h
118 gzip.obj unlzw.obj : revision.h lzw.h
120 bits.obj unzip.obj util.obj zip.obj : crypt.h
122 gzip.obj getopt.obj : getopt.h