~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to lib/zlib/win32/Makefile.bor

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for zlib
 
2
# Borland C++ for Win32
 
3
#
 
4
# Updated for zlib 1.2.x by Cosmin Truta, 11-Mar-2003
 
5
# Last updated: 28-Aug-2003
 
6
#
 
7
# Usage:
 
8
#  make -f win32/Makefile.bor
 
9
#  make -f win32/Makefile.bor LOCAL_ZLIB=-DASMV OBJA=match.obj OBJPA=+match.obj
 
10
 
 
11
# ------------ Borland C++ ------------
 
12
 
 
13
# Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
 
14
# should be added to the environment via "set LOCAL_ZLIB=-DFOO" or
 
15
# added to the declaration of LOC here:
 
16
LOC = $(LOCAL_ZLIB)
 
17
 
 
18
CC = bcc32
 
19
AS = bcc32
 
20
LD = bcc32
 
21
AR = tlib
 
22
CFLAGS  = -a -d -k- -O2 $(LOC)
 
23
ASFLAGS = $(LOC)
 
24
LDFLAGS = $(LOC)
 
25
 
 
26
 
 
27
# variables
 
28
ZLIB_LIB = zlib.lib
 
29
 
 
30
OBJ1  = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.obj
 
31
OBJ2  = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
 
32
#OBJA =
 
33
OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzio.obj+infback.obj
 
34
OBJP2 = +inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
 
35
#OBJPA=
 
36
 
 
37
 
 
38
# targets
 
39
all: $(ZLIB_LIB) example.exe minigzip.exe
 
40
 
 
41
.c.obj:
 
42
        $(CC) -c $(CFLAGS) $<
 
43
 
 
44
.asm.obj:
 
45
        $(AS) -c $(ASFLAGS) $<
 
46
 
 
47
adler32.obj: adler32.c zlib.h zconf.h
 
48
 
 
49
compress.obj: compress.c zlib.h zconf.h
 
50
 
 
51
crc32.obj: crc32.c zlib.h zconf.h crc32.h
 
52
 
 
53
deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
 
54
 
 
55
gzio.obj: gzio.c zutil.h zlib.h zconf.h
 
56
 
 
57
infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
 
58
 inffast.h inffixed.h
 
59
 
 
60
inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
 
61
 inffast.h
 
62
 
 
63
inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
 
64
 inffast.h inffixed.h
 
65
 
 
66
inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
 
67
 
 
68
trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
 
69
 
 
70
uncompr.obj: uncompr.c zlib.h zconf.h
 
71
 
 
72
zutil.obj: zutil.c zutil.h zlib.h zconf.h
 
73
 
 
74
example.obj: example.c zlib.h zconf.h
 
75
 
 
76
minigzip.obj: minigzip.c zlib.h zconf.h
 
77
 
 
78
 
 
79
# For the sake of the old Borland make,
 
80
# the command line is cut to fit in the MS-DOS 128 byte limit:
 
81
$(ZLIB_LIB): $(OBJ1) $(OBJ2) $(OBJA)
 
82
        -del $(ZLIB_LIB)
 
83
        $(AR) $(ZLIB_LIB) $(OBJP1)
 
84
        $(AR) $(ZLIB_LIB) $(OBJP2)
 
85
        $(AR) $(ZLIB_LIB) $(OBJPA)
 
86
 
 
87
 
 
88
# testing
 
89
test: example.exe minigzip.exe
 
90
        example
 
91
        echo hello world | minigzip | minigzip -d
 
92
 
 
93
example.exe: example.obj $(ZLIB_LIB)
 
94
        $(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
 
95
 
 
96
minigzip.exe: minigzip.obj $(ZLIB_LIB)
 
97
        $(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
 
98
 
 
99
 
 
100
# cleanup
 
101
clean:
 
102
        -del *.obj
 
103
        -del *.lib
 
104
        -del *.exe
 
105
        -del *.tds
 
106
        -del zlib.bak
 
107
        -del foo.gz