]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/zlib/MAKEFILE.VA
ignore clicks on a toolbar but outside any button
[wxWidgets.git] / src / zlib / MAKEFILE.VA
... / ...
CommitLineData
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#
10# Makefile : Builds os2zlib.lib library for OS/2 3.0/4.0
11
12# Suffixes
13OBJSUFF=obj
14SRCSUFF=c
15
16OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /Ss /Q /N100
17OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
18OS2LIBFLAGS=/NOL /NOE
19OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
20
21!if "$(WXMAKINGDLL)" != "0"
22EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
23EXTRALNKFLAGS=/DLL
24!endif
25
26# Change WXDIR or WXWIN to wherever wxWindows is found
27WXDIR = $(WXWIN)
28
29OS2ZLIBDIR=$(WXDIR)\src\zlib
30OS2ZLIBINC=$(WINPNGDIR)
31!if "$(WXMAKINGDLL)" != "1"
32OS2ZLIBLIB=$(WXDIR)\lib\os2zlib.lib
33!else
34OS2ZLIBLIB=$(WXDIR)\lib\os2zlib.dll
35!endif
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"
53!if "$(WXMAKINGDLL)" == "1"
54D=DebugOS2DLL
55!else
56D=DebugOS2
57!endif
58OPT =
59DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
60LINK_DEBUG_FLAGS=/DEBUG
61CRTFLAG=/Gm /Gd
62!else
63# /O1 - smallest code
64# /O2 - fastest code
65!if "$(WXMAKINGDLL)" == "1"
66D=RelseOS2DLL
67!else
68D=RelseOS2
69!endif
70OPT = /O+ /Oc /G5
71DEBUG_FLAGS=
72LINK_DEBUG_FLAGS=/RELEASE
73CRTFLAG=/Gm /Gd
74!endif
75
76!if [md $(OS2ZLIBDIR)\$D]
77!endif
78
79CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
80LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
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
104all: $(OS2ZLIBLIB)
105
106!if "$(WXMAKINGDLL)" != "1"
107
108$(WXDIR)\lib\os2zlib.lib: $(OBJECTS)
109 touch $(WXDIR)\lib\os2zlib.lib
110 del $(WXDIR)\lib\os2zlib.lib
111 ilib $(OS2LIBFLAGS) $@ @<<
112 $**;
113<<
114
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)\src\os2\os2zlib.def
124<<
125 implib $(WXDIR)\lib\os2zlibd.lib $(WXDIR)\src\os2\os2zlib.def
126
127!endif
128
129clean:
130 del $(OS2ZLIBLIB)
131 erase /N $(OS2ZLIBDIR)\$D
132 rd $(OS2ZLIBDIR)\$D
133
134cleanall: clean
135