~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to zip/unzip/win32/Makefile.dj

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for UnZip, fUnZip and UnZipSFX
2
 
# for rsxntdj 1.6beta2 (with djgpp v2.3) under Windows 95 and Windows NT.
3
 
# By E-Yen Tan. Last updated 20th January 2002.
4
 
 
5
 
CC = gcc -Zwin32
6
 
CFLAGS = -O2 -Wall -I. -DWIN32 -DASM_CRC $(LOCAL_UNZIP)
7
 
AS = gcc
8
 
ASFLAGS = -Di386
9
 
LDFLAGS = -o ./
10
 
LDFLAGS2 = -lalias -L. $(L_ADVAPI32)
11
 
IMPLIBS = $(ADVAPI32LIB)
12
 
 
13
 
ADVAPI32 = advapi32
14
 
ADVAPI32LIB = lib$(ADVAPI32).a
15
 
L_ADVAPI32 = -l$(ADVAPI32)
16
 
 
17
 
OBJU1 = unzip.o crc_gcc.o crctab.o crypt.o envargs.o explode.o extract.o
18
 
OBJU2 = fileio.o globals.o inflate.o list.o match.o process.o ttyio.o
19
 
OBJU3 = unreduce.o unshrink.o zipinfo.o win32.o nt.o
20
 
OBJU  = $(OBJU1) $(OBJU2) $(OBJU3)
21
 
OBJX1 = unzipsf_.o crc_gcc.o crctab_.o crypt_.o extract_.o fileio_.o
22
 
OBJX2 = globals_.o inflate_.o match_.o process_.o ttyio_.o win32_.o nt_.o
23
 
OBJX  = $(OBJX1) $(OBJX2)
24
 
OBJF  = funzip.o crc_gcc.o cryptf.o inflatef.o globalsf.o ttyiof.o win32f.o
25
 
 
26
 
UNZIP_H = unzip.h unzpriv.h globals.h win32/w32cfg.h
27
 
 
28
 
# rules
29
 
 
30
 
.SUFFIXES: .c .o
31
 
 
32
 
.c.o:
33
 
        $(CC) -c $(CFLAGS) -o$@ $<
34
 
 
35
 
.asm.o:
36
 
        $(AS) $(ASFLAGS) $<
37
 
 
38
 
all:    unzip.exe funzip.exe unzipsfx.exe
39
 
 
40
 
unzip.exe: $(OBJU) $(IMPLIBS)
41
 
        $(CC) $(LDFLAGS)$@ $(OBJU) $(LDFLAGS2)
42
 
 
43
 
funzip.exe: $(OBJF) $(IMPLIBS)
44
 
        $(CC) $(LDFLAGS)$@ $(OBJF) $(LDFLAGS2)
45
 
 
46
 
unzipsfx.exe: $(OBJX) $(IMPLIBS)
47
 
        $(CC) $(LDFLAGS)$@ $(OBJX) $(LDFLAGS2)
48
 
 
49
 
uzexampl.exe:   uzexampl$(OBJ)
50
 
        $(CC) $(LDFLAGS)$@ uzexampl$(OBJ) -lversion $(LDFLAGS2)
51
 
 
52
 
$(ADVAPI32LIB):
53
 
        makelib "$(windir)/system/advapi32.dll" -o ./$@
54
 
 
55
 
crctab.o:       crctab.c $(UNZIP_H) zip.h
56
 
envargs.o:      envargs.c $(UNZIP_H)
57
 
explode.o:      explode.c $(UNZIP_H)
58
 
extract.o:      extract.c $(UNZIP_H) crypt.h
59
 
fileio.o:       fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
60
 
globals.o:      globals.c $(UNZIP_H)
61
 
inflate.o:      inflate.c $(UNZIP_H)
62
 
list.o:         list.c $(UNZIP_H)
63
 
match.o:        match.c $(UNZIP_H)
64
 
process.o:      process.c $(UNZIP_H)
65
 
ttyio.o:        ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
66
 
unreduce.o:     unreduce.c $(UNZIP_H)
67
 
unshrink.o:     unshrink.c $(UNZIP_H)
68
 
unzip.o:        unzip.c $(UNZIP_H) crypt.h unzvers.h consts.h
69
 
zipinfo.o:      zipinfo.c $(UNZIP_H)
70
 
 
71
 
funzip.o:       funzip.c $(UNZIP_H) crypt.h ttyio.h tables.h
72
 
        $(CC) -c $(CFLAGS) -o$@ funzip.c
73
 
 
74
 
uzexampl$(OBJ): windll/uzexampl.c windll/uzexampl.h
75
 
        $(CC) -c $(CFLAGS) -o$@ windll/uzexampl.c
76
 
 
77
 
win32.o:        win32/win32.c $(UNZIP_H) win32/nt.h unzvers.h
78
 
        $(CC) -c $(CFLAGS) -o$@ win32/win32.c
79
 
 
80
 
win32f.o:       win32/win32.c $(UNZIP_H) win32/nt.h
81
 
        $(CC) -c $(CFLAGS) -DFUNZIP -o$@ win32/win32.c
82
 
 
83
 
win32_.o:       win32/win32.c $(UNZIP_H) win32/nt.h
84
 
        $(CC) -c $(CFLAGS) -DSFX -o$@ win32/win32.c
85
 
 
86
 
nt.o:   win32/nt.c $(UNZIP_H) win32/nt.h
87
 
        $(CC) -c $(CFLAGS) -o$@ win32/nt.c
88
 
 
89
 
nt_.o:  win32/nt.c $(UNZIP_H) win32/nt.h
90
 
        $(CC) -c $(CFLAGS) -DSFX -o$@ win32/nt.c
91
 
 
92
 
crc_gcc.o:      crc_i386.S
93
 
        $(AS) $(ASFLAGS) -x assembler-with-cpp -c -o $@ crc_i386.S
94
 
 
95
 
crypt.o:        crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h
96
 
        $(CC) -c $(CFLAGS) -o$@ crypt.c
97
 
 
98
 
cryptf.o:       crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h
99
 
        $(CC) -c $(CFLAGS) -DFUNZIP -o$@ crypt.c
100
 
 
101
 
crc32f.o:       crc32.c $(UNZIP_H) zip.h
102
 
        $(CC) -c $(CFLAGS) -DFUNZIP -o$@ crc32.c
103
 
 
104
 
globalsf.o:     globals.c $(UNZIP_H)
105
 
        $(CC) -c $(CFLAGS) -DFUNZIP -o$@ globals.c
106
 
 
107
 
inflatef.o:     inflate.c inflate.h $(UNZIP_H) crypt.h
108
 
        $(CC) -c $(CFLAGS) -DFUNZIP -o$@ inflate.c
109
 
 
110
 
ttyiof.o:       ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
111
 
        $(CC) -c $(CFLAGS) -DFUNZIP -o$@ ttyio.c
112
 
 
113
 
crctab_.o:      crctab.c $(UNZIP_H) zip.h
114
 
        $(CC) -c $(CFLAGS) -DSFX -o$@ crctab.c
115
 
 
116
 
crypt_.o:       crypt.c $(UNZIP_H) zip.h crypt.h ttyio.h
117
 
        $(CC) -c $(CFLAGS) -DSFX -o$@ crypt.c
118
 
 
119
 
extract_.o:     extract.c $(UNZIP_H) crypt.h
120
 
        $(CC) -c $(CFLAGS) -DSFX -o$@ extract.c
121
 
 
122
 
fileio_.o:      fileio.c $(UNZIP_H) crypt.h ttyio.h ebcdic.h
123
 
        $(CC) -c $(CFLAGS) -DSFX -o$@ fileio.c
124
 
 
125
 
globals_.o:     globals.c $(UNZIP_H)
126
 
        $(CC) -c $(CFLAGS) -DSFX -o$@ globals.c
127
 
 
128
 
inflate_.o:     inflate.c inflate.h $(UNZIP_H) crypt.h
129
 
        $(CC) -c $(CFLAGS) -DSFX -o$@ inflate.c
130
 
 
131
 
match_.o:       match.c $(UNZIP_H)
132
 
        $(CC) -c $(CFLAGS) -DSFX -o$@ match.c
133
 
 
134
 
process_.o:     process.c $(UNZIP_H)
135
 
        $(CC) -c $(CFLAGS) -DSFX -o$@ process.c
136
 
 
137
 
ttyio_.o:       ttyio.c $(UNZIP_H) zip.h crypt.h ttyio.h
138
 
        $(CC) -c $(CFLAGS) -DSFX -o$@ ttyio.c
139
 
 
140
 
unzipsf_.o:     unzip.c $(UNZIP_H) crypt.h unzvers.h consts.h
141
 
        $(CC) -c $(CFLAGS) -DSFX -o$@ unzip.c