]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.bcc
init member variables properly (patch 1156088)
[wxWidgets.git] / samples / render / makefile.bcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
b14abf14 3# Bakefile 0.1.6 (http://bakefile.sourceforge.net)
2d611b5c
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
2d611b5c 9!ifndef BCCDIR
9bfe7ad9
VS
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
2d611b5c
VS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
16!include ../../build/msw/config.bcc
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
2d611b5c
VS
22### Variables: ###
23
c33fae85 24WX_RELEASE_NODOT = 25
b14abf14 25WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4
2d611b5c
VS
26OBJS = \
27 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 28LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
29SETUPHDIR = \
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
31RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
9bfe7ad9
VS
32 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
33 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
c33fae85 34 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
2d611b5c
VS
35RENDER_OBJECTS = \
36 $(OBJS)\render_render.obj
b17c1746
DE
37RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
38 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
39 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -DWXUSINGDLL \
40 $(CPPFLAGS) $(CXXFLAGS)
41RENDDLL_OBJECTS = \
42 $(OBJS)\renddll_renddll.obj
2d611b5c
VS
43
44### Conditionally set variables: ###
45
46!if "$(USE_GUI)" == "0"
47PORTNAME = base
48!endif
49!if "$(USE_GUI)" == "1"
50PORTNAME = msw
51!endif
52!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
53WXDEBUGFLAG = d
54!endif
55!if "$(DEBUG_FLAG)" == "1"
56WXDEBUGFLAG = d
57!endif
2d611b5c
VS
58!if "$(UNICODE)" == "1"
59WXUNICODEFLAG = u
60!endif
61!if "$(WXUNIV)" == "1"
62WXUNIVNAME = univ
63!endif
b17c1746
DE
64!if "$(SHARED)" == "1"
65WXDLLFLAG = dll
2d611b5c 66!endif
b14abf14
JS
67!if "$(SHARED)" == "0"
68LIBTYPE_SUFFIX = lib
69!endif
70!if "$(SHARED)" == "1"
71LIBTYPE_SUFFIX = dll
72!endif
dd65d8c8
RN
73!if "$(MONOLITHIC)" == "0"
74EXTRALIBS_FOR_BASE =
75!endif
76!if "$(MONOLITHIC)" == "1"
77EXTRALIBS_FOR_BASE =
78!endif
078c7a59 79!if "$(BUILD)" == "debug" && "$(UNICODE)" == "0"
314a6446 80PLUGINSUFFIX = d
078c7a59
VS
81!endif
82!if "$(BUILD)" == "debug" && "$(UNICODE)" == "1"
314a6446 83PLUGINSUFFIX = ud
078c7a59
VS
84!endif
85!if "$(BUILD)" == "release" && "$(UNICODE)" == "0"
86PLUGINSUFFIX =
87!endif
88!if "$(BUILD)" == "release" && "$(UNICODE)" == "1"
314a6446 89PLUGINSUFFIX = u
078c7a59 90!endif
b17c1746
DE
91!if "$(WXUNIV)" == "1"
92__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
2d611b5c
VS
93!endif
94!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
95__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
96!endif
97!if "$(DEBUG_FLAG)" == "1"
98__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
99!endif
b17c1746
DE
100!if "$(UNICODE)" == "1"
101__UNICODE_DEFINE_p_1 = -d_UNICODE
102!endif
2d611b5c
VS
103!if "$(SHARED)" == "1"
104__DLLFLAG_p = -DWXUSINGDLL
105!endif
106!if "$(SHARED)" == "1"
107__DLLFLAG_p_1 = -dWXUSINGDLL
108!endif
b17c1746
DE
109!if "$(SHARED)" == "1"
110__renddll___depname = \
c33fae85 111 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
2d611b5c
VS
112!endif
113!if "$(BUILD)" == "debug"
114__OPTIMIZEFLAG = -Od
115!endif
116!if "$(BUILD)" == "release"
117__OPTIMIZEFLAG = -O2
118!endif
119!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 120__RUNTIME_LIBS = -tWR
2d611b5c
VS
121!endif
122!if "$(RUNTIME_LIBS)" == "static"
123__RUNTIME_LIBS =
124!endif
125!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 126__RUNTIME_LIBS_0 = i
2d611b5c
VS
127!endif
128!if "$(RUNTIME_LIBS)" == "static"
129__RUNTIME_LIBS_0 =
130!endif
b17c1746
DE
131!if "$(WXUNIV)" == "1"
132__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
133!endif
134!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
135__DEBUG_DEFINE_p = -D__WXDEBUG__
136!endif
137!if "$(DEBUG_FLAG)" == "1"
138__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c
VS
139!endif
140!if "$(UNICODE)" == "1"
b17c1746 141__UNICODE_DEFINE_p = -D_UNICODE
2d611b5c 142!endif
2d611b5c
VS
143!if "$(MONOLITHIC)" == "0"
144__WXLIB_CORE_p = \
c33fae85 145 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
2d611b5c 146!endif
b17c1746 147!if "$(MONOLITHIC)" == "0"
c33fae85
RN
148__WXLIB_BASE_p = \
149 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 150!endif
2d611b5c
VS
151!if "$(MONOLITHIC)" == "1"
152__WXLIB_MONO_p = \
c33fae85 153 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
2d611b5c 154!endif
b17c1746 155!if "$(USE_GUI)" == "1"
9c2d002b 156__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
2d611b5c 157!endif
b17c1746 158!if "$(USE_GUI)" == "1"
9c2d002b 159__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
2d611b5c 160!endif
b17c1746 161!if "$(USE_GUI)" == "1"
9c2d002b 162__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
163!endif
164!if "$(MSLU)" == "1"
165__UNICOWS_LIB_p = unicows.lib
166!endif
167!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
168__DEBUGINFO = -v
169!endif
170!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
171__DEBUGINFO = -v-
172!endif
173!if "$(DEBUG_INFO)" == "0"
174__DEBUGINFO = -v-
175!endif
176!if "$(DEBUG_INFO)" == "1"
177__DEBUGINFO = -v
2d611b5c
VS
178!endif
179
2d611b5c
VS
180
181all: $(OBJS)
182$(OBJS):
183 -if not exist $(OBJS) mkdir $(OBJS)
184
185### Targets: ###
186
187all: $(OBJS)\render.exe $(__renddll___depname)
188
2d611b5c
VS
189clean:
190 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
191 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 192 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
2d611b5c 193 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
ec08d395
JS
194 -if exist $(OBJS)\render.tds del $(OBJS)\render.tds
195 -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc
196 -if exist $(OBJS)\render.ild del $(OBJS)\render.ild
197 -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf
198 -if exist $(OBJS)\render.ils del $(OBJS)\render.ils
c33fae85
RN
199 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll
200 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds
201 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc
202 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild
203 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf
204 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils
2d611b5c 205
b17c1746
DE
206$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
207 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
dd65d8c8 208 c0w32.obj $(RENDER_OBJECTS),$@,, $(__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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\render_sample.res
b17c1746
DE
209|
210
2d611b5c 211!if "$(SHARED)" == "1"
c33fae85 212$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll: $(RENDDLL_OBJECTS)
9bfe7ad9 213 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
dd65d8c8 214 c0d32.obj $(RENDDLL_OBJECTS),$@,, $(__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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,,
2d611b5c
VS
215|
216!endif
217
b17c1746 218$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
b14abf14 219 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\samples $**
b17c1746
DE
220
221$(OBJS)\render_render.obj: .\render.cpp
222 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) $**
223
224$(OBJS)\renddll_renddll.obj: .\renddll.cpp
225 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) $**
b14abf14 226