]> git.saurik.com Git - wxWidgets.git/blame - samples/dll/makefile.bcc
Check axis number in the received joystick messages.
[wxWidgets.git] / samples / dll / makefile.bcc
CommitLineData
61aba460
VS
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
61aba460
VS
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
4863951a
VS
27 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
28LIBDIRNAME = \\r
29 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r
61aba460
VS
30SETUPHDIR = \\r
31 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
32MY_DLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
bed99c22
VZ
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
9f38fe4b
VZ
37 $(____CAIRO_INCLUDEDIR_FILENAMES) $(__DLLFLAG_p) -DMY_DLL_BUILDING -I. \\r
38 $(CPPFLAGS) $(CXXFLAGS)\r
61aba460
VS
39MY_DLL_OBJECTS = \\r
40 $(OBJS)\my_dll_my_dll.obj\r
41WX_EXE_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
bed99c22
VZ
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
61aba460
VS
46 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \\r
47 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)\r
48WX_EXE_OBJECTS = \\r
1ffe64ef 49 $(OBJS)\wx_exe_wx_exe.obj\r
da8b1d4b
KO
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
61aba460
VS
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
bed99c22 61PORTNAME = msw$(TOOLKIT_VERSION)\r
4863951a
VS
62!endif\r
63!if "$(OFFICIAL_BUILD)" == "1"\r
64COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD\r
22a3b6e4 65!endif\r
61aba460
VS
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
51ec29ea 88EXTRALIBS_FOR_BASE = \r
61aba460
VS
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
da8b1d4b
KO
99!if "$(BUILD)" == "release"\r
100__NDEBUG_DEFINE_p_3 = -dNDEBUG\r
101!endif\r
61aba460
VS
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
61aba460
VS
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
61aba460
VS
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
da8b1d4b
KO
132!if "$(BUILD)" == "release"\r
133__NDEBUG_DEFINE_p = -DNDEBUG\r
134!endif\r
61aba460
VS
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
61aba460
VS
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
bed99c22 165 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
61aba460
VS
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
a4830bb5
VZ
171!if "$(MONOLITHIC)" == "1"\r
172__LIB_SCINTILLA_IF_MONO_p = wxscintilla$(WXDEBUGFLAG).lib\r
173!endif\r
61aba460
VS
174!if "$(USE_GUI)" == "1"\r
175__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
176!endif\r
177!if "$(USE_GUI)" == "1"\r
178__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
179!endif\r
180!if "$(USE_GUI)" == "1"\r
181__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
182!endif\r
183!if "$(MSLU)" == "1"\r
184__UNICOWS_LIB_p = unicows.lib\r
185!endif\r
61aba460
VS
186!if "$(USE_CAIRO)" == "1"\r
187__CAIRO_LIB_p = cairo.lib\r
188!endif\r
189!if "$(USE_CAIRO)" == "1"\r
190____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
191!endif\r
da8b1d4b
KO
192!if "$(BUILD)" == "debug"\r
193__OPTIMIZEFLAG = -Od\r
194!endif\r
195!if "$(BUILD)" == "release"\r
196__OPTIMIZEFLAG = -O2\r
197!endif\r
198!if "$(USE_THREADS)" == "0"\r
199__THREADSFLAG = \r
200!endif\r
201!if "$(USE_THREADS)" == "1"\r
202__THREADSFLAG = mt\r
203!endif\r
204!if "$(USE_THREADS)" == "0"\r
205__THREADSFLAG_1 = \r
206!endif\r
207!if "$(USE_THREADS)" == "1"\r
208__THREADSFLAG_1 = -tWM\r
209!endif\r
210!if "$(RUNTIME_LIBS)" == "dynamic"\r
211__RUNTIME_LIBS = -tWR\r
212!endif\r
213!if "$(RUNTIME_LIBS)" == "static"\r
214__RUNTIME_LIBS = \r
215!endif\r
216!if "$(RUNTIME_LIBS)" == "dynamic"\r
217__RUNTIME_LIBS_1 = i\r
218!endif\r
219!if "$(RUNTIME_LIBS)" == "static"\r
220__RUNTIME_LIBS_1 = \r
221!endif\r
61aba460
VS
222!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
223__DEBUGINFO = -v\r
224!endif\r
225!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
226__DEBUGINFO = -v-\r
227!endif\r
228!if "$(DEBUG_INFO)" == "0"\r
229__DEBUGINFO = -v-\r
230!endif\r
231!if "$(DEBUG_INFO)" == "1"\r
232__DEBUGINFO = -v\r
233!endif\r
234\r
235\r
236all: $(OBJS)\r
237$(OBJS):\r
238 -if not exist $(OBJS) mkdir $(OBJS)\r
239\r
240### Targets: ###\r
241\r
da8b1d4b 242all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe\r
61aba460
VS
243\r
244clean: \r
245 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
246 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
247 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm\r
248 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll\r
249 -if exist $(OBJS)\my_dll.tds del $(OBJS)\my_dll.tds\r
250 -if exist $(OBJS)\my_dll.ilc del $(OBJS)\my_dll.ilc\r
251 -if exist $(OBJS)\my_dll.ild del $(OBJS)\my_dll.ild\r
252 -if exist $(OBJS)\my_dll.ilf del $(OBJS)\my_dll.ilf\r
253 -if exist $(OBJS)\my_dll.ils del $(OBJS)\my_dll.ils\r
254 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib\r
255 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe\r
256 -if exist $(OBJS)\wx_exe.tds del $(OBJS)\wx_exe.tds\r
257 -if exist $(OBJS)\wx_exe.ilc del $(OBJS)\wx_exe.ilc\r
258 -if exist $(OBJS)\wx_exe.ild del $(OBJS)\wx_exe.ild\r
259 -if exist $(OBJS)\wx_exe.ilf del $(OBJS)\wx_exe.ilf\r
260 -if exist $(OBJS)\wx_exe.ils del $(OBJS)\wx_exe.ils\r
da8b1d4b
KO
261 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe\r
262 -if exist $(OBJS)\sdk_exe.tds del $(OBJS)\sdk_exe.tds\r
263 -if exist $(OBJS)\sdk_exe.ilc del $(OBJS)\sdk_exe.ilc\r
264 -if exist $(OBJS)\sdk_exe.ild del $(OBJS)\sdk_exe.ild\r
265 -if exist $(OBJS)\sdk_exe.ilf del $(OBJS)\sdk_exe.ilf\r
266 -if exist $(OBJS)\sdk_exe.ils del $(OBJS)\sdk_exe.ils\r
61aba460
VS
267\r
268$(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)\r
269 ilink32 -Tpd -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r
a4830bb5 270 c0d32.obj $(MY_DLL_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_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
61aba460
VS
271|\r
272 implib -f $(OBJS)\my_dll $@\r
273\r
274!if "$(SHARED)" == "0"\r
275$(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll\r
276 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r
a4830bb5 277 c0w32.obj $(WX_EXE_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(OBJS)\my_dll.lib $(__WXLIB_MONO_p) $(__LIB_SCINTILLA_IF_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
61aba460
VS
278|\r
279!endif\r
280\r
da8b1d4b
KO
281$(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll\r
282 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -aa $(LDFLAGS) @&&|\r
283 c0w32.obj $(SDK_EXE_OBJECTS),$@,, $(OBJS)\my_dll.lib user32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,,\r
284|\r
285\r
61aba460
VS
286$(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp\r
287 $(CXX) -q -c -P -o$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp\r
288\r
289$(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc\r
bed99c22 290 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
61aba460 291\r
1ffe64ef
VZ
292$(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp\r
293 $(CXX) -q -c -P -o$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp\r
61aba460 294\r
da8b1d4b
KO
295$(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp\r
296 $(CXX) -q -c -P -o$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp\r
297\r