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)
17 OGLEDIT_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) \
20 $(__UNICODE_DEFINE_p) /I.\..\..\..\..\include /I$(SETUPHDIR) /I. \
21 $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\..\samples /I.\..\..\..\include \
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
36 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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"
140 __OPTIMIZEFLAG_4 = /Od
142 !if "$(BUILD)" == "release"
143 __OPTIMIZEFLAG_4 = /O2
145 !if "$(RUNTIME_LIBS)" == "dynamic"
148 !if "$(RUNTIME_LIBS)" == "static"
151 !if "$(UNICODE)" == "1"
152 __UNICODE_DEFINE_p = /DwxUSE_UNICODE=1
154 !if "$(UNICODE)" == "1"
155 __UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=1
158 __UNICOWS_LIB_p = unicows.lib
160 !if "$(MONOLITHIC)" == "0"
161 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
163 !if "$(MONOLITHIC)" == "0"
165 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
167 !if "$(MONOLITHIC)" == "1"
169 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
171 !if "$(WXUNIV)" == "1"
172 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
174 !if "$(WXUNIV)" == "1"
175 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
177 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
178 ____DEBUGINFO_2_p = /D_DEBUG
180 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
183 !if "$(DEBUG_INFO)" == "0"
186 !if "$(DEBUG_INFO)" == "1"
187 ____DEBUGINFO_2_p = /D_DEBUG
189 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
190 ____DEBUGINFO_2_p_1 = /d _DEBUG
192 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
193 ____DEBUGINFO_2_p_1 =
195 !if "$(DEBUG_INFO)" == "0"
196 ____DEBUGINFO_2_p_1 =
198 !if "$(DEBUG_INFO)" == "1"
199 ____DEBUGINFO_2_p_1 = /d _DEBUG
201 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
202 ____DEBUGRUNTIME_2_p =
204 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
205 ____DEBUGRUNTIME_2_p = /D_DEBUG
207 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
208 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
210 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
211 ____DEBUGRUNTIME_2_p_1 =
213 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
214 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
216 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
217 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
223 -if not exist $(OBJS) mkdir $(OBJS)
227 all: $(OBJS)\ogledit.exe data
229 $(OBJS)\ogledit_cspalette.obj: .\cspalette.cpp
230 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
232 $(OBJS)\ogledit_csprint.obj: .\csprint.cpp
233 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
235 $(OBJS)\ogledit_dialogs.obj: .\dialogs.cpp
236 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
238 $(OBJS)\ogledit_doc.obj: .\doc.cpp
239 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
241 $(OBJS)\ogledit_mainfrm.obj: .\mainfrm.cpp
242 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
244 $(OBJS)\ogledit_project.obj: .\project.cpp
245 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
247 $(OBJS)\ogledit_shapes.obj: .\shapes.cpp
248 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
250 $(OBJS)\ogledit_studio.obj: .\studio.cpp
251 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
253 $(OBJS)\ogledit_studio.res: .\studio.rc
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 $**
256 $(OBJS)\ogledit_symbols.obj: .\symbols.cpp
257 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
259 $(OBJS)\ogledit_view.obj: .\view.cpp
260 $(CXX) /c /nologo /TP /Fo$@ $(OGLEDIT_CXXFLAGS) $**
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
268 if not exist $(OBJS) mkdir $(OBJS)
269 for %f in (studio_resources.wxr) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
271 $(OBJS)\ogledit.exe: $(OGLEDIT_OBJECTS) $(OBJS)\ogledit_studio.res
272 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
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