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 # =========================================================================
7 !include <../../../../build/msw/config.vc>
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 STUDIO_CXXFLAGS = $(CPPFLAGS) /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
20 $(__DEBUGINFO_0) /Fd$(OBJS)\studio.pdb $(____DEBUGRUNTIME_2_p) \
21 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
22 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\..\include \
23 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\..\samples \
24 /I.\..\..\..\include $(CXXFLAGS) /GR /GX
26 $(OBJS)\studio_studio.obj \
27 $(OBJS)\studio_doc.obj \
28 $(OBJS)\studio_shapes.obj \
29 $(OBJS)\studio_symbols.obj \
30 $(OBJS)\studio_view.obj \
31 $(OBJS)\studio_cspalette.obj \
32 $(OBJS)\studio_mainfrm.obj \
33 $(OBJS)\studio_project.obj \
34 $(OBJS)\studio_dialogs.obj \
35 $(OBJS)\studio_csprint.obj \
36 $(OBJS)\studio_studio.res
38 ### Conditionally set variables: ###
40 !if "$(SHARED)" == "0"
41 LIBDIRNAME = .\..\..\..\..\lib\vc_lib$(CFG)
43 !if "$(SHARED)" == "1"
44 LIBDIRNAME = .\..\..\..\..\lib\vc_dll$(CFG)
46 !if "$(USE_GUI)" == "0"
49 !if "$(USE_GUI)" == "1"
52 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
55 !if "$(DEBUG_FLAG)" == "1"
58 !if "$(SHARED)" == "1"
61 !if "$(UNICODE)" == "1"
64 !if "$(WXUNIV)" == "1"
67 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
70 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
73 !if "$(DEBUG_INFO)" == "0"
76 !if "$(DEBUG_INFO)" == "1"
79 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
80 __DEBUGINFO_1 = /DEBUG
82 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
85 !if "$(DEBUG_INFO)" == "0"
88 !if "$(DEBUG_INFO)" == "1"
89 __DEBUGINFO_1 = /DEBUG
91 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
94 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
97 !if "$(DEBUG_INFO)" == "0"
100 !if "$(DEBUG_INFO)" == "1"
103 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
106 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
109 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
110 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
112 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
113 __DEBUG_DEFINE_p = /D__WXDEBUG__
115 !if "$(DEBUG_FLAG)" == "1"
116 __DEBUG_DEFINE_p = /D__WXDEBUG__
118 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
119 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
121 !if "$(DEBUG_FLAG)" == "1"
122 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
124 !if "$(SHARED)" == "1"
125 __DLLFLAG_p = /DWXUSINGDLL
127 !if "$(SHARED)" == "1"
128 __DLLFLAG_p_1 = /d WXUSINGDLL
130 !if "$(USE_GUI)" == "1"
131 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
133 !if "$(USE_GUI)" == "1"
134 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
136 !if "$(USE_GUI)" == "1"
137 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
139 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
140 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
142 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
143 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
145 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
146 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
148 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
149 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
151 !if "$(BUILD)" == "debug"
152 __OPTIMIZEFLAG_4 = /Od
154 !if "$(BUILD)" == "release"
155 __OPTIMIZEFLAG_4 = /O2
157 !if "$(RUNTIME_LIBS)" == "dynamic"
160 !if "$(RUNTIME_LIBS)" == "static"
163 !if "$(UNICODE)" == "1"
164 __UNICODE_DEFINE_p = /D_UNICODE
166 !if "$(UNICODE)" == "1"
167 __UNICODE_DEFINE_p_1 = /d _UNICODE
170 __UNICOWS_LIB_p = unicows.lib
172 !if "$(MONOLITHIC)" == "0"
174 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv.lib
176 !if "$(MONOLITHIC)" == "0"
177 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
179 !if "$(MONOLITHIC)" == "0"
181 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
183 !if "$(MONOLITHIC)" == "0"
185 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
187 !if "$(MONOLITHIC)" == "1"
189 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
191 !if "$(WXUNIV)" == "1"
192 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
194 !if "$(WXUNIV)" == "1"
195 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
197 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
198 ____DEBUGINFO_2_p = /D_DEBUG
200 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
203 !if "$(DEBUG_INFO)" == "0"
206 !if "$(DEBUG_INFO)" == "1"
207 ____DEBUGINFO_2_p = /D_DEBUG
209 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
210 ____DEBUGINFO_2_p_1 = /d _DEBUG
212 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
213 ____DEBUGINFO_2_p_1 =
215 !if "$(DEBUG_INFO)" == "0"
216 ____DEBUGINFO_2_p_1 =
218 !if "$(DEBUG_INFO)" == "1"
219 ____DEBUGINFO_2_p_1 = /d _DEBUG
221 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
222 ____DEBUGRUNTIME_2_p =
224 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
225 ____DEBUGRUNTIME_2_p = /D_DEBUG
227 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
228 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
230 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
231 ____DEBUGRUNTIME_2_p_1 =
233 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
234 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
236 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
237 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
243 -if not exist $(OBJS) mkdir $(OBJS)
247 all: $(OBJS)\studio.exe data
249 $(OBJS)\studio_cspalette.obj: .\cspalette.cpp
250 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
252 $(OBJS)\studio_csprint.obj: .\csprint.cpp
253 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
255 $(OBJS)\studio_dialogs.obj: .\dialogs.cpp
256 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
258 $(OBJS)\studio_doc.obj: .\doc.cpp
259 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
261 $(OBJS)\studio_mainfrm.obj: .\mainfrm.cpp
262 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
264 $(OBJS)\studio_project.obj: .\project.cpp
265 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
267 $(OBJS)\studio_shapes.obj: .\shapes.cpp
268 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
270 $(OBJS)\studio_studio.obj: .\studio.cpp
271 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
273 $(OBJS)\studio_studio.res: .\studio.rc
274 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_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 $**
276 $(OBJS)\studio_symbols.obj: .\symbols.cpp
277 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
279 $(OBJS)\studio_view.obj: .\view.cpp
280 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
283 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
284 -if exist $(OBJS)\*.res del $(OBJS)\*.res
285 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
286 -if exist $(OBJS)\studio.ilk del $(OBJS)\studio.ilk
287 -if exist $(OBJS)\studio.pdb del $(OBJS)\studio.pdb
290 if not exist $(OBJS) mkdir $(OBJS)
291 for %f in (studio_resources.wxr) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
293 $(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio.res
294 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
295 $(STUDIO_OBJECTS) wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl.lib wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_deprecated.lib $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__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 oleacc.lib