~ubuntu-branches/ubuntu/lucid/unzip/lucid-security

« back to all changes in this revision

Viewing changes to amiga/makefile.azt

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2009-05-08 20:02:40 UTC
  • mfrom: (1.1.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20090508200240-7l4gypruop5863bd
* New upstream release. Closes: #496989.
* Enabled new Unicode support. Closes: #197427. This may or may not work
  for your already created zipfiles, but it's not a bug unless they were
  created using the Unicode feature present in zip 3.0.
* Built using DATE_FORMAT=DF_YMD so that unzip -l show dates in ISO format,
  as that's the only available one which makes sense. Closes: #312886.
* Enabled new bzip2 support. Closes: #426798.
* Exit code for zipgrep should now be the right one. Closes: #441997.
* The reason why a file may not be created is now shown. Closes: #478791.
* Summary of changes in this version not being the debian/* files:
- Manpages in section 1, not 1L.
- Branding patch. UnZip by Debian. Original by Info-ZIP.
- Always #include <unistd.h>. Debian GNU/kFreeBSD needs it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for UnZip 5.5 using Manx Aztec C 5.2, last revised 13 Jan 02.
 
1
# Makefile for UnZip 5.53 using Manx Aztec C 5.2, last revised 25 Dec 06.
2
2
# Define EXTRA=xxx on the Make command line for e.g. -dUSE_UNSHRINK.
3
3
 
4
4
EXTRA =
5
5
 
 
6
DEFINES = -d AMIGA $(EXTRA)
 
7
VERNUMS = -d __VERSION__=5 -d __REVISION__=2
 
8
 
6
9
CC = cc
7
 
VERNUMS = -d __VERSION__=5 -d __REVISION__=2
8
 
CFLAGS = -ps -sabfmnpu -wcpr0u -d AMIGA $(EXTRA)
9
 
# -ps means short ints, -sabfmnpu is optimizations, -wcpr0u is type checking
10
 
# option flags MORE and ASM_* are now set in the Aztec section of amiga/amiga.h;
 
10
LD = ln
 
11
 
 
12
LDLIBS = -lc16
 
13
 
 
14
# release version:
 
15
# ----------------
 
16
CFLAGS = -ps -wcpr0u -sabfmnpu $(DEFINES)
 
17
# -ps means short ints, -wcpr0u is type checking, -sabfmnpu is optimizations..
 
18
# Option flags MORE and ASM_* are now set in the Aztec section of amiga/amiga.h;
11
19
# it's cleaner, and that way any changes forces a recompile.
12
 
 
13
 
LD = ln
14
20
LDFLAGS = +q -m
15
 
LDLIBS = -lc16
16
 
# linker arg -m suppresses warnings about overriding c.lib functions
17
 
 
18
 
OBJS = unzip.o envargs.o process.o extract.o \
19
 
         explode.o unshrink.o unreduce.o inflate.o match.o zipinfo.o \
20
 
         list.o globals.o crypt.o ttyio.o fileio.o crctab.o timezone.o \
21
 
         amiga/amiga.o amiga/crc_68.o amiga/flate.o
22
 
 
23
 
XOBJS = unzip.xo process.xo extract.xo inflate.xo match.xo \
24
 
         globals.xo crypt.xo ttyio.xo fileio.xo crctab.xo timezone.xo \
25
 
         amiga/amiga.xo amiga/crc_68.o amiga/flate.xo
26
 
 
27
 
FOBJS = funzip.o inflate.fo crypt.fo ttyio.fo globals.fo \
28
 
         amiga/filedate.fo amiga/crc_68.o amiga/flate.fo
 
21
# Linker arg -m suppresses warnings about overriding c.lib functions.
 
22
 
 
23
# debug version:
 
24
# --------------
 
25
CFLAGD = -ps -wcpr0u -bs -s0f0n $(DEFINES)
 
26
# -bs is include source debugging info, -s0f0n is avoid hard-to-debug optimizations
 
27
LDFLAGD = +q -m -g -w
 
28
# -g activates source-level debugging (a .dbg file), -w saves assembly-level symbols
 
29
 
 
30
# the directory for object files:
 
31
O = obA/
 
32
 
 
33
OBJS = $(O)unzip.o $(O)envargs.o $(O)process.o $(O)extract.o \
 
34
         $(O)explode.o $(O)ubz2err.o $(O)unshrink.o $(O)unreduce.o \
 
35
         $(O)inflate.o $(O)match.o $(O)zipinfo.o $(O)list.o $(O)globals.o \
 
36
         $(O)crypt.o $(O)ttyio.o $(O)fileio.o $(O)crc32.o $(O)timezone.o \
 
37
         $(O)amiga.o $(O)crc_68.o $(O)flate.o
 
38
 
 
39
XOBJS = $(O)unzip.xo $(O)process.xo $(O)extract.xo $(O)ubz2err.xo \
 
40
         $(O)inflate.xo $(O)match.xo $(O)globals.xo $(O)crypt.xo \
 
41
         $(O)ttyio.xo $(O)fileio.xo $(O)crc32.xo $(O)timezone.xo \
 
42
         $(O)amiga.xo $(O)crc_68.o $(O)flate.xo
 
43
 
 
44
FOBJS = $(O)funzip.o $(O)inflate.fo $(O)crypt.fo $(O)ttyio.fo $(O)globals.fo \
 
45
         $(O)crc32.fo $(O)filedate.fo $(O)crc_68.o $(O)flate.fo
 
46
 
 
47
DBJS = $(O)unzip.od $(O)envargs.od $(O)process.od \
 
48
         $(O)extract.od $(O)explode.od $(O)unshrink.od $(O)unreduce.od \
 
49
         $(O)inflate.od $(O)match.od $(O)zipinfo.od $(O)list.od $(O)globals.od \
 
50
         $(O)crypt.od $(O)ttyio.od $(O)fileio.od $(O)crc32.od $(O)timezone.od \
 
51
         $(O)amiga.od $(O)crc_68.o $(O)flate.o
 
52
 
 
53
XDBJS = $(O)unzip.xd $(O)process.xd $(O)extract.xd \
 
54
         $(O)inflate.xd $(O)match.xd $(O)globals.xd $(O)crypt.xd \
 
55
         $(O)ttyio.xd $(O)fileio.xd $(O)crc32.xd $(O)timezone.xd \
 
56
         $(O)amiga.xd $(O)crc_68.o $(O)flate.xo
 
57
 
 
58
FDBJS = $(O)funzip.od $(O)inflate.fd $(O)crypt.fd $(O)ttyio.fd $(O)globals.fd \
 
59
         $(O)crc32.fd $(O)filedate.fd $(O)crc_68.o $(O)flate.fo
29
60
 
30
61
 
31
62
.c.o :
37
68
.c.fo:
38
69
        $(CC) -o $@ -d FUNZIP $(CFLAGS) $*.c
39
70
 
40
 
all : UnZip UnZipSFX fUnZip MakeSFX
41
 
 
42
 
u : UnZip
43
 
 
44
 
f : fUnZip
45
 
 
46
 
x : UnZipSFX
 
71
.c.od :
 
72
        $(CC) -o $@ $(CFLAGD) $*.c
 
73
 
 
74
.c.xd:
 
75
        $(CC) -o $@ -d SFX $(CFLAGD) $*.c
 
76
 
 
77
.c.fd:
 
78
        $(CC) -o $@ -d FUNZIP $(CFLAGD) $*.c
 
79
 
 
80
# HERE WE GO:
 
81
 
 
82
all : Unzip UnzipSFX fUnzip MakeSFX
 
83
 
 
84
u : Unzip
 
85
 
 
86
f : fUnzip
 
87
 
 
88
x : UnzipSFX
47
89
 
48
90
m : MakeSFX
49
91
 
50
 
UnZip :     $(OBJS)
51
 
        $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
52
 
 
53
 
UnZipSFX :  $(XOBJS) MakeSFX
54
 
        $(LD) $(LDFLAGS) -o $@ $(XOBJS) $(LDLIBS)
55
 
 
56
 
fUnZip :    $(FOBJS)
57
 
        $(LD) $(LDFLAGS) -o $@ $(FOBJS) $(LDLIBS)
 
92
dall: Unzip.dbg UnzipSFX.dbg fUnzip.dbg MakeSFX.dbg
 
93
 
 
94
ud : Unzip.dbg
 
95
 
 
96
fd : fUnzip.dbg
 
97
 
 
98
xd : UnzipSFX.dbg
 
99
 
 
100
md : MakeSFX.dbg
 
101
 
 
102
 
 
103
Unzip :     $(OBJS)
 
104
        $(LD) $(LDFLAGS) -o Unzip $(OBJS) $(LDLIBS)
 
105
        -@delete Unzip.dbg
 
106
 
 
107
UnzipSFX :  $(XOBJS) MakeSFX
 
108
        $(LD) $(LDFLAGS) -o UnzipSFX $(XOBJS) $(LDLIBS)
 
109
        -@delete UnzipSFX.dbg
 
110
 
 
111
fUnzip :    $(FOBJS)
 
112
        $(LD) $(LDFLAGS) -o fUnzip $(FOBJS) $(LDLIBS)
 
113
        -@delete fUnzip.dbg
58
114
 
59
115
MakeSFX :   amiga/makesfx.c
60
116
        $(CC) $(CFLAGS) -o t:makesfx.o amiga/makesfx.c
61
117
        $(LD) $(LDFLAGS) -o MakeSFX t:makesfx.o $(LDLIBS)
62
 
        -@delete t:makesfx.o
 
118
        -@delete MakeSFX.dbg
 
119
        -@delete t:makesfx.o
 
120
 
 
121
 
 
122
Unzip.dbg :     $(DBJS)
 
123
        $(LD) $(LDFLAGD) -o Unzip $(DBJS) $(LDLIBS)
 
124
 
 
125
UnzipSFX.dbg :  $(XDBJS) MakeSFX.dbg
 
126
        $(LD) $(LDFLAGD) -o UnzipSFX $(XDBJS) $(LDLIBS)
 
127
 
 
128
fUnzip.dbg :    $(FDBJS)
 
129
        $(LD) $(LDFLAGD) -o fUnzip $(FDBJS) $(LDLIBS)
 
130
 
 
131
MakeSFX.dbg :   amiga/makesfx.c
 
132
        $(CC) $(CFLAGD) -o t:makesfx.o amiga/makesfx.c
 
133
        $(LD) $(LDFLAGD) -o MakeSFX t:makesfx.o $(LDLIBS)
 
134
        -@delete t:makesfx.o
 
135
 
63
136
 
64
137
clean :
65
138
        -delete $(OBJS)
66
139
        -delete $(XOBJS)
67
140
        -delete $(FOBJS)
68
 
        -delete amiga/G_offs.a amiga/G_offs.fa amiga/gbloffs amiga/Fgbloffs
 
141
        -delete $(DBJS)
 
142
        -delete $(XDBJS)
 
143
        -delete $(FDBJS)
 
144
        -delete amiga/gbloffs amiga/Fgbloffs amiga/Xgbloffs
69
145
 
70
146
cleaner : clean
71
 
        -delete UnZip fUnZip UnZipSFX MakeSFX
 
147
        -delete UnZip fUnZip UnZipSFX MakeSFX *.dbg
72
148
 
 
149
# header dependencies:
73
150
 
74
151
$(OBJS) $(XOBJS) $(FOBJS) : unzip.h unzpriv.h globals.h \
75
152
                             amiga/amiga.h amiga/z-stat.h
76
 
 
77
 
crypt.o crypt.fo timezone.o ttyio.o ttyio.fo : zip.h
78
 
 
79
 
inflate.o inflate.fo : inflate.h
80
 
 
81
 
fileio.o : ebcdic.h
82
 
 
83
 
funzip.o : tables.h
84
 
 
85
 
crypt.o crypt.fo crypt.xo ttyio.o ttyio.fo ttyio.xo : crypt.h
86
 
unzip.o unzip.xo funzip.o : crypt.h
87
 
fileio.o fileio.xo extract.o extract.xo : crypt.h
88
 
inflate.o inflate.fo inflate.xo amiga/filedate.fo : crypt.h
 
153
$(DBJS) $(XDBJS) $(FDBJS) : unzip.h unzpriv.h globals.h \
 
154
                             amiga/amiga.h amiga/z-stat.h
 
155
 
 
156
$(O)crypt.o  $(O)crypt.fo $(O)timezone.o  $(O)ttyio.o  $(O)ttyio.fo : zip.h
 
157
$(O)crypt.od $(O)crypt.fd $(O)timezone.od $(O)ttyio.od $(O)ttyio.fd : zip.h
 
158
 
 
159
$(O)inflate.o $(O)inflate.fo $(O)inflate.od $(O)inflate.fd : inflate.h
 
160
 
 
161
$(O)fileio.o $(O)fileio.od : ebcdic.h
 
162
 
 
163
$(O)funzip.o $(O)funzip.od : crc32.h
 
164
$(O)crc32.o  $(O)crc32.fo $(O)crc32.xo : crc32.h
 
165
$(O)crc32.od $(O)crc32.fd $(O)crc32.xd : crc32.h
 
166
$(O)crypt.o  $(O)crypt.fo $(O)crypt.xo : crc32.h
 
167
$(O)crypt.od $(O)crypt.fd $(O)crypt.xd : crc32.h
 
168
$(O)extract.o $(O)extract.xo $(O)extract.od $(O)extract.xd : crc32.h
 
169
$(O)fileio.o $(O)fileio.xo $(O)fileio.od $(O)fileio.xd : crc32.h
 
170
$(O)process.o $(O)process.xo $(O)process.od $(O)process.xd : crc32.h
 
171
 
 
172
$(O)crypt.o  $(O)crypt.fo $(O)crypt.xo : crypt.h
 
173
$(O)crypt.od $(O)crypt.fd $(O)crypt.xd : crypt.h
 
174
$(O)ttyio.o  $(O)ttyio.fo $(O)ttyio.xo : crypt.h
 
175
$(O)ttyio.od $(O)ttyio.fd $(O)ttyio.xd : crypt.h
 
176
$(O)unzip.o  $(O)unzip.xo $(O)funzip.o  : crypt.h
 
177
$(O)unzip.od $(O)unzip.xd $(O)funzip.od : crypt.h
 
178
$(O)fileio.o  $(O)fileio.xo $(O)extract.o  $(O)extract.xo : crypt.h
 
179
$(O)fileio.od $(O)fileio.xd $(O)extract.od $(O)extract.xd : crypt.h
 
180
$(O)inflate.o  $(O)inflate.fo $(O)inflate.xo $(O)filedate.fo : crypt.h
 
181
$(O)inflate.od $(O)inflate.fd $(O)inflate.xd $(O)filedate.fd : crypt.h
89
182
amiga/gbloffs amiga/Fgbloffs amiga/Xgbloffs : crypt.h
90
183
 
91
 
crypt.o crypt.fo crypt.xo ttyio.o ttyio.fo ttyio.xo : ttyio.h
92
 
funzip.o fileio.o fileio.xo : ttyio.h
93
 
 
94
 
timezone.o timezone.xo amiga/amiga.o amiga/amiga.xo : timezone.h
95
 
 
96
 
unzip.o unzip.xo : unzvers.h consts.h
 
184
$(O)crypt.o  $(O)crypt.fo $(O)crypt.xo : ttyio.h
 
185
$(O)crypt.od $(O)crypt.fd $(O)crypt.xd : ttyio.h
 
186
$(O)ttyio.o  $(O)ttyio.fo $(O)ttyio.xo : ttyio.h
 
187
$(O)ttyio.od $(O)ttyio.fd $(O)ttyio.xd : ttyio.h
 
188
$(O)funzip.o  $(O)fileio.o  $(O)fileio.xo : ttyio.h
 
189
$(O)funzip.od $(O)fileio.od $(O)fileio.xd : ttyio.h
 
190
 
 
191
$(O)timezone.o  $(O)timezone.xo $(O)amiga.o  $(O)amiga.xo : timezone.h
 
192
$(O)timezone.od $(O)timezone.xd $(O)amiga.od $(O)amiga.xd : timezone.h
 
193
 
 
194
$(O)unzip.o $(O)unzip.xo $(O)unzip.od $(O)unzip.xd : unzvers.h consts.h
97
195
 
98
196
 
99
197
# Special case object files:
100
198
 
101
 
amiga/amiga.o : amiga/filedate.c amiga/stat.c amiga/amiga.c unzvers.h
102
 
        rx > env:VersionDate "say '""'translate(date('E'), '.', '/')'""'"
103
 
        $(CC) -o amiga/amiga.o $(CFLAGS) $(VERNUMS) amiga/amiga.c
104
 
 
105
 
amiga/amiga.xo : amiga/filedate.c amiga/stat.c amiga/amiga.c unzvers.h
106
 
        $(CC) -o amiga/amiga.xo $(CFLAGS) $(VERNUMS) -d SFX amiga/amiga.c
107
 
 
108
 
amiga/crc_68.o : amiga/crc_68.a
109
 
        as -n -o amiga/crc_68.o amiga/crc_68.a
110
 
 
111
 
amiga/flate.o : amiga/flate.a amiga/gbloffs
112
 
        amiga/gbloffs > amiga/G_offs.a
113
 
        as -n -o amiga/flate.o -eINT16 amiga/flate.a
114
 
 
115
 
amiga/flate.fo : amiga/flate.a amiga/Fgbloffs
116
 
        amiga/Fgbloffs > amiga/G_offs.a
117
 
        as -n -o amiga/flate.fo -eINT16 -eAZTEC amiga/flate.a
118
 
 
119
 
amiga/flate.xo : amiga/flate.a amiga/Xgbloffs
120
 
        amiga/Xgbloffs > amiga/G_offs.a
121
 
        as -n -o amiga/flate.xo -eINT16 amiga/flate.a
 
199
$(O)amiga.o : amiga/filedate.c amiga/stat.c amiga/amiga.c unzvers.h
 
200
        rx > env:VersionDate "say '""'translate(date('E'), '.', '/')'""'"
 
201
        $(CC) -o $(O)amiga.o $(CFLAGS) $(VERNUMS) amiga/amiga.c
 
202
 
 
203
$(O)amiga.xo : amiga/filedate.c amiga/stat.c amiga/amiga.c unzvers.h
 
204
        $(CC) -o $(O)amiga.xo $(CFLAGS) $(VERNUMS) -d SFX amiga/amiga.c
 
205
 
 
206
$(O)amiga.od : amiga/filedate.c amiga/stat.c amiga/amiga.c unzvers.h
 
207
        rx > env:VersionDate "say '""'translate(date('E'), '.', '/')'""'"
 
208
        $(CC) -o $(O)amiga.od $(CFLAGD) $(VERNUMS) amiga/amiga.c
 
209
 
 
210
$(O)amiga.xd : amiga/filedate.c amiga/stat.c amiga/amiga.c unzvers.h
 
211
        $(CC) -o $(O)amiga.xd $(CFLAGD) $(VERNUMS) -d SFX amiga/amiga.c
 
212
 
 
213
$(O)crc_68.o : amiga/crc_68.a
 
214
        as -n -o $(O)crc_68.o amiga/crc_68.a
 
215
# no debug version of crc_68
 
216
 
 
217
$(O)filedate.fo : amiga/filedate.c
 
218
        $(CC) -o $(O)filedate.fo -d FUNZIP $(CFLAGS) amiga/filedate.c
 
219
 
 
220
$(O)filedate.fd : amiga/filedate.c
 
221
        $(CC) -o $(O)filedate.fd -d FUNZIP $(CFLAGD) amiga/filedate.c
 
222
 
 
223
# The file t:G_offs.a is generated on the fly by programs we compile
 
224
# and then run, and then it's included into amiga/flate.a to provide
 
225
# definitions for it.  There are no debug versions of flate.o.
 
226
 
 
227
$(O)flate.o : amiga/flate.a amiga/gbloffs
 
228
        amiga/gbloffs > t:G_offs.a
 
229
        as -n -o $(O)flate.o -eINT16 amiga/flate.a
 
230
        -@delete t:G_offs.a
 
231
 
 
232
$(O)flate.fo : amiga/flate.a amiga/Fgbloffs
 
233
        amiga/Fgbloffs > t:G_offs.a
 
234
        as -n -o $(O)flate.fo -eINT16 -eFUNZIP -eAZTEC amiga/flate.a
 
235
        -@delete t:G_offs.a
 
236
 
 
237
$(O)flate.xo : amiga/flate.a amiga/Xgbloffs
 
238
        amiga/Xgbloffs > t:G_offs.a
 
239
        as -n -o $(O)flate.xo -eINT16 -eSFX amiga/flate.a
 
240
        -@delete t:G_offs.a
 
241
 
 
242
# Here are the programs that generate different versions of G_offs.a:
122
243
 
123
244
amiga/gbloffs : gbloffs.c unzip.h unzpriv.h globals.h amiga/amiga.h crypt.h
124
245
        $(CC) -o t:gbloffs.o $(CFLAGS) gbloffs.c