]> git.saurik.com Git - wxWidgets.git/blame - src/zlib/makefile.vc
Crude hack to enable PageUp/DownKeys when controlbar is enabled.
[wxWidgets.git] / src / zlib / makefile.vc
CommitLineData
c801d85f
KB
1# Makefile for zlib
2# Borland C++ ************ UNTESTED ***********
3
4# To use, do "make -fmakefile.bor"
5
6# WARNING: the small model is supported but only for small values of
7# MAX_WBITS and MAX_MEM_LEVEL. If you wish to reduce the memory
8# requirements (default 256K for big objects plus a few K), you can add
9# to CFLAGS below: -DMAX_MEM_LEVEL=7 -DMAX_WBITS=14
10# See zconf.h for details about the memory requirements.
11
12# ------------- Turbo C++, Borland C++ -------------
fbc535ff 13CFLAGS=-O2 /MD /GX
c801d85f
KB
14CC=cl
15LD=cl
16LIB=tlib
17# replace bcc with tcc for Turbo C++ 1.0
18LDFLAGS=$(MODEL)
19O=.obj
20
58c55d1f 21LIBTARGET=..\..\lib\zlib.lib
c801d85f
KB
22
23# variables
24OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
25 trees$(O)
26OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
27 infutil$(O) inffast$(O)
28
29all: $(LIBTARGET)
30
31adler32.obj: adler32.c zutil.h zlib.h zconf.h
32 $(CC) -c $(CFLAGS) $*.c
33
34compress.obj: compress.c zlib.h zconf.h
35 $(CC) -c $(CFLAGS) $*.c
36
37crc32.obj: crc32.c zutil.h zlib.h zconf.h
38 $(CC) -c $(CFLAGS) $*.c
39
40deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
41 $(CC) -c $(CFLAGS) $*.c
42
43gzio.obj: gzio.c zutil.h zlib.h zconf.h
44 $(CC) -c $(CFLAGS) $*.c
45
46infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
47 infcodes.h infutil.h
48 $(CC) -c $(CFLAGS) $*.c
49
50infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
51 infcodes.h inffast.h
52 $(CC) -c $(CFLAGS) $*.c
53
54inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
55 $(CC) -c $(CFLAGS) $*.c
56
57inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
58 $(CC) -c $(CFLAGS) $*.c
59
60infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
61 $(CC) -c $(CFLAGS) $*.c
62
63inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
64 $(CC) -c $(CFLAGS) $*.c
65
66trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
67 $(CC) -c $(CFLAGS) $*.c
68
69uncompr.obj: uncompr.c zlib.h zconf.h
70 $(CC) -c $(CFLAGS) $*.c
71
72zutil.obj: zutil.c zutil.h zlib.h zconf.h
73 $(CC) -c $(CFLAGS) $*.c
74
75LIBOBJECTS = $(OBJ1) $(OBJ2)
76
77$(LIBTARGET): $(LIBOBJECTS)
78 del $(LIBTARGET)
79 lib @<<
80-out:$(LIBTARGET)
81$(LIBOBJECTS)
82<<
83
84clean:
fbc535ff
JS
85 -erase *.obj
86 -erase *.exe
87 -erase *.sbr
88 -erase $(LIBTARGET)