blob: 538a614e080c324fe9aeb0b543fbfdce7d649c67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
# Makefile for Zip, ZipCloak, ZipNote and ZipSplit for
# 32-bit Microsoft Visual C++
# To use, do "nmake -f makefile.w32"
# Add -DNO_ASM to CFLAGS and comment out the ASMOBJS definition if
# you do not have masm 6.1X.
# Optional nonstandard preprocessor flags (as -DMEDIUM_MEM or -DNO_ASM)
# should be added to the environment via "set LOCAL_ZIP=-DFOO" or added
# to the declaration of LOC here:
LOC = $(LOCAL_ZIP)
# To avoid using the optimized assembler routines in Zip, comment
# out the ASMOBJS macro below, and add -DNO_ASM to LOC above.
ASMOBJS = match32.obj crc_i386.obj
# ------------- 32-bit Microsoft Visual C++ -------------
CC=cl -nologo
CFLAGS=-W3 -O2 -DWIN32 $(LOC)
UTILFLAGS=$(CFLAGS) -DUTIL -Fo$@
# Remove "-coff" from ASFLAGS if you do not have MASM 6.11.
AS=ml -nologo
ASFLAGS=-c -coff -Cx
# If you build 16-bit executables with MS Visual C++ v1.0/1.5 and link them
# with the /KNOWEAS switch, you can build dual-mode MS-DOS/Win32 executables
# by passing the -stub switch to the 32-bit linker to specify the 16-bit part.
LD=link -nologo
#LDFLAGS=-stub:zipdos.exe
LDFLAGS=
# variables
OBJZ = zip.obj crypt.obj ttyio.obj zipfile.obj zipup.obj fileio.obj util.obj \
crc32.obj crctab.obj globals.obj
OBJI = deflate.obj trees.obj $(ASMOBJS) win32.obj win32zip.obj nt.obj
OBJU = zipfile_.obj fileio_.obj util_.obj globals.obj win32_.obj
OBJN = zipnote.obj $(OBJU)
OBJC = zipcloak.obj crctab.obj crypt_.obj ttyio.obj $(OBJU)
OBJS = zipsplit.obj $(OBJU)
ZIP_H = zip.h ziperr.h tailor.h win32/osdep.h
LIBS = advapi32.lib
ZIPS = zip.exe zipnote.exe zipsplit.exe zipcloak.exe
zips: $(ZIPS)
zip.obj: zip.c $(ZIP_H) revision.h crypt.h ttyio.h
$(CC) -c $(CFLAGS) $*.c
zipfile.obj: zipfile.c $(ZIP_H)
$(CC) -c $(CFLAGS) $*.c
zipup.obj: zipup.c $(ZIP_H) revision.h crypt.h win32/zipup.h
$(CC) -c $(CFLAGS) $*.c
fileio.obj: fileio.c $(ZIP_H)
$(CC) -c $(CFLAGS) $*.c
util.obj: util.c $(ZIP_H)
$(CC) -c $(CFLAGS) $*.c
globals.obj: globals.c $(ZIP_H)
$(CC) -c $(CFLAGS) $*.c
deflate.obj: deflate.c $(ZIP_H)
$(CC) -c $(CFLAGS) $*.c
trees.obj: trees.c $(ZIP_H)
$(CC) -c $(CFLAGS) $*.c
crc32.obj: crc32.c $(ZIP_H)
$(CC) -c $(CFLAGS) $*.c
crctab.obj: crctab.c $(ZIP_H)
$(CC) -c $(CFLAGS) $*.c
crypt.obj: crypt.c $(ZIP_H) crypt.h ttyio.h
$(CC) -c $(CFLAGS) $*.c
ttyio.obj: ttyio.c $(ZIP_H) crypt.h ttyio.h
$(CC) -c $(CFLAGS) $*.c
win32zip.obj: win32/win32zip.c $(ZIP_H) win32/win32zip.h win32/nt.h
$(CC) -c $(CFLAGS) -I. win32/win32zip.c
win32.obj: win32/win32.c $(ZIP_H) win32/win32zip.h
$(CC) -c $(CFLAGS) -I. win32/win32.c
nt.obj: win32/nt.c $(ZIP_H) win32/nt.h
$(CC) -c $(CFLAGS) -I. win32/nt.c
zipcloak.obj: zipcloak.c $(ZIP_H) revision.h crypt.h ttyio.h
$(CC) -c $(CFLAGS) $*.c
zipnote.obj: zipnote.c $(ZIP_H) revision.h
$(CC) -c $(CFLAGS) $*.c
zipsplit.obj: zipsplit.c $(ZIP_H) revision.h
$(CC) -c $(CFLAGS) $*.c
zipfile_.obj: zipfile.c $(ZIP_H)
$(CC) -c $(UTILFLAGS) zipfile.c
fileio_.obj: fileio.c $(ZIP_H)
$(CC) -c $(UTILFLAGS) fileio.c
util_.obj: util.c $(ZIP_H)
$(CC) -c $(UTILFLAGS) util.c
crypt_.obj: crypt.c $(ZIP_H) crypt.h ttyio.h
$(CC) -c $(UTILFLAGS) crypt.c
win32_.obj: win32/win32.c $(ZIP_H) win32/win32zip.h
$(CC) -c $(UTILFLAGS) -I. win32/win32.c
crci386c.obj: win32/crc_i386.c $(ZIP_H)
$(CC) -c $(CFLAGS) -I. -Fo$@ win32/crc_i386.c
crc_i386.obj: win32/crc_i386.c $(ZIP_H)
$(AS) $(ASFLAGS) win32\crc_i386.asm
match32.obj: win32/match32.asm
$(AS) $(ASFLAGS) win32\match32.asm
zip.exe: $(OBJZ) $(OBJI)
$(LD) $(LDFLAGS) $(OBJZ) $(OBJI) $(LIBS)
zipcloak.exe: $(OBJC)
$(LD) $(LDFLAGS) $(OBJC) $(LIBS)
zipnote.exe: $(OBJN)
$(LD) $(LDFLAGS) $(OBJN) $(LIBS)
zipsplit.exe: $(OBJS)
$(LD) $(LDFLAGS) $(OBJS) $(LIBS)
clean:
del *.obj
del *.exe
|