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