]> git.saurik.com Git - wxWidgets.git/blame - utils/execmon/makefile.wat
removing codewarrior support
[wxWidgets.git] / utils / execmon / makefile.wat
CommitLineData
f82b7036
KO
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
f82b7036
KO
4# Do not modify, all changes will be overwritten!\r
5# =========================================================================\r
6\r
7!include ../../build/msw/config.wat\r
8\r
9# -------------------------------------------------------------------------\r
10# Do not modify the rest of this file!\r
11# -------------------------------------------------------------------------\r
12\r
13# Speed up compilation a bit:\r
14!ifdef __LOADDLL__\r
15! loaddll wcc wccd\r
16! loaddll wccaxp wccdaxp\r
17! loaddll wcc386 wccd386\r
18! loaddll wpp wppdi86\r
19! loaddll wppaxp wppdaxp\r
20! loaddll wpp386 wppd386\r
21! if $(__VERSION__) >= 1280\r
22! loaddll wlink wlinkd\r
23! else\r
24! loaddll wlink wlink\r
25! endif\r
26! loaddll wlib wlibd\r
27!endif\r
28\r
29# We need these variables in some bakefile-made rules:\r
30WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-\r
31\r
32### Conditionally set variables: ###\r
33\r
22a3b6e4
VZ
34WIN32_TOOLKIT_LOWERCASE =
35!ifeq TOOLKIT GTK
36WIN32_TOOLKIT_LOWERCASE = gtk
37!endif
38!ifeq TOOLKIT MSW
39WIN32_TOOLKIT_LOWERCASE = msw
40!endif
f82b7036
KO
41PORTNAME =\r
42!ifeq USE_GUI 0\r
43PORTNAME = base\r
44!endif\r
45!ifeq USE_GUI 1\r
22a3b6e4
VZ
46PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
47!endif
48WXBASEPORT =
49!ifeq TOOLKIT MAC
50WXBASEPORT = _carbon
51!endif
14b682f7
VZ
52COMPILER_VERSION =
53!ifeq OFFICIAL_BUILD 1
54COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
22a3b6e4 55!endif\r
f82b7036
KO
56WXDEBUGFLAG =\r
57!ifeq BUILD debug\r
58WXDEBUGFLAG = d\r
59!endif\r
60WXUNICODEFLAG =\r
61!ifeq UNICODE 1\r
62WXUNICODEFLAG = u\r
63!endif\r
64WXUNIVNAME =\r
65!ifeq WXUNIV 1\r
66WXUNIVNAME = univ\r
67!endif\r
68WXDLLFLAG =\r
69!ifeq SHARED 1\r
70WXDLLFLAG = dll\r
71!endif\r
72LIBTYPE_SUFFIX =\r
73!ifeq SHARED 0\r
74LIBTYPE_SUFFIX = lib\r
75!endif\r
76!ifeq SHARED 1\r
77LIBTYPE_SUFFIX = dll\r
78!endif\r
79EXTRALIBS_FOR_BASE =\r
80!ifeq MONOLITHIC 0\r
81EXTRALIBS_FOR_BASE = \r
82!endif\r
83!ifeq MONOLITHIC 1\r
51ec29ea 84EXTRALIBS_FOR_BASE = \r
f82b7036
KO
85!endif\r
86__execmon___depname =\r
87!ifeq USE_XRC 1\r
88__execmon___depname = $(OBJS)\execmon.exe\r
89!endif\r
90__DEBUGINFO_0 =\r
91!ifeq BUILD debug\r
92!ifeq DEBUG_INFO default\r
93__DEBUGINFO_0 = -d2\r
94!endif\r
95!endif\r
96!ifeq BUILD release\r
97!ifeq DEBUG_INFO default\r
98__DEBUGINFO_0 = -d0\r
99!endif\r
100!endif\r
101!ifeq DEBUG_INFO 0\r
102__DEBUGINFO_0 = -d0\r
103!endif\r
104!ifeq DEBUG_INFO 1\r
105__DEBUGINFO_0 = -d2\r
106!endif\r
107__DEBUGINFO_1 =\r
108!ifeq BUILD debug\r
109!ifeq DEBUG_INFO default\r
110__DEBUGINFO_1 = debug all\r
111!endif\r
112!endif\r
113!ifeq BUILD release\r
114!ifeq DEBUG_INFO default\r
115__DEBUGINFO_1 = \r
116!endif\r
117!endif\r
118!ifeq DEBUG_INFO 0\r
119__DEBUGINFO_1 = \r
120!endif\r
121!ifeq DEBUG_INFO 1\r
122__DEBUGINFO_1 = debug all\r
123!endif\r
124__OPTIMIZEFLAG_2 =\r
125!ifeq BUILD debug\r
126__OPTIMIZEFLAG_2 = -od\r
127!endif\r
128!ifeq BUILD release\r
129__OPTIMIZEFLAG_2 = -ot -ox\r
130!endif\r
131__THREADSFLAG_5 =\r
132!ifeq USE_THREADS 0\r
133__THREADSFLAG_5 = \r
134!endif\r
135!ifeq USE_THREADS 1\r
136__THREADSFLAG_5 = -bm\r
137!endif\r
138__RUNTIME_LIBS_6 =\r
139!ifeq RUNTIME_LIBS dynamic\r
140__RUNTIME_LIBS_6 = -br\r
141!endif\r
142!ifeq RUNTIME_LIBS static\r
143__RUNTIME_LIBS_6 = \r
144!endif\r
145__RTTIFLAG_7 =\r
146!ifeq USE_RTTI 0\r
147__RTTIFLAG_7 = \r
148!endif\r
149!ifeq USE_RTTI 1\r
150__RTTIFLAG_7 = -xr\r
151!endif\r
152__EXCEPTIONSFLAG_8 =\r
153!ifeq USE_EXCEPTIONS 0\r
154__EXCEPTIONSFLAG_8 = \r
155!endif\r
156!ifeq USE_EXCEPTIONS 1\r
157__EXCEPTIONSFLAG_8 = -xs\r
158!endif\r
159__WXUNIV_DEFINE_p =\r
160!ifeq WXUNIV 1\r
161__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__\r
162!endif\r
163__DEBUG_DEFINE_p =\r
164!ifeq DEBUG_FLAG 0\r
165__DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0\r
166!endif\r
00fb97de
KO
167__NDEBUG_DEFINE_p =\r
168!ifeq BUILD release\r
169__NDEBUG_DEFINE_p = -dNDEBUG\r
170!endif\r
f82b7036
KO
171__EXCEPTIONS_DEFINE_p =\r
172!ifeq USE_EXCEPTIONS 0\r
173__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS\r
174!endif\r
175__RTTI_DEFINE_p =\r
176!ifeq USE_RTTI 0\r
177__RTTI_DEFINE_p = -dwxNO_RTTI\r
178!endif\r
179__THREAD_DEFINE_p =\r
180!ifeq USE_THREADS 0\r
181__THREAD_DEFINE_p = -dwxNO_THREADS\r
182!endif\r
183__UNICODE_DEFINE_p =\r
184!ifeq UNICODE 0\r
185__UNICODE_DEFINE_p = -dwxUSE_UNICODE=0\r
186!endif\r
187!ifeq UNICODE 1\r
188__UNICODE_DEFINE_p = -d_UNICODE\r
189!endif\r
f82b7036
KO
190____CAIRO_INCLUDEDIR_FILENAMES_p =\r
191!ifeq USE_CAIRO 1\r
192____CAIRO_INCLUDEDIR_FILENAMES_p = -i=$(CAIRO_ROOT)\include\cairo\r
193!endif\r
194__DLLFLAG_p =\r
195!ifeq SHARED 1\r
196__DLLFLAG_p = -dWXUSINGDLL\r
197!endif\r
198__WXLIB_BASE_p =\r
199!ifeq MONOLITHIC 0\r
200__WXLIB_BASE_p = &\r
22a3b6e4 201 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
f82b7036
KO
202!endif\r
203__WXLIB_MONO_p =\r
204!ifeq MONOLITHIC 1\r
205__WXLIB_MONO_p = &\r
206 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
207!endif\r
57c74474
VZ
208__LIB_PNG_IF_MONO_p =\r
209!ifeq MONOLITHIC 1\r
210__LIB_PNG_IF_MONO_p = $(__LIB_PNG_p)\r
211!endif\r
212__LIB_PNG_p =\r
213!ifeq USE_GUI 1\r
214__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
215!endif\r
f82b7036
KO
216__CAIRO_LIB_p =\r
217!ifeq USE_CAIRO 1\r
218__CAIRO_LIB_p = cairo.lib\r
219!endif\r
220____CAIRO_LIBDIR_FILENAMES_p =\r
221!ifeq USE_CAIRO 1\r
222____CAIRO_LIBDIR_FILENAMES_p = libpath $(CAIRO_ROOT)\lib\r
223!endif\r
224\r
225### Variables: ###\r
226\r
227WX_RELEASE_NODOT = 29\r
228COMPILER_PREFIX = wat\r
229OBJS = &\r
14b682f7
VZ
230 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
231LIBDIRNAME = &
232 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
f82b7036
KO
233SETUPHDIR = &\r
234 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
235EXECMON_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &\r
22a3b6e4
VZ
236 $(__RUNTIME_LIBS_6) -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) &
237 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) &
238 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) &
239 -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) -wx &
240 -wcd=549 -wcd=656 -wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -dwxUSE_GUI=0 &
241 $(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) $(CXXFLAGS)
f82b7036
KO
242EXECMON_OBJECTS = &\r
243 $(OBJS)\execmon_execmon.obj\r
244\r
245\r
246all : $(OBJS)\r
247$(OBJS) :\r
248 -if not exist $(OBJS) mkdir $(OBJS)\r
249\r
250### Targets: ###\r
251\r
252all : .SYMBOLIC $(__execmon___depname)\r
253\r
254clean : .SYMBOLIC \r
255 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
256 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
257 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc\r
258 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk\r
259 -if exist $(OBJS)\*.pch del $(OBJS)\*.pch\r
260 -if exist $(OBJS)\execmon.exe del $(OBJS)\execmon.exe\r
261\r
262!ifeq USE_XRC 1\r
263$(OBJS)\execmon.exe : $(EXECMON_OBJECTS)\r
264 @%create $(OBJS)\execmon.lbc\r
265 @%append $(OBJS)\execmon.lbc option quiet\r
266 @%append $(OBJS)\execmon.lbc name $^@\r
267 @%append $(OBJS)\execmon.lbc option caseexact\r
268 @%append $(OBJS)\execmon.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt ref 'main_' $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS)\r
269 @for %i in ($(EXECMON_OBJECTS)) do @%append $(OBJS)\execmon.lbc file %i\r
57c74474 270 @for %i in ( $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_PNG_IF_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__CAIRO_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 wininet.lib) do @%append $(OBJS)\execmon.lbc library %i\r
f82b7036
KO
271 @%append $(OBJS)\execmon.lbc\r
272 @for %i in () do @%append $(OBJS)\execmon.lbc option stack=%i\r
273 wlink @$(OBJS)\execmon.lbc\r
274!endif\r
275\r
276$(OBJS)\execmon_execmon.obj : .AUTODEPEND .\execmon.cpp\r
277 $(CXX) -bt=nt -zq -fo=$^@ $(EXECMON_CXXFLAGS) $<\r
278\r