]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/ogl/studio/makefile.vc
wxMutexGuiEnter/Leave didn't work because this file is compiled with wxUSE_GUI=0
[wxWidgets.git] / contrib / samples / ogl / studio / makefile.vc
CommitLineData
fd9f42b6
VS
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# =========================================================================
1fc25a89 6
fd9f42b6 7!include <../../../../build/msw/config.vc>
1fc25a89 8
fd9f42b6
VS
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
1fc25a89 12
fd9f42b6
VS
13### Variables: ###
14
fd9f42b6
VS
15OBJS = \
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17OGLEDIT_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) \
18 /DWIN32 $(__DEBUGINFO_0) /Fd$(OBJS)\ogledit.pdb $(____DEBUGRUNTIME_2_p) \
19 $(__OPTIMIZEFLAG_4) /D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
75a0a7b7
VS
20 $(__UNICODE_DEFINE_p) /I.\..\..\..\..\include /I$(SETUPHDIR) /I. \
21 $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\..\samples /I.\..\..\..\include \
22 $(CXXFLAGS)
fd9f42b6
VS
23OGLEDIT_OBJECTS = \
24 $(OBJS)\ogledit_studio.obj \
25 $(OBJS)\ogledit_doc.obj \
26 $(OBJS)\ogledit_shapes.obj \
27 $(OBJS)\ogledit_symbols.obj \
28 $(OBJS)\ogledit_view.obj \
29 $(OBJS)\ogledit_cspalette.obj \
30 $(OBJS)\ogledit_mainfrm.obj \
31 $(OBJS)\ogledit_project.obj \
32 $(OBJS)\ogledit_dialogs.obj \
33 $(OBJS)\ogledit_csprint.obj \
34 $(OBJS)\ogledit_studio.res
75a0a7b7
VS
35SETUPHDIR = \
36 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
fd9f42b6
VS
37
38### Conditionally set variables: ###
39
75a0a7b7
VS
40!if "$(SHARED)" == "0"
41LIBDIRNAME = .\..\..\..\..\lib\vc_lib$(CFG)
42!endif
43!if "$(SHARED)" == "1"
44LIBDIRNAME = .\..\..\..\..\lib\vc_dll$(CFG)
45!endif
fd9f42b6
VS
46!if "$(USE_GUI)" == "0"
47PORTNAME = base
48!endif
49!if "$(USE_GUI)" == "1"
50PORTNAME = msw
51!endif
52!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
53WXDEBUGFLAG = d
54!endif
55!if "$(DEBUG_FLAG)" == "1"
56WXDEBUGFLAG = d
57!endif
58!if "$(SHARED)" == "1"
59WXDLLFLAG = dll
60!endif
61!if "$(UNICODE)" == "1"
62WXUNICODEFLAG = u
63!endif
64!if "$(WXUNIV)" == "1"
65WXUNIVNAME = univ
66!endif
67!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
68__DEBUGINFO_0 = /Zi
69!endif
70!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
71__DEBUGINFO_0 =
72!endif
73!if "$(DEBUG_INFO)" == "0"
74__DEBUGINFO_0 =
75!endif
76!if "$(DEBUG_INFO)" == "1"
77__DEBUGINFO_0 = /Zi
78!endif
79!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
80__DEBUGINFO_1 = /DEBUG
81!endif
82!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
83__DEBUGINFO_1 =
84!endif
85!if "$(DEBUG_INFO)" == "0"
86__DEBUGINFO_1 =
87!endif
88!if "$(DEBUG_INFO)" == "1"
89__DEBUGINFO_1 = /DEBUG
90!endif
91!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
92__DEBUGINFO_3 = d
93!endif
94!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
95__DEBUGINFO_3 =
96!endif
97!if "$(DEBUG_INFO)" == "0"
98__DEBUGINFO_3 =
99!endif
100!if "$(DEBUG_INFO)" == "1"
101__DEBUGINFO_3 = d
102!endif
103!if "$(DEBUG_RUNTIME_LIBS)" == "0"
104__DEBUGRUNTIME_3 =
105!endif
106!if "$(DEBUG_RUNTIME_LIBS)" == "1"
107__DEBUGRUNTIME_3 = d
108!endif
109!if "$(DEBUG_RUNTIME_LIBS)" == "default"
110__DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
111!endif
112!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
113__DEBUG_DEFINE_p = /D__WXDEBUG__
114!endif
115!if "$(DEBUG_FLAG)" == "1"
116__DEBUG_DEFINE_p = /D__WXDEBUG__
117!endif
118!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
119__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
120!endif
121!if "$(DEBUG_FLAG)" == "1"
122__DEBUG_DEFINE_p_1 = /d __WXDEBUG__
123!endif
124!if "$(SHARED)" == "1"
125__DLLFLAG_p = /DWXUSINGDLL
126!endif
127!if "$(SHARED)" == "1"
128__DLLFLAG_p_1 = /d WXUSINGDLL
129!endif
130!if "$(USE_GUI)" == "1"
131__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
132!endif
133!if "$(USE_GUI)" == "1"
134__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
135!endif
136!if "$(USE_GUI)" == "1"
137__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
138!endif
139!if "$(BUILD)" == "debug"
140__OPTIMIZEFLAG_4 = /Od
141!endif
142!if "$(BUILD)" == "release"
143__OPTIMIZEFLAG_4 = /O2
144!endif
145!if "$(RUNTIME_LIBS)" == "dynamic"
146__RUNTIME_LIBS_7 = D
147!endif
148!if "$(RUNTIME_LIBS)" == "static"
149__RUNTIME_LIBS_7 = T
1fc25a89 150!endif
fd9f42b6
VS
151!if "$(UNICODE)" == "1"
152__UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
153!endif
154!if "$(UNICODE)" == "1"
155__UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=1
156!endif
2265a2d5
VS
157!if "$(MSLU)" == "1"
158__UNICOWS_LIB_p = unicows.lib
159!endif
fd9f42b6
VS
160!if "$(MONOLITHIC)" == "0"
161__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
162!endif
163!if "$(MONOLITHIC)" == "0"
164__WXLIB_CORE_p = \
165 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
166!endif
167!if "$(MONOLITHIC)" == "1"
168__WXLIB_MONO_p = \
169 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
170!endif
171!if "$(WXUNIV)" == "1"
172__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
173!endif
174!if "$(WXUNIV)" == "1"
175__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
176!endif
177!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
178____DEBUGINFO_2_p = /D_DEBUG
179!endif
180!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
181____DEBUGINFO_2_p =
182!endif
183!if "$(DEBUG_INFO)" == "0"
184____DEBUGINFO_2_p =
185!endif
186!if "$(DEBUG_INFO)" == "1"
187____DEBUGINFO_2_p = /D_DEBUG
188!endif
189!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
190____DEBUGINFO_2_p_1 = /d _DEBUG
191!endif
192!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
193____DEBUGINFO_2_p_1 =
194!endif
195!if "$(DEBUG_INFO)" == "0"
196____DEBUGINFO_2_p_1 =
197!endif
198!if "$(DEBUG_INFO)" == "1"
199____DEBUGINFO_2_p_1 = /d _DEBUG
200!endif
201!if "$(DEBUG_RUNTIME_LIBS)" == "0"
202____DEBUGRUNTIME_2_p =
203!endif
204!if "$(DEBUG_RUNTIME_LIBS)" == "1"
205____DEBUGRUNTIME_2_p = /D_DEBUG
206!endif
207!if "$(DEBUG_RUNTIME_LIBS)" == "default"
208____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
209!endif
210!if "$(DEBUG_RUNTIME_LIBS)" == "0"
211____DEBUGRUNTIME_2_p_1 =
212!endif
213!if "$(DEBUG_RUNTIME_LIBS)" == "1"
214____DEBUGRUNTIME_2_p_1 = /d _DEBUG
215!endif
216!if "$(DEBUG_RUNTIME_LIBS)" == "default"
217____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
218!endif
219
220
221all: $(OBJS)
222$(OBJS):
223 -if not exist $(OBJS) mkdir $(OBJS)
224
225### Targets: ###
226
227all: $(OBJS)\ogledit.exe data
228
229$(OBJS)\ogledit_cspalette.obj: .\cspalette.cpp
230 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
231
232$(OBJS)\ogledit_csprint.obj: .\csprint.cpp
233 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
234
235$(OBJS)\ogledit_dialogs.obj: .\dialogs.cpp
236 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
237
238$(OBJS)\ogledit_doc.obj: .\doc.cpp
239 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
240
241$(OBJS)\ogledit_mainfrm.obj: .\mainfrm.cpp
242 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
243
244$(OBJS)\ogledit_project.obj: .\project.cpp
245 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
246
247$(OBJS)\ogledit_shapes.obj: .\shapes.cpp
248 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
249
250$(OBJS)\ogledit_studio.obj: .\studio.cpp
251 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
252
253$(OBJS)\ogledit_studio.res: .\studio.rc
75a0a7b7 254 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i .\..\..\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\..\..\samples /i .\..\..\..\include $**
fd9f42b6
VS
255
256$(OBJS)\ogledit_symbols.obj: .\symbols.cpp
257 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
258
259$(OBJS)\ogledit_view.obj: .\view.cpp
260 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
1fc25a89 261
fd9f42b6
VS
262clean:
263 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
264 -if exist $(OBJS)\*.res del $(OBJS)\*.res
265 -if exist $(OBJS)\ogledit.exe del $(OBJS)\ogledit.exe
1fc25a89 266
fd9f42b6
VS
267data:
268 if not exist $(OBJS) mkdir $(OBJS)
269 for %f in (studio_resources.wxr) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
1fc25a89 270
fd9f42b6 271$(OBJS)\ogledit.exe: $(OGLEDIT_OBJECTS) $(OBJS)\ogledit_studio.res
75a0a7b7 272 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
2265a2d5 273 $(OGLEDIT_OBJECTS) wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) 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
fd9f42b6 274<<