]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/png/MAKEFILE.VA
Use the OOR typemap for wxTreeCtrls too.
[wxWidgets.git] / src / png / 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 os2png.lib library for OS/2 3.0/4.0
11
12# Suffixes
13OBJSUFF=obj
14SRCSUFF=cpp
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
29OS2PNGDIR=$(WXDIR)\src\png
30OS2PNGINC=$(WINPNGDIR)
31OS2PNGLIB=$(WXDIR)\lib\os2png.lib
32!if "$(WXMAKINGDLL)" != "1"
33OS2PNGLIB=$(WXDIR)\lib\os2png.lib
34!else
35OS2PNGLIB=$(WXDIR)\lib\os2png.dll
36!endif
37INC=-I$(WXDIR)\src\zlib -I$(OS2PNGINC)
38
39!ifndef FINAL
40FINAL=0
41!endif
42
43!if "$(NOPCH)" == "1"
44PCH=
45PRECOMP=
46MAKEPRECOMP=
47!else
48PCH=$(WXLIBNAME).pch
49PRECOMP=/Si$(PCH)
50MAKEPRECOMP=/Fi$(PCH)
51!endif
52
53!if "$(FINAL)" == "0"
54!if "$(WXMAKINGDLL)" == "1"
55D=DebugOS2DLL
56!else
57D=DebugOS2
58!endif
59OPT =
60DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
61LINK_DEBUG_FLAGS=/DEBUG
62CRTFLAG=/Gm /Gd
63!else
64# /O1 - smallest code
65# /O2 - fastest code
66!if "$(WXMAKINGDLL)" == "1"
67D=RelseOS2DLL
68!else
69D=RelseOS2
70!endif
71OPT = /O+ /Oc /G5
72DEBUG_FLAGS=
73LINK_DEBUG_FLAGS=/RELEASE
74CRTFLAG=/Gm /Gd
75!endif
76
77!if [md $(OS2PNGDIR)\$D]
78!endif
79
80CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
81LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
82LIBS=..\\..\\lib\os2zlibd.lib
83
84{..\png}.c{..\png\$D}.obj:
85 @echo $<
86 icc @<<
87$(CPPFLAGS) /Fo$@ /Tp $<
88<<
89
90OBJECTS = \
91 ..\png\$D\png.obj \
92 ..\png\$D\pngread.obj \
93 ..\png\$D\pngrtran.obj \
94 ..\png\$D\pngrutil.obj \
95 ..\png\$D\pngpread.obj \
96 ..\png\$D\pngtrans.obj \
97 ..\png\$D\pngwrite.obj \
98 ..\png\$D\pngwtran.obj \
99 ..\png\$D\pngwutil.obj \
100 ..\png\$D\pngerror.obj \
101 ..\png\$D\pngmem.obj \
102 ..\png\$D\pngwio.obj \
103 ..\png\$D\pngrio.obj \
104 ..\png\$D\pngget.obj \
105 ..\png\$D\pngset.obj
106
107all: $(OS2PNGLIB)
108
109!if "$(WXMAKINGDLL)" != "1"
110
111$(WXDIR)\lib\os2png.lib: $(OBJECTS)
112 touch $(WXDIR)\lib\os2png.lib
113 del $(WXDIR)\lib\os2png.lib
114 ilib $(OS2LIBFLAGS) $@ @<<
115 $**;
116<<
117
118!else
119
120# Update the dynamic link library
121$(WXDIR)\lib\os2png.dll: $(OBJECTS)
122 icc @<<
123 /B" $(LINKFLAGS)" /Fe$@
124 $(LIBS)
125 $(OBJECTS)
126 $(WXDIR)\src\os2\os2png.def
127<<
128 implib $(WXDIR)\lib\os2pngd.lib $(WXDIR)\src\os2\os2png.def
129
130!endif
131
132clean:
133 del $(OS2PNGLIB)
134 erase /N $(OS2PNGDIR)\$D
135 rd $(OS2PNGDIR)\$D
136
137cleanall: clean
138