]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/dll/makefile.bcc
Fix broken and missing DataView interface items for Phoenix
[wxWidgets.git] / samples / dll / makefile.bcc
... / ...
CommitLineData
1# =========================================================================\r
2# This makefile was generated by\r
3# Bakefile 0.2.9 (http://www.bakefile.org)\r
4# Do not modify, all changes will be overwritten!\r
5# =========================================================================\r
6\r
7.autodepend\r
8\r
9!ifndef BCCDIR\r
10!ifndef MAKEDIR\r
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4\r
12!endif\r
13BCCDIR = $(MAKEDIR)\..\r
14!endif\r
15\r
16!include ../../build/msw/config.bcc\r
17\r
18# -------------------------------------------------------------------------\r
19# Do not modify the rest of this file!\r
20# -------------------------------------------------------------------------\r
21\r
22### Variables: ###\r
23\r
24WX_RELEASE_NODOT = 29\r
25COMPILER_PREFIX = bcc\r
26OBJS = \\r
27 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28LIBDIRNAME = \
29 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
30SETUPHDIR = \\r
31 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
32MY_DLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
33 $(__OPTIMIZEFLAG) $(__THREADSFLAG_1) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
34 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
35 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
36 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
37 $(____CAIRO_INCLUDEDIR_FILENAMES) $(__DLLFLAG_p) -DMY_DLL_BUILDING -I. \\r
38 $(CPPFLAGS) $(CXXFLAGS)\r
39MY_DLL_OBJECTS = \\r
40 $(OBJS)\my_dll_my_dll.obj\r
41WX_EXE_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
42 $(__OPTIMIZEFLAG) $(__THREADSFLAG_1) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
43 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \\r
44 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \\r
45 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
46 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \\r
47 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)\r
48WX_EXE_OBJECTS = \\r
49 $(OBJS)\wx_exe_wx_exe.obj\r
50SDK_EXE_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
51 $(__OPTIMIZEFLAG) $(__THREADSFLAG_1) $(CPPFLAGS) $(CXXFLAGS)\r
52SDK_EXE_OBJECTS = \\r
53 $(OBJS)\sdk_exe_sdk_exe.obj\r
54\r
55### Conditionally set variables: ###\r
56\r
57!if "$(USE_GUI)" == "0"\r
58PORTNAME = base\r
59!endif\r
60!if "$(USE_GUI)" == "1"\r
61PORTNAME = msw\r
62!endif\r
63!if "$(OFFICIAL_BUILD)" == "1"
64COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
65!endif
66!if "$(BUILD)" == "debug"\r
67WXDEBUGFLAG = d\r
68!endif\r
69!if "$(UNICODE)" == "1"\r
70WXUNICODEFLAG = u\r
71!endif\r
72!if "$(WXUNIV)" == "1"\r
73WXUNIVNAME = univ\r
74!endif\r
75!if "$(SHARED)" == "1"\r
76WXDLLFLAG = dll\r
77!endif\r
78!if "$(SHARED)" == "0"\r
79LIBTYPE_SUFFIX = lib\r
80!endif\r
81!if "$(SHARED)" == "1"\r
82LIBTYPE_SUFFIX = dll\r
83!endif\r
84!if "$(MONOLITHIC)" == "0"\r
85EXTRALIBS_FOR_BASE = \r
86!endif\r
87!if "$(MONOLITHIC)" == "1"\r
88EXTRALIBS_FOR_BASE = \r
89!endif\r
90!if "$(SHARED)" == "0"\r
91__wx_exe___depname = $(OBJS)\wx_exe.exe\r
92!endif\r
93!if "$(WXUNIV)" == "1"\r
94__WXUNIV_DEFINE_p_3 = -d__WXUNIVERSAL__\r
95!endif\r
96!if "$(DEBUG_FLAG)" == "0"\r
97__DEBUG_DEFINE_p_3 = -dwxDEBUG_LEVEL=0\r
98!endif\r
99!if "$(BUILD)" == "release"\r
100__NDEBUG_DEFINE_p_3 = -dNDEBUG\r
101!endif\r
102!if "$(USE_EXCEPTIONS)" == "0"\r
103__EXCEPTIONS_DEFINE_p_3 = -dwxNO_EXCEPTIONS\r
104!endif\r
105!if "$(USE_RTTI)" == "0"\r
106__RTTI_DEFINE_p_3 = -dwxNO_RTTI\r
107!endif\r
108!if "$(USE_THREADS)" == "0"\r
109__THREAD_DEFINE_p_3 = -dwxNO_THREADS\r
110!endif\r
111!if "$(UNICODE)" == "0"\r
112__UNICODE_DEFINE_p_3 = -dwxUSE_UNICODE=0\r
113!endif\r
114!if "$(UNICODE)" == "1"\r
115__UNICODE_DEFINE_p_3 = -d_UNICODE\r
116!endif\r
117!if "$(MSLU)" == "1"\r
118__MSLU_DEFINE_p_3 = -dwxUSE_UNICODE_MSLU=1\r
119!endif\r
120!if "$(USE_CAIRO)" == "1"\r
121____CAIRO_INCLUDEDIR_FILENAMES_3_p = -i$(CAIRO_ROOT)\include\cairo\r
122!endif\r
123!if "$(SHARED)" == "1"\r
124__DLLFLAG_p_3 = -dWXUSINGDLL\r
125!endif\r
126!if "$(WXUNIV)" == "1"\r
127__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
128!endif\r
129!if "$(DEBUG_FLAG)" == "0"\r
130__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
131!endif\r
132!if "$(BUILD)" == "release"\r
133__NDEBUG_DEFINE_p = -DNDEBUG\r
134!endif\r
135!if "$(USE_EXCEPTIONS)" == "0"\r
136__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
137!endif\r
138!if "$(USE_RTTI)" == "0"\r
139__RTTI_DEFINE_p = -DwxNO_RTTI\r
140!endif\r
141!if "$(USE_THREADS)" == "0"\r
142__THREAD_DEFINE_p = -DwxNO_THREADS\r
143!endif\r
144!if "$(UNICODE)" == "0"\r
145__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
146!endif\r
147!if "$(UNICODE)" == "1"\r
148__UNICODE_DEFINE_p = -D_UNICODE\r
149!endif\r
150!if "$(MSLU)" == "1"\r
151__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
152!endif\r
153!if "$(USE_CAIRO)" == "1"\r
154____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
155!endif\r
156!if "$(SHARED)" == "1"\r
157__DLLFLAG_p = -DWXUSINGDLL\r
158!endif\r
159!if "$(MONOLITHIC)" == "0"\r
160__WXLIB_CORE_p = \\r
161 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r
162!endif\r
163!if "$(MONOLITHIC)" == "0"\r
164__WXLIB_BASE_p = \\r
165 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
166!endif\r
167!if "$(MONOLITHIC)" == "1"\r
168__WXLIB_MONO_p = \\r
169 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
170!endif\r
171!if "$(USE_GUI)" == "1"\r
172__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
173!endif\r
174!if "$(USE_GUI)" == "1"\r
175__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
176!endif\r
177!if "$(USE_GUI)" == "1"\r
178__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
179!endif\r
180!if "$(MSLU)" == "1"\r
181__UNICOWS_LIB_p = unicows.lib\r
182!endif\r
183!if "$(USE_CAIRO)" == "1"\r
184__CAIRO_LIB_p = cairo.lib\r
185!endif\r
186!if "$(USE_CAIRO)" == "1"\r
187____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
188!endif\r
189!if "$(BUILD)" == "debug"\r
190__OPTIMIZEFLAG = -Od\r
191!endif\r
192!if "$(BUILD)" == "release"\r
193__OPTIMIZEFLAG = -O2\r
194!endif\r
195!if "$(USE_THREADS)" == "0"\r
196__THREADSFLAG = \r
197!endif\r
198!if "$(USE_THREADS)" == "1"\r
199__THREADSFLAG = mt\r
200!endif\r
201!if "$(USE_THREADS)" == "0"\r
202__THREADSFLAG_1 = \r
203!endif\r
204!if "$(USE_THREADS)" == "1"\r
205__THREADSFLAG_1 = -tWM\r
206!endif\r
207!if "$(RUNTIME_LIBS)" == "dynamic"\r
208__RUNTIME_LIBS = -tWR\r
209!endif\r
210!if "$(RUNTIME_LIBS)" == "static"\r
211__RUNTIME_LIBS = \r
212!endif\r
213!if "$(RUNTIME_LIBS)" == "dynamic"\r
214__RUNTIME_LIBS_1 = i\r
215!endif\r
216!if "$(RUNTIME_LIBS)" == "static"\r
217__RUNTIME_LIBS_1 = \r
218!endif\r
219!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
220__DEBUGINFO = -v\r
221!endif\r
222!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
223__DEBUGINFO = -v-\r
224!endif\r
225!if "$(DEBUG_INFO)" == "0"\r
226__DEBUGINFO = -v-\r
227!endif\r
228!if "$(DEBUG_INFO)" == "1"\r
229__DEBUGINFO = -v\r
230!endif\r
231\r
232\r
233all: $(OBJS)\r
234$(OBJS):\r
235 -if not exist $(OBJS) mkdir $(OBJS)\r
236\r
237### Targets: ###\r
238\r
239all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe\r
240\r
241clean: \r
242 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
243 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
244 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm\r
245 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll\r
246 -if exist $(OBJS)\my_dll.tds del $(OBJS)\my_dll.tds\r
247 -if exist $(OBJS)\my_dll.ilc del $(OBJS)\my_dll.ilc\r
248 -if exist $(OBJS)\my_dll.ild del $(OBJS)\my_dll.ild\r
249 -if exist $(OBJS)\my_dll.ilf del $(OBJS)\my_dll.ilf\r
250 -if exist $(OBJS)\my_dll.ils del $(OBJS)\my_dll.ils\r
251 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib\r
252 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe\r
253 -if exist $(OBJS)\wx_exe.tds del $(OBJS)\wx_exe.tds\r
254 -if exist $(OBJS)\wx_exe.ilc del $(OBJS)\wx_exe.ilc\r
255 -if exist $(OBJS)\wx_exe.ild del $(OBJS)\wx_exe.ild\r
256 -if exist $(OBJS)\wx_exe.ilf del $(OBJS)\wx_exe.ilf\r
257 -if exist $(OBJS)\wx_exe.ils del $(OBJS)\wx_exe.ils\r
258 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe\r
259 -if exist $(OBJS)\sdk_exe.tds del $(OBJS)\sdk_exe.tds\r
260 -if exist $(OBJS)\sdk_exe.ilc del $(OBJS)\sdk_exe.ilc\r
261 -if exist $(OBJS)\sdk_exe.ild del $(OBJS)\sdk_exe.ild\r
262 -if exist $(OBJS)\sdk_exe.ilf del $(OBJS)\sdk_exe.ilf\r
263 -if exist $(OBJS)\sdk_exe.ils del $(OBJS)\sdk_exe.ils\r
264\r
265$(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)\r
266 ilink32 -Tpd -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r
267 c0d32.obj $(MY_DLL_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) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,,\r
268|\r
269 implib -f $(OBJS)\my_dll $@\r
270\r
271!if "$(SHARED)" == "0"\r
272$(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll\r
273 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r
274 c0w32.obj $(WX_EXE_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(OBJS)\my_dll.lib $(__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) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,, $(OBJS)\wx_exe_sample.res\r
275|\r
276!endif\r
277\r
278$(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll\r
279 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -aa $(LDFLAGS) @&&|\r
280 c0w32.obj $(SDK_EXE_OBJECTS),$@,, $(OBJS)\my_dll.lib user32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,,\r
281|\r
282\r
283$(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp\r
284 $(CXX) -q -c -P -o$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp\r
285\r
286$(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc\r
287 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__NDEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) -i$(SETUPHDIR) -i.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_3_p) -i. $(__DLLFLAG_p_3) -i.\..\..\samples -dNOPCH .\..\..\samples\sample.rc\r
288\r
289$(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp\r
290 $(CXX) -q -c -P -o$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp\r
291\r
292$(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp\r
293 $(CXX) -q -c -P -o$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp\r
294\r