]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/ogl/makefile.vc
Fixes to allow OGL building as a DLL
[wxWidgets.git] / contrib / build / ogl / makefile.vc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 !include <../../../build/config.vc>
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 OBJS = vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
16 OGLDLL_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGFLAG_3) /DWIN32 $(__DEBUGFLAG) /Fd..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).pdb $(____DEBUGFLAG) $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I..\..\src\ogl\..\..\..\include /I..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /I..\..\src\ogl\..\..\..\src\tiff /I..\..\src\ogl\..\..\..\src\jpeg /I..\..\src\ogl\..\..\..\src\png /I..\..\src\ogl\..\..\..\src\zlib /I..\..\src\ogl\..\..\..\src\regex /I..\..\src\ogl\..\..\..\src\expat\lib /Fp$(OBJS)\wxprec_ogldll.pch /I..\..\src\ogl\..\..\include /DWXUSINGDLL /DWXMAKINGDLL_OGL $(CXXFLAGS) /Yuwx/wxprec.h
17 OGLLIB_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS)$(__DEBUGFLAG_3) /DWIN32 $(__DEBUGFLAG) /Fd..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.pdb $(____DEBUGFLAG) $(__OPTIMIZEFLAG) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I..\..\src\ogl\..\..\..\include /I..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) /I..\..\src\ogl\..\..\..\src\tiff /I..\..\src\ogl\..\..\..\src\jpeg /I..\..\src\ogl\..\..\..\src\png /I..\..\src\ogl\..\..\..\src\zlib /I..\..\src\ogl\..\..\..\src\regex /I..\..\src\ogl\..\..\..\src\expat\lib /Fp$(OBJS)\wxprec_ogllib.pch /I..\..\src\ogl\..\..\include $(CXXFLAGS) /Yuwx/wxprec.h
18
19 ### Conditionally set variables: ###
20
21 !if "$(USE_GUI)" == "0"
22 PORTNAME = base
23 !endif
24 !if "$(USE_GUI)" == "1"
25 PORTNAME = msw
26 !endif
27 !if "$(OFFICIAL_BUILD)" == "0"
28 VENDORTAG = _$(VENDOR)
29 !endif
30 !if "$(OFFICIAL_BUILD)" == "1"
31 VENDORTAG =
32 !endif
33 !if "$(BUILD)" == "debug"
34 WXDEBUGFLAG = d
35 !endif
36 !if "$(SHARED)" == "1"
37 WXDLLFLAG = dll
38 !endif
39 !if "$(UNICODE)" == "1"
40 WXUNICODEFLAG = u
41 !endif
42 !if "$(WXUNIV)" == "1"
43 WXUNIVNAME = univ
44 !endif
45 !if "$(BUILD)" == "debug"
46 __DEBUGFLAG = /Zi
47 !endif
48 !if "$(BUILD)" == "release"
49 __DEBUGFLAG =
50 !endif
51 !if "$(BUILD)" == "debug"
52 __DEBUGFLAG_1 = /DEBUG
53 !endif
54 !if "$(BUILD)" == "release"
55 __DEBUGFLAG_1 =
56 !endif
57 !if "$(BUILD)" == "debug"
58 __DEBUGFLAG_3 = d
59 !endif
60 !if "$(BUILD)" == "release"
61 __DEBUGFLAG_3 =
62 !endif
63 !if "$(BUILD)" == "debug"
64 __DEBUG_DEFINE_p = /D__WXDEBUG__
65 !endif
66 !if "$(BUILD)" == "debug"
67 __OPTIMIZEFLAG = /Od
68 !endif
69 !if "$(BUILD)" == "release"
70 __OPTIMIZEFLAG = /O2
71 !endif
72 !if "$(RUNTIME_LIBS)" == "dynamic"
73 __RUNTIME_LIBS = D
74 !endif
75 !if "$(RUNTIME_LIBS)" == "static"
76 __RUNTIME_LIBS = T
77 !endif
78 !if "$(UNICODE)" == "1"
79 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
80 !endif
81 !if "$(MONOLITHIC)" == "0"
82 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
83 !endif
84 !if "$(MONOLITHIC)" == "0"
85 __WXLIB_CORE_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
86 !endif
87 !if "$(MONOLITHIC)" == "1"
88 __WXLIB_MONO_p = wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
89 !endif
90 !if "$(WXUNIV)" == "1"
91 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
92 !endif
93 !if "$(BUILD)" == "debug"
94 ____DEBUGFLAG = /D_DEBUG
95 !endif
96 !if "$(BUILD)" == "release"
97 ____DEBUGFLAG = /DNDEBUG
98 !endif
99 !if "$(SHARED)" == "1"
100 __ogldll___depname = ..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).dll
101 !endif
102 !if "$(SHARED)" == "0"
103 __ogllib___depname = ..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
104 !endif
105
106
107 all: $(OBJS)
108 $(OBJS):
109 -if not exist $(OBJS) mkdir $(OBJS)
110
111 ### Targets: ###
112
113 all: $(__ogldll___depname) $(__ogllib___depname)
114
115 $(OBJS)\ogldll_basic.obj: ../../src/ogl\basic.cpp
116 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
117
118 $(OBJS)\ogldll_basic2.obj: ../../src/ogl\basic2.cpp
119 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
120
121 $(OBJS)\ogldll_bmpshape.obj: ../../src/ogl\bmpshape.cpp
122 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
123
124 $(OBJS)\ogldll_canvas.obj: ../../src/ogl\canvas.cpp
125 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
126
127 $(OBJS)\ogldll_composit.obj: ../../src/ogl\composit.cpp
128 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
129
130 $(OBJS)\ogldll_constrnt.obj: ../../src/ogl\constrnt.cpp
131 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
132
133 $(OBJS)\ogldll_divided.obj: ../../src/ogl\divided.cpp
134 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
135
136 $(OBJS)\ogldll_drawn.obj: ../../src/ogl\drawn.cpp
137 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
138
139 $(OBJS)\ogldll_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
140 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) /Ycwx/wxprec.h $**
141
142 $(OBJS)\ogldll_lines.obj: ../../src/ogl\lines.cpp
143 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
144
145 $(OBJS)\ogldll_mfutils.obj: ../../src/ogl\mfutils.cpp
146 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
147
148 $(OBJS)\ogldll_ogldiag.obj: ../../src/ogl\ogldiag.cpp
149 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
150
151 $(OBJS)\ogldll_oglmisc.obj: ../../src/ogl\oglmisc.cpp
152 $(CXX) /c /nologo /TP /Fo$@ $(OGLDLL_CXXFLAGS) $**
153
154 $(OBJS)\ogllib_basic.obj: ../../src/ogl\basic.cpp
155 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
156
157 $(OBJS)\ogllib_basic2.obj: ../../src/ogl\basic2.cpp
158 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
159
160 $(OBJS)\ogllib_bmpshape.obj: ../../src/ogl\bmpshape.cpp
161 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
162
163 $(OBJS)\ogllib_canvas.obj: ../../src/ogl\canvas.cpp
164 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
165
166 $(OBJS)\ogllib_composit.obj: ../../src/ogl\composit.cpp
167 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
168
169 $(OBJS)\ogllib_constrnt.obj: ../../src/ogl\constrnt.cpp
170 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
171
172 $(OBJS)\ogllib_divided.obj: ../../src/ogl\divided.cpp
173 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
174
175 $(OBJS)\ogllib_drawn.obj: ../../src/ogl\drawn.cpp
176 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
177
178 $(OBJS)\ogllib_dummy.obj: ../../src/ogl\..\..\..\src\msw\dummy.cpp
179 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) /Ycwx/wxprec.h $**
180
181 $(OBJS)\ogllib_lines.obj: ../../src/ogl\lines.cpp
182 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
183
184 $(OBJS)\ogllib_mfutils.obj: ../../src/ogl\mfutils.cpp
185 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
186
187 $(OBJS)\ogllib_ogldiag.obj: ../../src/ogl\ogldiag.cpp
188 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
189
190 $(OBJS)\ogllib_oglmisc.obj: ../../src/ogl\oglmisc.cpp
191 $(CXX) /c /nologo /TP /Fo$@ $(OGLLIB_CXXFLAGS) $**
192
193 clean:
194 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
195 -if exist $(OBJS)\*.res del $(OBJS)\*.res
196 -if exist ..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).dll del ..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).dll
197 -if exist ..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del ..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
198 -if exist ..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib del ..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
199
200 !if "$(SHARED)" == "1"
201 ..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl_vc$(VENDORTAG).dll: $(OBJS)\ogldll_dummy.obj $(OBJS)\ogldll_dummy.obj $(OBJS)\ogldll_basic2.obj $(OBJS)\ogldll_canvas.obj $(OBJS)\ogldll_divided.obj $(OBJS)\ogldll_mfutils.obj $(OBJS)\ogldll_oglmisc.obj $(OBJS)\ogldll_basic.obj $(OBJS)\ogldll_composit.obj $(OBJS)\ogldll_drawn.obj $(OBJS)\ogldll_bmpshape.obj $(OBJS)\ogldll_constrnt.obj $(OBJS)\ogldll_lines.obj $(OBJS)\ogldll_ogldiag.obj
202 link /DLL /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGFLAG_1) /LIBPATH:..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) @<<
203 $(OBJS)\ogldll_dummy.obj $(OBJS)\ogldll_basic2.obj $(OBJS)\ogldll_canvas.obj $(OBJS)\ogldll_divided.obj $(OBJS)\ogldll_mfutils.obj $(OBJS)\ogldll_oglmisc.obj $(OBJS)\ogldll_basic.obj $(OBJS)\ogldll_composit.obj $(OBJS)\ogldll_drawn.obj $(OBJS)\ogldll_bmpshape.obj $(OBJS)\ogldll_constrnt.obj $(OBJS)\ogldll_lines.obj $(OBJS)\ogldll_ogldiag.obj $(__WXLIB_MONO_p) wxtiff$(WXDEBUGFLAG).lib wxjpeg$(WXDEBUGFLAG).lib wxpng$(WXDEBUGFLAG).lib wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) /IMPLIB:..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib
204 <<
205 !endif
206
207 !if "$(SHARED)" == "0"
208 ..\..\src\ogl\..\..\..\lib\vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib: $(OBJS)\ogllib_dummy.obj $(OBJS)\ogllib_dummy.obj $(OBJS)\ogllib_basic2.obj $(OBJS)\ogllib_canvas.obj $(OBJS)\ogllib_divided.obj $(OBJS)\ogllib_mfutils.obj $(OBJS)\ogllib_oglmisc.obj $(OBJS)\ogllib_basic.obj $(OBJS)\ogllib_composit.obj $(OBJS)\ogllib_drawn.obj $(OBJS)\ogllib_bmpshape.obj $(OBJS)\ogllib_constrnt.obj $(OBJS)\ogllib_lines.obj $(OBJS)\ogllib_ogldiag.obj
209 if exist $@ del $@
210 lib /NOLOGO /OUT:$@ @<<
211 $(OBJS)\ogllib_dummy.obj $(OBJS)\ogllib_basic2.obj $(OBJS)\ogllib_canvas.obj $(OBJS)\ogllib_divided.obj $(OBJS)\ogllib_mfutils.obj $(OBJS)\ogllib_oglmisc.obj $(OBJS)\ogllib_basic.obj $(OBJS)\ogllib_composit.obj $(OBJS)\ogllib_drawn.obj $(OBJS)\ogllib_bmpshape.obj $(OBJS)\ogllib_constrnt.obj $(OBJS)\ogllib_lines.obj $(OBJS)\ogllib_ogldiag.obj
212 <<
213 !endif