]> git.saurik.com Git - wxWidgets.git/blame - utils/HelpGen/src/makefile.vc
Script updates
[wxWidgets.git] / utils / HelpGen / src / makefile.vc
CommitLineData
2ace0078
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
2ace0078
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
8ba95a18 7!include <../../../build/msw/config.vc>
2ace0078
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
c33fae85 15WX_RELEASE_NODOT = 25
b17c1746
DE
16OBJS = \
17 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
20HELPGEN_CXXFLAGS = /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
21 $(__DEBUGINFO_0) /Fd$(OBJS)\HelpGen.pdb $(____DEBUGRUNTIME_2_p) \
ec08d395
JS
22 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\..\include \
9bfe7ad9
VS
24 /I$(SETUPHDIR) /W4 /I. $(__DLLFLAG_p) /D_CONSOLE $(__EXCEPTIONSFLAG_8) \
25 $(__EXCEPTIONSFLAG_9) $(CPPFLAGS) $(CXXFLAGS)
2ace0078
VS
26HELPGEN_OBJECTS = \
27 $(OBJS)\HelpGen_HelpGen.obj \
28 $(OBJS)\HelpGen_cjparser.obj \
29 $(OBJS)\HelpGen_docripper.obj \
30 $(OBJS)\HelpGen_ifcontext.obj \
31 $(OBJS)\HelpGen_markup.obj \
32 $(OBJS)\HelpGen_scriptbinder.obj \
33 $(OBJS)\HelpGen_sourcepainter.obj \
75a0a7b7 34 $(OBJS)\HelpGen_srcparser.obj
2ace0078
VS
35
36### Conditionally set variables: ###
37
38!if "$(USE_GUI)" == "0"
39PORTNAME = base
40!endif
41!if "$(USE_GUI)" == "1"
42PORTNAME = msw
43!endif
44!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
45WXDEBUGFLAG = d
46!endif
47!if "$(DEBUG_FLAG)" == "1"
48WXDEBUGFLAG = d
49!endif
2ace0078
VS
50!if "$(UNICODE)" == "1"
51WXUNICODEFLAG = u
52!endif
53!if "$(WXUNIV)" == "1"
54WXUNIVNAME = univ
55!endif
b17c1746
DE
56!if "$(SHARED)" == "1"
57WXDLLFLAG = dll
58!endif
2ace0078
VS
59!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
60__DEBUGINFO_0 = /Zi
61!endif
62!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
63__DEBUGINFO_0 =
64!endif
65!if "$(DEBUG_INFO)" == "0"
66__DEBUGINFO_0 =
67!endif
68!if "$(DEBUG_INFO)" == "1"
69__DEBUGINFO_0 = /Zi
70!endif
71!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
72__DEBUGINFO_1 = /DEBUG
73!endif
74!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
75__DEBUGINFO_1 =
76!endif
77!if "$(DEBUG_INFO)" == "0"
78__DEBUGINFO_1 =
79!endif
80!if "$(DEBUG_INFO)" == "1"
81__DEBUGINFO_1 = /DEBUG
82!endif
b17c1746
DE
83!if "$(DEBUG_RUNTIME_LIBS)" == "0"
84____DEBUGRUNTIME_2_p =
85!endif
86!if "$(DEBUG_RUNTIME_LIBS)" == "1"
87____DEBUGRUNTIME_2_p = /D_DEBUG
88!endif
89!if "$(DEBUG_RUNTIME_LIBS)" == "default"
90____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
91!endif
2ace0078 92!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
b17c1746 93____DEBUGINFO_2_p = /D_DEBUG
2ace0078
VS
94!endif
95!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
b17c1746 96____DEBUGINFO_2_p =
2ace0078
VS
97!endif
98!if "$(DEBUG_INFO)" == "0"
b17c1746 99____DEBUGINFO_2_p =
2ace0078
VS
100!endif
101!if "$(DEBUG_INFO)" == "1"
b17c1746 102____DEBUGINFO_2_p = /D_DEBUG
2ace0078
VS
103!endif
104!if "$(DEBUG_RUNTIME_LIBS)" == "0"
105__DEBUGRUNTIME_3 =
106!endif
107!if "$(DEBUG_RUNTIME_LIBS)" == "1"
108__DEBUGRUNTIME_3 = d
109!endif
110!if "$(DEBUG_RUNTIME_LIBS)" == "default"
111__DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
112!endif
b17c1746
DE
113!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
114__DEBUGINFO_3 = d
2ace0078 115!endif
b17c1746
DE
116!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
117__DEBUGINFO_3 =
2ace0078 118!endif
b17c1746
DE
119!if "$(DEBUG_INFO)" == "0"
120__DEBUGINFO_3 =
121!endif
122!if "$(DEBUG_INFO)" == "1"
123__DEBUGINFO_3 = d
124!endif
125!if "$(BUILD)" == "debug"
126__OPTIMIZEFLAG_4 = /Od
127!endif
128!if "$(BUILD)" == "release"
129__OPTIMIZEFLAG_4 = /O2
130!endif
131!if "$(RUNTIME_LIBS)" == "dynamic"
132__RUNTIME_LIBS_7 = D
133!endif
134!if "$(RUNTIME_LIBS)" == "static"
135__RUNTIME_LIBS_7 = T
2ace0078 136!endif
b71531ad
VZ
137!if "$(USE_EXCEPTIONS)" == "0"
138__EXCEPTIONSFLAG_8 =
139!endif
140!if "$(USE_EXCEPTIONS)" == "1"
141__EXCEPTIONSFLAG_8 = /GR
142!endif
143!if "$(USE_EXCEPTIONS)" == "0"
144__EXCEPTIONSFLAG_9 =
145!endif
146!if "$(USE_EXCEPTIONS)" == "1"
147__EXCEPTIONSFLAG_9 = /GX
148!endif
ec08d395
JS
149!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
150__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
151!endif
152!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
153__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
154!endif
b17c1746
DE
155!if "$(WXUNIV)" == "1"
156__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
2ace0078 157!endif
b17c1746
DE
158!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
159__DEBUG_DEFINE_p = /D__WXDEBUG__
2ace0078 160!endif
b17c1746
DE
161!if "$(DEBUG_FLAG)" == "1"
162__DEBUG_DEFINE_p = /D__WXDEBUG__
2ace0078
VS
163!endif
164!if "$(UNICODE)" == "1"
8ba95a18 165__UNICODE_DEFINE_p = /D_UNICODE
2ace0078 166!endif
b17c1746
DE
167!if "$(SHARED)" == "1"
168__DLLFLAG_p = /DWXUSINGDLL
2ace0078
VS
169!endif
170!if "$(MONOLITHIC)" == "0"
c33fae85
RN
171__WXLIB_BASE_p = \
172 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
2ace0078
VS
173!endif
174!if "$(MONOLITHIC)" == "1"
175__WXLIB_MONO_p = \
c33fae85 176 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
2ace0078 177!endif
b17c1746 178!if "$(USE_GUI)" == "1"
9c2d002b 179__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
2ace0078 180!endif
b17c1746 181!if "$(USE_GUI)" == "1"
9c2d002b 182__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
2ace0078 183!endif
b17c1746 184!if "$(USE_GUI)" == "1"
9c2d002b 185__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
2ace0078 186!endif
b17c1746
DE
187!if "$(MSLU)" == "1"
188__UNICOWS_LIB_p = unicows.lib
2ace0078 189!endif
b17c1746
DE
190!if "$(SHARED)" == "0"
191LIBDIRNAME = .\..\..\..\lib\vc_lib$(CFG)
2ace0078 192!endif
b17c1746
DE
193!if "$(SHARED)" == "1"
194LIBDIRNAME = .\..\..\..\lib\vc_dll$(CFG)
2ace0078
VS
195!endif
196
197
198all: $(OBJS)
199$(OBJS):
200 -if not exist $(OBJS) mkdir $(OBJS)
201
202### Targets: ###
203
204all: $(OBJS)\HelpGen.exe
205
b17c1746
DE
206clean:
207 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
208 -if exist $(OBJS)\*.res del $(OBJS)\*.res
209 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe
210 -if exist $(OBJS)\HelpGen.ilk del $(OBJS)\HelpGen.ilk
211 -if exist $(OBJS)\HelpGen.pdb del $(OBJS)\HelpGen.pdb
212
213$(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
214 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:CONSOLE @<<
9c2d002b 215 $(HELPGEN_OBJECTS) $(__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 $(__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
b17c1746
DE
216<<
217
204e4cd6 218$(OBJS)\HelpGen_HelpGen.obj: .\HelpGen.cpp
2ace0078
VS
219 $(CXX) /c /nologo /TP /Fo$@ $(HELPGEN_CXXFLAGS) $**
220
204e4cd6 221$(OBJS)\HelpGen_cjparser.obj: .\cjparser.cpp
2ace0078
VS
222 $(CXX) /c /nologo /TP /Fo$@ $(HELPGEN_CXXFLAGS) $**
223
204e4cd6 224$(OBJS)\HelpGen_docripper.obj: .\docripper.cpp
2ace0078
VS
225 $(CXX) /c /nologo /TP /Fo$@ $(HELPGEN_CXXFLAGS) $**
226
204e4cd6 227$(OBJS)\HelpGen_ifcontext.obj: .\ifcontext.cpp
2ace0078
VS
228 $(CXX) /c /nologo /TP /Fo$@ $(HELPGEN_CXXFLAGS) $**
229
204e4cd6 230$(OBJS)\HelpGen_markup.obj: .\markup.cpp
2ace0078
VS
231 $(CXX) /c /nologo /TP /Fo$@ $(HELPGEN_CXXFLAGS) $**
232
204e4cd6 233$(OBJS)\HelpGen_scriptbinder.obj: .\scriptbinder.cpp
2ace0078
VS
234 $(CXX) /c /nologo /TP /Fo$@ $(HELPGEN_CXXFLAGS) $**
235
204e4cd6 236$(OBJS)\HelpGen_sourcepainter.obj: .\sourcepainter.cpp
2ace0078
VS
237 $(CXX) /c /nologo /TP /Fo$@ $(HELPGEN_CXXFLAGS) $**
238
204e4cd6 239$(OBJS)\HelpGen_srcparser.obj: .\srcparser.cpp
2ace0078 240 $(CXX) /c /nologo /TP /Fo$@ $(HELPGEN_CXXFLAGS) $**