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 = /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 $(__EXCEPTIONSFLAG_8) $(__EXCEPTIONSFLAG_9) \
25 $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\studio_studio.obj \
28 $(OBJS)\studio_doc.obj \
29 $(OBJS)\studio_shapes.obj \
30 $(OBJS)\studio_symbols.obj \
31 $(OBJS)\studio_view.obj \
32 $(OBJS)\studio_cspalette.obj \
33 $(OBJS)\studio_mainfrm.obj \
34 $(OBJS)\studio_project.obj \
35 $(OBJS)\studio_dialogs.obj \
36 $(OBJS)\studio_csprint.obj \
37 $(OBJS)\studio_studio.res
39 ### Conditionally set variables: ###
41 !if "$(SHARED)" == "0"
42 LIBDIRNAME = .\..\..\..\..\lib\vc_lib$(CFG)
44 !if "$(SHARED)" == "1"
45 LIBDIRNAME = .\..\..\..\..\lib\vc_dll$(CFG)
47 !if "$(USE_GUI)" == "0"
50 !if "$(USE_GUI)" == "1"
53 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
56 !if "$(DEBUG_FLAG)" == "1"
59 !if "$(SHARED)" == "1"
62 !if "$(UNICODE)" == "1"
65 !if "$(WXUNIV)" == "1"
68 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
71 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
74 !if "$(DEBUG_INFO)" == "0"
77 !if "$(DEBUG_INFO)" == "1"
80 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
81 __DEBUGINFO_1 = /DEBUG
83 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
86 !if "$(DEBUG_INFO)" == "0"
89 !if "$(DEBUG_INFO)" == "1"
90 __DEBUGINFO_1 = /DEBUG
92 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
95 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
98 !if "$(DEBUG_INFO)" == "0"
101 !if "$(DEBUG_INFO)" == "1"
104 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
107 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
110 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
111 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
113 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
114 __DEBUG_DEFINE_p = /D__WXDEBUG__
116 !if "$(DEBUG_FLAG)" == "1"
117 __DEBUG_DEFINE_p = /D__WXDEBUG__
119 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
120 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
122 !if "$(DEBUG_FLAG)" == "1"
123 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
125 !if "$(SHARED)" == "1"
126 __DLLFLAG_p = /DWXUSINGDLL
128 !if "$(SHARED)" == "1"
129 __DLLFLAG_p_1 = /d WXUSINGDLL
131 !if "$(USE_EXCEPTIONS)" == "0"
134 !if "$(USE_EXCEPTIONS)" == "1"
135 __EXCEPTIONSFLAG_8 = /GR
137 !if "$(USE_EXCEPTIONS)" == "0"
140 !if "$(USE_EXCEPTIONS)" == "1"
141 __EXCEPTIONSFLAG_9 = /GX
143 !if "$(USE_GUI)" == "1"
144 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
146 !if "$(USE_GUI)" == "1"
147 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
149 !if "$(USE_GUI)" == "1"
150 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
152 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
153 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
155 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
156 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
158 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
159 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
161 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
162 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
164 !if "$(BUILD)" == "debug"
165 __OPTIMIZEFLAG_4 = /Od
167 !if "$(BUILD)" == "release"
168 __OPTIMIZEFLAG_4 = /O2
170 !if "$(RUNTIME_LIBS)" == "dynamic"
173 !if "$(RUNTIME_LIBS)" == "static"
176 !if "$(UNICODE)" == "1"
177 __UNICODE_DEFINE_p = /D_UNICODE
179 !if "$(UNICODE)" == "1"
180 __UNICODE_DEFINE_p_1 = /d _UNICODE
183 __UNICOWS_LIB_p = unicows.lib
185 !if "$(MONOLITHIC)" == "0"
187 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv.lib
189 !if "$(MONOLITHIC)" == "0"
190 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
192 !if "$(MONOLITHIC)" == "0"
194 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
196 !if "$(MONOLITHIC)" == "0"
198 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
200 !if "$(MONOLITHIC)" == "1"
202 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
204 !if "$(WXUNIV)" == "1"
205 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
207 !if "$(WXUNIV)" == "1"
208 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
210 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
211 ____DEBUGINFO_2_p = /D_DEBUG
213 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
216 !if "$(DEBUG_INFO)" == "0"
219 !if "$(DEBUG_INFO)" == "1"
220 ____DEBUGINFO_2_p = /D_DEBUG
222 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
223 ____DEBUGINFO_2_p_1 = /d _DEBUG
225 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
226 ____DEBUGINFO_2_p_1 =
228 !if "$(DEBUG_INFO)" == "0"
229 ____DEBUGINFO_2_p_1 =
231 !if "$(DEBUG_INFO)" == "1"
232 ____DEBUGINFO_2_p_1 = /d _DEBUG
234 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
235 ____DEBUGRUNTIME_2_p =
237 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
238 ____DEBUGRUNTIME_2_p = /D_DEBUG
240 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
241 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
243 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
244 ____DEBUGRUNTIME_2_p_1 =
246 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
247 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
249 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
250 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
256 -if not exist $(OBJS) mkdir $(OBJS)
260 all: $(OBJS)\studio.exe data
262 $(OBJS)\studio_cspalette.obj: .\cspalette.cpp
263 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
265 $(OBJS)\studio_csprint.obj: .\csprint.cpp
266 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
268 $(OBJS)\studio_dialogs.obj: .\dialogs.cpp
269 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
271 $(OBJS)\studio_doc.obj: .\doc.cpp
272 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
274 $(OBJS)\studio_mainfrm.obj: .\mainfrm.cpp
275 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
277 $(OBJS)\studio_project.obj: .\project.cpp
278 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
280 $(OBJS)\studio_shapes.obj: .\shapes.cpp
281 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
283 $(OBJS)\studio_studio.obj: .\studio.cpp
284 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
286 $(OBJS)\studio_studio.res: .\studio.rc
287 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 $**
289 $(OBJS)\studio_symbols.obj: .\symbols.cpp
290 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
292 $(OBJS)\studio_view.obj: .\view.cpp
293 $(CXX) /c /nologo /TP /Fo$@ $(STUDIO_CXXFLAGS) $**
296 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
297 -if exist $(OBJS)\*.res del $(OBJS)\*.res
298 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
299 -if exist $(OBJS)\studio.ilk del $(OBJS)\studio.ilk
300 -if exist $(OBJS)\studio.pdb del $(OBJS)\studio.pdb
303 if not exist $(OBJS) mkdir $(OBJS)
304 for %f in (studio_resources.wxr) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
306 $(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio.res
307 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
308 $(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