]> git.saurik.com Git - wxWidgets.git/blame - src/zlib/MAKEFILE.VA
Corrected DoBlit code to use offset into mask
[wxWidgets.git] / src / zlib / MAKEFILE.VA
CommitLineData
735c116a
DW
1#
2# File: makefile.vc
3# Author: David Webster
4# Created: 1999
5# Updated:
6# Copyright: c) 1993, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
7e415a0f 10# Makefile : Builds os2zlib.lib library for OS/2 3.0/4.0
735c116a
DW
11
12# Suffixes
13OBJSUFF=obj
14SRCSUFF=c
15
57e3f9d9 16OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /Ss /Q /N100
735c116a
DW
17OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
18OS2LIBFLAGS=/NOL /NOE
19OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
20
7e415a0f
DW
21!if "$(WXMAKINGDLL)" != "0"
22EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
23EXTRALNKFLAGS=/DLL
24!endif
25
735c116a 26# Change WXDIR or WXWIN to wherever wxWindows is found
57e3f9d9 27WXDIR = $(WXWIN)
735c116a
DW
28
29OS2ZLIBDIR=$(WXDIR)\src\zlib
30OS2ZLIBINC=$(WINPNGDIR)
7e415a0f 31!if "$(WXMAKINGDLL)" != "1"
735c116a 32OS2ZLIBLIB=$(WXDIR)\lib\os2zlib.lib
7e415a0f
DW
33!else
34OS2ZLIBLIB=$(WXDIR)\lib\os2zlib.dll
35!endif
735c116a
DW
36INC=
37
38!ifndef FINAL
39FINAL=0
40!endif
41
42!if "$(NOPCH)" == "1"
43PCH=
44PRECOMP=
45MAKEPRECOMP=
46!else
47PCH=$(WXLIBNAME).pch
48PRECOMP=/Si$(PCH)
49MAKEPRECOMP=/Fi$(PCH)
50!endif
51
52!if "$(FINAL)" == "0"
7e415a0f
DW
53!if "$(WXMAKINGDLL)" == "1"
54D=DebugOS2DLL
55!else
57e3f9d9 56D=DebugOS2
7e415a0f 57!endif
735c116a
DW
58OPT =
59DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
60LINK_DEBUG_FLAGS=/DEBUG
61CRTFLAG=/Gm /Gd
62!else
63# /O1 - smallest code
64# /O2 - fastest code
7e415a0f
DW
65!if "$(WXMAKINGDLL)" == "1"
66D=RelseOS2DLL
67!else
57e3f9d9 68D=RelseOS2
7e415a0f 69!endif
735c116a
DW
70OPT = /O+ /Oc /G5
71DEBUG_FLAGS=
72LINK_DEBUG_FLAGS=/RELEASE
73CRTFLAG=/Gm /Gd
74!endif
75
50c375d3
DW
76!if [md $(OS2ZLIBDIR)\$D]
77!endif
78
7e415a0f
DW
79CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
80LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
735c116a
DW
81
82{..\zlib}.c{..\zlib\$D}.obj:
83 @echo $<
84 icc @<<
85$(CPPFLAGS) /Fo$@ /Tp $<
86<<
87
88OBJECTS = \
89 ..\zlib\$D\adler32.obj \
90 ..\zlib\$D\compress.obj \
91 ..\zlib\$D\crc32.obj \
92 ..\zlib\$D\deflate.obj \
93 ..\zlib\$D\gzio.obj \
94 ..\zlib\$D\infblock.obj \
95 ..\zlib\$D\infcodes.obj \
96 ..\zlib\$D\inflate.obj \
97 ..\zlib\$D\inftrees.obj \
98 ..\zlib\$D\infutil.obj \
99 ..\zlib\$D\inffast.obj \
100 ..\zlib\$D\trees.obj \
101 ..\zlib\$D\uncompr.obj \
102 ..\zlib\$D\zutil.obj
103
50c375d3 104all: $(OS2ZLIBLIB)
735c116a 105
7e415a0f
DW
106!if "$(WXMAKINGDLL)" != "1"
107
735c116a
DW
108$(WXDIR)\lib\os2zlib.lib: $(OBJECTS)
109 touch $(WXDIR)\lib\os2zlib.lib
110 del $(WXDIR)\lib\os2zlib.lib
111 ilib $(OS2LIBFLAGS) $@ @<<
112 $**;
113<<
114
7e415a0f
DW
115!else
116
117# Update the dynamic link library
118$(WXDIR)\lib\os2zlib.dll: $(OBJECTS)
119 icc @<<
120 /B" $(LINKFLAGS)" /Fe$@
121 $(LIBS)
122 $(OBJECTS)
123 $(WXDIR)\lib\os2zlib.def
124<<
125 implib $(WXDIR)\lib\os2zlibd.lib $(WXDIR)\lib\os2zlib.def
126
127!endif
128
735c116a 129clean:
50c375d3
DW
130 del $(OS2ZLIBLIB)
131 erase /N $(OS2ZLIBDIR)\$D
132 rd $(OS2ZLIBDIR)\$D
735c116a
DW
133
134cleanall: clean
135