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