]> git.saurik.com Git - wxWidgets.git/blame - src/zlib/makefile.vc
Add draft wxPlotWindow
[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++ -------------
d604ea33
UJ
13!ifndef FINAL
14FINAL=0
15!endif
16
17!if "$(FINAL)" == "0"
3156ba6e
RD
18CFLAGS=/Od $(CRTFLAG) /GX
19_CRTFLAG=/MDd
d604ea33 20!else
3156ba6e
RD
21CFLAGS=-O2 $(CRTFLAG) /GX
22_CRTFLAG=/MD
d604ea33
UJ
23!endif
24
3156ba6e
RD
25!if "$(CRTFLAG)" == ""
26CRTFLAG=$(_CRTFLAG)
27!endif
28
29
c801d85f
KB
30CC=cl
31LD=cl
32LIB=tlib
33# replace bcc with tcc for Turbo C++ 1.0
34LDFLAGS=$(MODEL)
35O=.obj
36
58c55d1f 37LIBTARGET=..\..\lib\zlib.lib
c801d85f
KB
38
39# variables
40OBJ1 = adler32$(O) compress$(O) crc32$(O) gzio$(O) uncompr$(O) deflate$(O) \
3156ba6e 41 trees$(O)
c801d85f 42OBJ2 = zutil$(O) inflate$(O) infblock$(O) inftrees$(O) infcodes$(O) \
3156ba6e 43 infutil$(O) inffast$(O)
c801d85f
KB
44
45all: $(LIBTARGET)
46
47adler32.obj: adler32.c zutil.h zlib.h zconf.h
48 $(CC) -c $(CFLAGS) $*.c
49
50compress.obj: compress.c zlib.h zconf.h
51 $(CC) -c $(CFLAGS) $*.c
52
53crc32.obj: crc32.c zutil.h zlib.h zconf.h
54 $(CC) -c $(CFLAGS) $*.c
55
56deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
57 $(CC) -c $(CFLAGS) $*.c
58
59gzio.obj: gzio.c zutil.h zlib.h zconf.h
60 $(CC) -c $(CFLAGS) $*.c
61
62infblock.obj: infblock.c zutil.h zlib.h zconf.h infblock.h inftrees.h\
63 infcodes.h infutil.h
64 $(CC) -c $(CFLAGS) $*.c
65
66infcodes.obj: infcodes.c zutil.h zlib.h zconf.h inftrees.h infutil.h\
67 infcodes.h inffast.h
68 $(CC) -c $(CFLAGS) $*.c
69
70inflate.obj: inflate.c zutil.h zlib.h zconf.h infblock.h
71 $(CC) -c $(CFLAGS) $*.c
72
73inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
74 $(CC) -c $(CFLAGS) $*.c
75
76infutil.obj: infutil.c zutil.h zlib.h zconf.h inftrees.h infutil.h
77 $(CC) -c $(CFLAGS) $*.c
78
79inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h
80 $(CC) -c $(CFLAGS) $*.c
81
82trees.obj: trees.c deflate.h zutil.h zlib.h zconf.h
83 $(CC) -c $(CFLAGS) $*.c
84
85uncompr.obj: uncompr.c zlib.h zconf.h
86 $(CC) -c $(CFLAGS) $*.c
87
88zutil.obj: zutil.c zutil.h zlib.h zconf.h
89 $(CC) -c $(CFLAGS) $*.c
90
91LIBOBJECTS = $(OBJ1) $(OBJ2)
92
93$(LIBTARGET): $(LIBOBJECTS)
d3fef91f 94 -del $(LIBTARGET)
c801d85f
KB
95 lib @<<
96-out:$(LIBTARGET)
97$(LIBOBJECTS)
98<<
99
100clean:
fbc535ff
JS
101 -erase *.obj
102 -erase *.exe
103 -erase *.sbr
104 -erase $(LIBTARGET)