1
1
#------------------------------------------------------------------------------
2
# Makefile for UnZip 5.5 and later Greg Roelofs and others
3
# Version: Microsoft C (5.x and later) 20 Oct 03
2
# Makefile for UnZip 5.53 and later Greg Roelofs and others
3
# Version: Microsoft C (5.x and later) 29 Dec 05
4
4
#------------------------------------------------------------------------------
6
6
# Users of MSC 6/7 and NMAKE can use the Unix Makefile (target msc_dos),
78
78
LDFLAGS2_FU = $(LDFLAGS2);
79
79
LDFLAGS2_SX = $(LDFLAGS2);
81
OBJS1 = unzip.obj crc32.obj crctab.obj crypt.obj envargs.obj explode.obj
81
OBJS1 = unzip.obj crc32.obj crypt.obj envargs.obj explode.obj
82
82
OBJS2 = extract.obj fileio.obj globals.obj inflate.obj list.obj match.obj
83
83
OBJS3 = process.obj ttyio.obj unreduce.obj unshrink.obj zipinfo.obj
84
84
OBJS4 = msdos.obj $(ASMOBJS)
85
85
OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4)
87
OBJX1 = unzipsfx.obj crc32x.obj crctabx.obj cryptx.obj extractx.obj fileiox.obj
87
OBJX1 = unzipsfx.obj crc32x.obj cryptx.obj extractx.obj fileiox.obj
88
88
OBJX2 = globalsx.obj inflatex.obj matchx.obj processx.obj ttyiox.obj
89
89
OBJX3 = msdosx.obj $(ASMOBJX)
90
90
OBJX = $(OBJX1) $(OBJX2) $(OBJX3)
119
119
crc_i86x.obj: msdos/crc_i86.asm
120
120
$(AS) $(ASFLAGS) -D$(ASSXMODEL) msdos/crc_i86.asm, $@;
122
crc32.obj: crc32.c $(UNZIP_H) zip.h
122
crc32.obj: crc32.c $(UNZIP_H) zip.h crc32.h
124
crc32_.obj: crc32.c $(UNZIP_H) zip.h
124
crc32_.obj: crc32.c $(UNZIP_H) zip.h crc32.h
125
125
$(CC) -c $(CFLAGS_FU) -Focrc32_.obj crc32.c
127
crc32x.obj: crc32.c $(UNZIP_H) zip.h
127
crc32x.obj: crc32.c $(UNZIP_H) zip.h crc32.h
128
128
$(CC) -c $(CFLAGS_SX) -Focrc32x.obj crc32.c
130
crctab.obj: crctab.c $(UNZIP_H) zip.h
132
crctabx.obj: crctab.c $(UNZIP_H) zip.h
133
$(CC) -c $(CFLAGS_SX) -Focrctabx.obj crctab.c
135
crypt.obj: crypt.c $(UNZIP_H) crypt.h ttyio.h zip.h
137
crypt_.obj: crypt.c $(UNZIP_H) crypt.h ttyio.h zip.h
130
crypt.obj: crypt.c $(UNZIP_H) crypt.h crc32.h ttyio.h zip.h
132
crypt_.obj: crypt.c $(UNZIP_H) crypt.h crc32.h ttyio.h zip.h
138
133
$(CC) -c $(CFLAGS_FU) -Focrypt_.obj crypt.c
140
cryptx.obj: crypt.c $(UNZIP_H) crypt.h ttyio.h zip.h
135
cryptx.obj: crypt.c $(UNZIP_H) crypt.h crc32.h ttyio.h zip.h
141
136
$(CC) -c $(CFLAGS_SX) -Focryptx.obj crypt.c
143
138
envargs.obj: envargs.c $(UNZIP_H)
145
140
explode.obj: explode.c $(UNZIP_H)
147
extract.obj: extract.c $(UNZIP_H) crypt.h
142
extract.obj: extract.c $(UNZIP_H) crc32.h crypt.h
149
extractx.obj: extract.c $(UNZIP_H) crypt.h
144
extractx.obj: extract.c $(UNZIP_H) crc32.h crypt.h
150
145
$(CC) -c $(CFLAGS_SX) -Foextractx.obj extract.c
152
fileio.obj: fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
147
fileio.obj: fileio.c $(UNZIP_H) crc32.h crypt.h ttyio.h ebcdic.h
154
fileiox.obj: fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
149
fileiox.obj: fileio.c $(UNZIP_H) crc32.h crypt.h ttyio.h ebcdic.h
155
150
$(CC) -c $(CFLAGS_SX) -Fofileiox.obj fileio.c
157
funzip.obj: funzip.c $(UNZIP_H) crypt.h ttyio.h tables.h
152
funzip.obj: funzip.c $(UNZIP_H) crc32.h crypt.h ttyio.h
158
153
$(CC) -c $(CFLAGS_FU) funzip.c
160
155
globals.obj: globals.c $(UNZIP_H)
189
184
msdosx.obj: msdos/msdos.c $(UNZIP_H)
190
185
$(CC) -c $(CFLAGS_SX) -Fomsdosx.obj msdos/msdos.c
192
process.obj: process.c $(UNZIP_H)
187
process.obj: process.c $(UNZIP_H) crc32.h
194
processx.obj: process.c $(UNZIP_H)
189
processx.obj: process.c $(UNZIP_H) crc32.h
195
190
$(CC) -c $(CFLAGS_SX) -Foprocessx.obj process.c
197
192
ttyio.obj: ttyio.c $(UNZIP_H) crypt.h ttyio.h zip.h