1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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 # -------------------------------------------------------------------------
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 HELPVIEW_CXXFLAGS = /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
21 $(__DEBUGINFO_0) /Fd$(OBJS)\helpview.pdb $(____DEBUGRUNTIME_2_p) \
22 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
24 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\..\samples /DNOPCH \
25 $(__EXCEPTIONSFLAG_8) $(__EXCEPTIONSFLAG_9) $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\helpview_helpview.obj \
28 $(OBJS)\helpview_helpview.res
30 ### Conditionally set variables: ###
32 !if "$(USE_GUI)" == "0"
35 !if "$(USE_GUI)" == "1"
38 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
41 !if "$(DEBUG_FLAG)" == "1"
44 !if "$(UNICODE)" == "1"
47 !if "$(WXUNIV)" == "1"
50 !if "$(SHARED)" == "1"
53 !if "$(MONOLITHIC)" == "0"
56 !if "$(MONOLITHIC)" == "1"
59 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
62 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
65 !if "$(DEBUG_INFO)" == "0"
68 !if "$(DEBUG_INFO)" == "1"
71 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
72 __DEBUGINFO_1 = /DEBUG
74 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
77 !if "$(DEBUG_INFO)" == "0"
80 !if "$(DEBUG_INFO)" == "1"
81 __DEBUGINFO_1 = /DEBUG
83 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
84 ____DEBUGRUNTIME_2_p =
86 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
87 ____DEBUGRUNTIME_2_p = /D_DEBUG
89 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
90 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
92 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
93 ____DEBUGINFO_2_p = /D_DEBUG
95 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
98 !if "$(DEBUG_INFO)" == "0"
101 !if "$(DEBUG_INFO)" == "1"
102 ____DEBUGINFO_2_p = /D_DEBUG
104 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
105 ____DEBUGRUNTIME_2_p_1 =
107 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
108 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
110 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
111 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
113 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
114 ____DEBUGINFO_2_p_1 = /d _DEBUG
116 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
117 ____DEBUGINFO_2_p_1 =
119 !if "$(DEBUG_INFO)" == "0"
120 ____DEBUGINFO_2_p_1 =
122 !if "$(DEBUG_INFO)" == "1"
123 ____DEBUGINFO_2_p_1 = /d _DEBUG
125 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
128 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
131 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
132 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
134 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
137 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
140 !if "$(DEBUG_INFO)" == "0"
143 !if "$(DEBUG_INFO)" == "1"
146 !if "$(BUILD)" == "debug"
147 __OPTIMIZEFLAG_4 = /Od
149 !if "$(BUILD)" == "release"
150 __OPTIMIZEFLAG_4 = /O2
152 !if "$(RUNTIME_LIBS)" == "dynamic"
155 !if "$(RUNTIME_LIBS)" == "static"
158 !if "$(USE_EXCEPTIONS)" == "0"
161 !if "$(USE_EXCEPTIONS)" == "1"
162 __EXCEPTIONSFLAG_8 = /GR
164 !if "$(USE_EXCEPTIONS)" == "0"
167 !if "$(USE_EXCEPTIONS)" == "1"
168 __EXCEPTIONSFLAG_9 = /GX
170 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
171 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
173 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
174 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
176 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
177 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
179 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
180 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
182 !if "$(WXUNIV)" == "1"
183 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
185 !if "$(WXUNIV)" == "1"
186 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
188 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
189 __DEBUG_DEFINE_p = /D__WXDEBUG__
191 !if "$(DEBUG_FLAG)" == "1"
192 __DEBUG_DEFINE_p = /D__WXDEBUG__
194 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
195 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
197 !if "$(DEBUG_FLAG)" == "1"
198 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
200 !if "$(UNICODE)" == "1"
201 __UNICODE_DEFINE_p = /D_UNICODE
203 !if "$(UNICODE)" == "1"
204 __UNICODE_DEFINE_p_1 = /d _UNICODE
206 !if "$(SHARED)" == "1"
207 __DLLFLAG_p = /DWXUSINGDLL
209 !if "$(SHARED)" == "1"
210 __DLLFLAG_p_1 = /d WXUSINGDLL
212 !if "$(MONOLITHIC)" == "0"
214 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
216 !if "$(MONOLITHIC)" == "0"
218 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
220 !if "$(MONOLITHIC)" == "0"
222 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
224 !if "$(MONOLITHIC)" == "1"
226 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
228 !if "$(USE_GUI)" == "1"
229 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
231 !if "$(USE_GUI)" == "1"
232 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
234 !if "$(USE_GUI)" == "1"
235 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
238 __UNICOWS_LIB_p = unicows.lib
240 !if "$(SHARED)" == "0"
241 LIBDIRNAME = .\..\..\..\lib\vc_lib$(CFG)
243 !if "$(SHARED)" == "1"
244 LIBDIRNAME = .\..\..\..\lib\vc_dll$(CFG)
250 -if not exist $(OBJS) mkdir $(OBJS)
254 all: $(OBJS)\helpview.exe data
257 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
258 -if exist $(OBJS)\*.res del $(OBJS)\*.res
259 -if exist $(OBJS)\helpview.exe del $(OBJS)\helpview.exe
260 -if exist $(OBJS)\helpview.ilk del $(OBJS)\helpview.ilk
261 -if exist $(OBJS)\helpview.pdb del $(OBJS)\helpview.pdb
263 $(OBJS)\helpview.exe: $(HELPVIEW_OBJECTS) $(OBJS)\helpview_helpview.res
264 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
265 $(HELPVIEW_OBJECTS) $(__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$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib odbc32.lib
269 if not exist $(OBJS) mkdir $(OBJS)
270 for %f in (test.zip) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
272 $(OBJS)\helpview_helpview.obj: .\helpview.cpp
273 $(CXX) /c /nologo /TP /Fo$@ $(HELPVIEW_CXXFLAGS) $**
275 $(OBJS)\helpview_helpview.res: .\helpview.rc
276 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 /d NOPCH $**