]> git.cworth.org Git - gzip/blob - vms/Makefile.mms
Avoid creating an undersized buffer for the hufts table.
[gzip] / vms / Makefile.mms
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.
7
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.
11 #
12 # $ gzip   == "$disk:[directory]gzip.exe"
13 # $ gunzip == "$disk:[directory]gunzip.exe"
14 # $ zcat   == "$disk:[directory]zcat.exe"
15
16
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 2, or (at your option)
20 # any later version.
21
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.
26
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.
30
31 #### Start of system configuration section. ####
32
33 CC = cc
34 LINK = link
35
36 CFLAGS =
37 # CFLAGS = /warning
38 LDFLAGS =
39
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
60 # -DOS2                 OS/2 specific
61 # -DVAXC                Vax/VMS with Vax C compiler
62 # -DVMS                 Vax/VMS with gcc
63 # -DDEBUG               Debug code
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
69
70 # DEFS = /define=(VAXC)
71 DEFS =
72 LIBS =
73
74 X=.exe
75 O=.obj
76
77 # additional assembly sources for particular systems be required.
78 OBJA =
79
80 #### End of system configuration section. ####
81
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 \
84        vms.obj $(OBJA)
85
86 # --- rules ---
87
88 .c.obj :
89         define/user sys sys$library
90         $(CC) $* $(DEFS) $(CFLAGS)
91 #       create sys.output
92 #               $(CC) $* $(DEFS) $(CFLAGS)$
93
94 gzip.exe : $(OBJS)
95         define lnk$library sys$share:vaxcrtl
96         $(LINK) $(LDFLAGS) /exec=gzip  $+
97 #
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.
103
104         set file/enter=gunzip.exe gzip.exe
105         set file/enter=zcat.exe   gzip.exe
106
107 clean :
108         set file/remove gunzip.exe;0
109         set file/remove zcat.exe;0
110         delete gzip.exe;0
111         delete *.obj;0
112
113 # Actual build-related targets
114
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
117
118 gzip.obj unlzw.obj : revision.h lzw.h
119
120 bits.obj unzip.obj util.obj zip.obj : crypt.h
121
122 gzip.obj getopt.obj : getopt.h