]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.wat
removed src/gtk/eggtrayicon.h
[wxWidgets.git] / samples / render / makefile.wat
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
2d611b5c
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7!include ../../build/msw/config.wat
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13# Speed up compilation a bit:
14!ifdef __LOADDLL__
15! loaddll wcc wccd
16! loaddll wccaxp wccdaxp
17! loaddll wcc386 wccd386
18! loaddll wpp wppdi86
19! loaddll wppaxp wppdaxp
20! loaddll wpp386 wppd386
21! loaddll wlink wlink
22! loaddll wlib wlibd
23!endif
24
25# We need these variables in some bakefile-made rules:
26WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
27
28### Conditionally set variables: ###
29
30PORTNAME =
31!ifeq USE_GUI 0
32PORTNAME = base
33!endif
34!ifeq USE_GUI 1
35PORTNAME = msw
36!endif
37WXDEBUGFLAG =
38!ifeq BUILD debug
39!ifeq DEBUG_FLAG default
40WXDEBUGFLAG = d
41!endif
42!endif
43!ifeq DEBUG_FLAG 1
44WXDEBUGFLAG = d
45!endif
2d611b5c
VS
46WXUNICODEFLAG =
47!ifeq UNICODE 1
48WXUNICODEFLAG = u
49!endif
50WXUNIVNAME =
51!ifeq WXUNIV 1
52WXUNIVNAME = univ
53!endif
b17c1746
DE
54WXDLLFLAG =
55!ifeq SHARED 1
56WXDLLFLAG = dll
57!endif
078c7a59
VS
58PLUGINSUFFIX =
59!ifeq BUILD debug
60!ifeq UNICODE 0
314a6446 61PLUGINSUFFIX = d
078c7a59
VS
62!endif
63!endif
64!ifeq BUILD debug
65!ifeq UNICODE 1
314a6446 66PLUGINSUFFIX = ud
078c7a59
VS
67!endif
68!endif
69!ifeq BUILD release
70!ifeq UNICODE 0
71PLUGINSUFFIX =
72!endif
73!endif
74!ifeq BUILD release
75!ifeq UNICODE 1
314a6446 76PLUGINSUFFIX = u
078c7a59
VS
77!endif
78!endif
b17c1746
DE
79__renddll___depname =
80!ifeq SHARED 1
81__renddll___depname = &
c33fae85 82 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll
b17c1746 83!endif
2d611b5c
VS
84__DEBUGINFO =
85!ifeq BUILD debug
86!ifeq DEBUG_INFO default
ec08d395 87__DEBUGINFO = -d2
2d611b5c
VS
88!endif
89!endif
90!ifeq BUILD release
91!ifeq DEBUG_INFO default
ec08d395 92__DEBUGINFO = -d0
2d611b5c
VS
93!endif
94!endif
95!ifeq DEBUG_INFO 0
ec08d395 96__DEBUGINFO = -d0
2d611b5c
VS
97!endif
98!ifeq DEBUG_INFO 1
ec08d395 99__DEBUGINFO = -d2
2d611b5c 100!endif
b71531ad 101__DEBUGINFO_1 =
2d611b5c
VS
102!ifeq BUILD debug
103!ifeq DEBUG_INFO default
b71531ad 104__DEBUGINFO_1 = debug all
2d611b5c
VS
105!endif
106!endif
107!ifeq BUILD release
108!ifeq DEBUG_INFO default
b71531ad 109__DEBUGINFO_1 =
2d611b5c
VS
110!endif
111!endif
112!ifeq DEBUG_INFO 0
b71531ad 113__DEBUGINFO_1 =
2d611b5c
VS
114!endif
115!ifeq DEBUG_INFO 1
b71531ad 116__DEBUGINFO_1 = debug all
2d611b5c 117!endif
b17c1746 118__OPTIMIZEFLAG =
2d611b5c 119!ifeq BUILD debug
b17c1746 120__OPTIMIZEFLAG = -od
2d611b5c 121!endif
b17c1746
DE
122!ifeq BUILD release
123__OPTIMIZEFLAG = -ot -ox
2d611b5c 124!endif
b17c1746
DE
125__RUNTIME_LIBS =
126!ifeq RUNTIME_LIBS dynamic
127__RUNTIME_LIBS = -br
2d611b5c 128!endif
b17c1746
DE
129!ifeq RUNTIME_LIBS static
130__RUNTIME_LIBS =
2d611b5c 131!endif
b71531ad
VZ
132__EXCEPTIONSFLAG =
133!ifeq USE_EXCEPTIONS 0
134__EXCEPTIONSFLAG =
135!endif
136!ifeq USE_EXCEPTIONS 1
137__EXCEPTIONSFLAG = -xs
138!endif
b17c1746
DE
139__WXUNIV_DEFINE_p =
140!ifeq WXUNIV 1
141__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
2d611b5c 142!endif
b17c1746 143__DEBUG_DEFINE_p =
2d611b5c 144!ifeq BUILD debug
b17c1746
DE
145!ifeq DEBUG_FLAG default
146__DEBUG_DEFINE_p = -d__WXDEBUG__
2d611b5c 147!endif
2d611b5c 148!endif
b17c1746
DE
149!ifeq DEBUG_FLAG 1
150__DEBUG_DEFINE_p = -d__WXDEBUG__
2d611b5c
VS
151!endif
152__UNICODE_DEFINE_p =
153!ifeq UNICODE 1
ec08d395 154__UNICODE_DEFINE_p = -d_UNICODE
2d611b5c 155!endif
b17c1746
DE
156LIBDIRNAME =
157!ifeq SHARED 0
158LIBDIRNAME = .\..\..\lib\wat_lib$(CFG)
159!endif
160!ifeq SHARED 1
161LIBDIRNAME = .\..\..\lib\wat_dll$(CFG)
162!endif
163__DLLFLAG_p =
164!ifeq SHARED 1
165__DLLFLAG_p = -dWXUSINGDLL
2d611b5c
VS
166!endif
167__WXLIB_CORE_p =
168!ifeq MONOLITHIC 0
169__WXLIB_CORE_p = &
c33fae85 170 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
2d611b5c 171!endif
b17c1746
DE
172__WXLIB_BASE_p =
173!ifeq MONOLITHIC 0
c33fae85
RN
174__WXLIB_BASE_p = &
175 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 176!endif
2d611b5c
VS
177__WXLIB_MONO_p =
178!ifeq MONOLITHIC 1
179__WXLIB_MONO_p = &
c33fae85 180 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
2d611b5c 181!endif
b17c1746
DE
182__LIB_TIFF_p =
183!ifeq USE_GUI 1
9c2d002b 184__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
2d611b5c 185!endif
b17c1746
DE
186__LIB_JPEG_p =
187!ifeq USE_GUI 1
9c2d002b 188__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
b17c1746
DE
189!endif
190__LIB_PNG_p =
191!ifeq USE_GUI 1
9c2d002b 192__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
2d611b5c
VS
193!endif
194
195### Variables: ###
196
c33fae85 197WX_RELEASE_NODOT = 25
ab921f5f 198WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3
2d611b5c
VS
199OBJS = &
200 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b17c1746
DE
201SETUPHDIR = &
202 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
203RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
204 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
205 -i=.\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\..\samples &
c33fae85 206 -dNOPCH $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
2d611b5c
VS
207RENDER_OBJECTS = &
208 $(OBJS)\render_render.obj
b17c1746
DE
209RENDDLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm $(__RUNTIME_LIBS) &
210 -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) &
211 -i=.\..\..\include -i=$(SETUPHDIR) -dWXUSINGDLL $(__EXCEPTIONSFLAG) &
212 $(CPPFLAGS) $(CXXFLAGS)
213RENDDLL_OBJECTS = &
214 $(OBJS)\renddll_renddll.obj
2d611b5c 215
2d611b5c
VS
216
217all : $(OBJS)
218$(OBJS) :
219 -if not exist $(OBJS) mkdir $(OBJS)
220
221### Targets: ###
222
223all : .SYMBOLIC $(OBJS)\render.exe $(__renddll___depname)
224
2d611b5c
VS
225clean : .SYMBOLIC
226 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
227 -if exist $(OBJS)\*.res del $(OBJS)\*.res
228 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
229 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
230 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
c33fae85 231 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll
2d611b5c 232
b17c1746
DE
233$(OBJS)\render.exe : $(RENDER_OBJECTS) $(OBJS)\render_sample.res
234 @%create $(OBJS)\render.lbc
235 @%append $(OBJS)\render.lbc option quiet
236 @%append $(OBJS)\render.lbc name $^@
237 @%append $(OBJS)\render.lbc option caseexact
238 @%append $(OBJS)\render.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16'
239 @for %i in ($(RENDER_OBJECTS)) do @%append $(OBJS)\render.lbc file %i
9c2d002b 240 @for %i in ( $(__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 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 odbc32.lib ) do @%append $(OBJS)\render.lbc library %i
b17c1746
DE
241 @%append $(OBJS)\render.lbc option resource=$(OBJS)\render_sample.res
242 wlink @$(OBJS)\render.lbc
243
2d611b5c 244!ifeq SHARED 1
c33fae85 245$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_wat.dll : $(RENDDLL_OBJECTS)
2d611b5c
VS
246 @%create $(OBJS)\renddll.lbc
247 @%append $(OBJS)\renddll.lbc option quiet
248 @%append $(OBJS)\renddll.lbc name $^@
75a0a7b7 249 @%append $(OBJS)\renddll.lbc option caseexact
b71531ad 250 @%append $(OBJS)\renddll.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME)
2d611b5c 251 @for %i in ($(RENDDLL_OBJECTS)) do @%append $(OBJS)\renddll.lbc file %i
9c2d002b 252 @for %i in ( $(__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 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 odbc32.lib ) do @%append $(OBJS)\renddll.lbc library %i
2d611b5c
VS
253 @%append $(OBJS)\renddll.lbc
254 @%append $(OBJS)\renddll.lbc system nt_dll
255 wlink @$(OBJS)\renddll.lbc
256!endif
257
b17c1746
DE
258$(OBJS)\render_sample.res : .AUTODEPEND .\..\..\samples\sample.rc
259 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\..\samples $<
260
261$(OBJS)\render_render.obj : .AUTODEPEND .\render.cpp
262 $(CXX) -zq -fo=$^@ $(RENDER_CXXFLAGS) $<
263
264$(OBJS)\renddll_renddll.obj : .AUTODEPEND .\renddll.cpp
265 $(CXX) -zq -fo=$^@ $(RENDDLL_CXXFLAGS) $<