1
1
#==============================================================================
2
# Makefile for UnZip, UnZipSFX & fUnZip: Atari ST Chris Herborth
3
# Version: UnZip 5.20+, MiNT, GNU C 13 February 2001
2
# Makefile for UnZip, UnZipSFX and fUnZip: Atari ST Chris Herborth
3
# Version: UnZip 5.20+, MiNT, GNU C 25 December 2006
4
4
#==============================================================================
6
6
# Based on the original unix Makefile and modified by Chris Herborth
52
OBJS1 = unzip$O crc32$O crctab$O crypt$O envargs$O explode$O
52
OBJS1 = unzip$O crc32$O crypt$O envargs$O explode$O
53
53
OBJS2 = extract$O fileio$O globals$O inflate$O list$O match$O
54
OBJS3 = process$O ttyio$O unreduce$O unshrink$O zipinfo$O
54
OBJS3 = process$O ttyio$O ubz2err$O unreduce$O unshrink$O zipinfo$O
55
55
OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $M$O
57
OBJX = unzipsfx$O crc32$O crctab_$O crypt_$O extract_$O fileio_$O \
58
globals_$O inflate_$O match_$O process_$O ttyio_$O $M_$O
57
OBJX = unzipsfx$O crc32$O crypt_$O extract_$O fileio_$O \
58
globals_$O inflate_$O match_$O process_$O ttyio_$O ubz2err_$O $M_$O
59
59
OBJF = funzip$O crc32$O cryptf$O globalsf$O inflatef$O ttyiof$O
61
61
UNZIP_H = unzip.h unzpriv.h globals.h
126
126
$(LN) unzip$E zipinfo$E
129
crc32$O: crc32.c $(UNZIP_H) zip.h
130
crctab$O: crctab.c $(UNZIP_H) zip.h
131
crypt$O: crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h
129
crc32$O: crc32.c $(UNZIP_H) zip.h crc32.h
130
crypt$O: crypt.c $(UNZIP_H) zip.h crypt.h crc32.h ttyio.h
132
131
envargs$O: envargs.c $(UNZIP_H)
133
132
explode$O: explode.c $(UNZIP_H)
134
extract$O: extract.c $(UNZIP_H) crypt.h
135
fileio$O: fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
136
funzip$O: funzip.c $(UNZIP_H) crypt.h ttyio.h tables.h
133
extract$O: extract.c $(UNZIP_H) crc32.h crypt.h
134
fileio$O: fileio.c $(UNZIP_H) crc32.h crypt.h ttyio.h ebcdic.h
135
funzip$O: funzip.c $(UNZIP_H) crc32.h crypt.h ttyio.h
137
136
globals$O: globals.c $(UNZIP_H)
138
137
inflate$O: inflate.c inflate.h $(UNZIP_H)
139
138
list$O: list.c $(UNZIP_H)
140
139
match$O: match.c $(UNZIP_H)
141
process$O: process.c $(UNZIP_H)
140
process$O: process.c $(UNZIP_H) crc32.h
142
141
ttyio$O: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
142
ubz2err$O: ubz2err.c $(UNZIP_H)
143
143
unreduce$O: unreduce.c $(UNZIP_H)
144
144
unshrink$O: unshrink.c $(UNZIP_H)
145
145
unzip$O: unzip.c $(UNZIP_H) crypt.h unzvers.h consts.h
146
146
zipinfo$O: zipinfo.c $(UNZIP_H)
148
crctab_$O: crctab.c $(UNZIP_H) zip.h
149
$(CP) crctab.c crctab_.c
150
$(CC) -c $(CF) $(XC) crctab_.c
153
crypt_$O: crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h # unzipsfx only
149
crypt_$O: crypt.c $(UNZIP_H) zip.h crypt.h crc32.h ttyio.h
154
150
$(CP) crypt.c crypt_.c
155
151
$(CC) -c $(CF) $(XC) crypt_.c
158
extract_$O: extract.c $(UNZIP_H) crypt.h # unzipsfx only
154
extract_$O: extract.c $(UNZIP_H) crc32.h crypt.h
159
155
$(CP) extract.c extract_.c
160
156
$(CC) -c $(CF) $(XC) extract_.c
163
fileio_$O: fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
159
fileio_$O: fileio.c $(UNZIP_H) crc32.h crypt.h ttyio.h ebcdic.h
164
160
$(CP) fileio.c fileio_.c
165
161
$(CC) -c $(CF) $(XC) fileio_.c
170
166
$(CC) -c $(CF) $(XC) globals_.c
173
inflate_$O: inflate.c inflate.h $(UNZIP_H) crypt.h # unzipsfx only
169
inflate_$O: inflate.c inflate.h $(UNZIP_H) crypt.h
174
170
$(CP) inflate.c inflate_.c
175
171
$(CC) -c $(CF) $(XC) inflate_.c
180
176
$(CC) -c $(CF) $(XC) match_.c
183
process_$O: process.c $(UNZIP_H) # unzipsfx only
179
process_$O: process.c $(UNZIP_H) crc32.h
184
180
$(CP) process.c process_.c
185
181
$(CC) -c $(CF) $(XC) process_.c
188
ttyio_$O: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h # unzipsfx only
184
ttyio_$O: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
189
185
$(CP) ttyio.c ttyio_.c
190
186
$(CC) -c $(CF) $(XC) ttyio_.c
193
unzipsfx$O: unzip.c $(UNZIP_H) crypt.h unzvers.h consts.h # unzipsfx only
189
ubz2err_$O: ubz2err.c $(UNZIP_H)
190
$(CP) ubz2err.c ubz2err_.c
191
$(CC) -c $(CF) $(XC) ubz2err_.c
194
unzipsfx$O: unzip.c $(UNZIP_H) crypt.h unzvers.h consts.h
194
195
$(CP) unzip.c unzip_.c
195
196
$(CC) -c $(CF) $(XC) unzip_.c
199
cryptf$O: crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h # funzip only
201
cryptf$O: crypt.c $(UNZIP_H) zip.h crypt.h crc32.h ttyio.h
200
202
$(CP) crypt.c cryptf.c
201
203
$(CC) -c $(CF) $(FC) cryptf.c
204
globalsf$O: globals.c $(UNZIP_H) # funzip only
206
globalsf$O: globals.c $(UNZIP_H)
205
207
$(CP) globals.c globalsf.c
206
208
$(CC) -c $(CF) $(FC) globalsf.c
209
inflatef$O: inflate.c inflate.h $(UNZIP_H) crypt.h # funzip only
211
inflatef$O: inflate.c inflate.h $(UNZIP_H) crypt.h
210
212
$(CP) inflate.c inflatef.c
211
213
$(CC) -c $(CF) $(FC) inflatef.c
214
ttyiof$O: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h # funzip only
216
ttyiof$O: ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
215
217
$(CP) ttyio.c ttyiof.c
216
218
$(CC) -c $(CF) $(FC) ttyiof.c
219
# atari$O: atari/atari.c $(UNZIP_H) # Atari only
220
# $(CC) -c $(CF) atari/atari.c
222
atari$O: atari.c $(UNZIP_H)
224
atari_$O: atari.c $(UNZIP_H) # unzipsfx only
225
$(CP) atari.c atari_.c
222
# system-specific code
223
atari$O: atari/atari.c $(UNZIP_H) # Atari only
224
$(CC) -c $(CF) atari/atari.c
226
atari_$O: atari/atari.c $(UNZIP_H) # unzipsfx only
227
$(CP) atari/atari.c atari_.c
226
228
$(CC) -c $(CF) $(XC) atari_.c