]> git.saurik.com Git - wxWidgets.git/blame - samples/dll/makefile.bcc
Fixed property Hide command
[wxWidgets.git] / samples / dll / makefile.bcc
CommitLineData
61aba460
VS
1# =========================================================================\r
2# This makefile was generated by\r
3# Bakefile 0.2.8 (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
da8b1d4b
KO
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) $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
9f38fe4b
VZ
36 $(____CAIRO_INCLUDEDIR_FILENAMES) $(__DLLFLAG_p) -DMY_DLL_BUILDING -I. \\r
37 $(CPPFLAGS) $(CXXFLAGS)\r
61aba460
VS
38MY_DLL_OBJECTS = \\r
39 $(OBJS)\my_dll_my_dll.obj\r
40WX_EXE_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \\r
da8b1d4b
KO
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) $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \\r
61aba460
VS
45 $(____CAIRO_INCLUDEDIR_FILENAMES) -I. $(__DLLFLAG_p) -I.\..\..\samples \\r
46 -DNOPCH $(CPPFLAGS) $(CXXFLAGS)\r
47WX_EXE_OBJECTS = \\r
1ffe64ef 48 $(OBJS)\wx_exe_wx_exe.obj\r
da8b1d4b
KO
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
61aba460
VS
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
da8b1d4b
KO
95!if "$(BUILD)" == "release"\r
96__NDEBUG_DEFINE_p_3 = -dNDEBUG\r
97!endif\r
61aba460
VS
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_GDIPLUS)" == "1"\r
117__GFXCTX_DEFINE_p_3 = -dwxUSE_GRAPHICS_CONTEXT=1\r
118!endif\r
119!if "$(USE_CAIRO)" == "1"\r
120____CAIRO_INCLUDEDIR_FILENAMES_3_p = -i$(CAIRO_ROOT)\include\cairo\r
121!endif\r
122!if "$(SHARED)" == "1"\r
123__DLLFLAG_p_3 = -dWXUSINGDLL\r
124!endif\r
61aba460
VS
125!if "$(WXUNIV)" == "1"\r
126__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
127!endif\r
128!if "$(DEBUG_FLAG)" == "0"\r
129__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
130!endif\r
da8b1d4b
KO
131!if "$(BUILD)" == "release"\r
132__NDEBUG_DEFINE_p = -DNDEBUG\r
133!endif\r
61aba460
VS
134!if "$(USE_EXCEPTIONS)" == "0"\r
135__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
136!endif\r
137!if "$(USE_RTTI)" == "0"\r
138__RTTI_DEFINE_p = -DwxNO_RTTI\r
139!endif\r
140!if "$(USE_THREADS)" == "0"\r
141__THREAD_DEFINE_p = -DwxNO_THREADS\r
142!endif\r
143!if "$(UNICODE)" == "0"\r
144__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
145!endif\r
146!if "$(UNICODE)" == "1"\r
147__UNICODE_DEFINE_p = -D_UNICODE\r
148!endif\r
149!if "$(MSLU)" == "1"\r
150__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
151!endif\r
152!if "$(USE_GDIPLUS)" == "1"\r
153__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1\r
154!endif\r
155!if "$(USE_CAIRO)" == "1"\r
156____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
157!endif\r
158!if "$(SHARED)" == "1"\r
159__DLLFLAG_p = -DWXUSINGDLL\r
160!endif\r
161!if "$(MONOLITHIC)" == "0"\r
162__WXLIB_CORE_p = \\r
163 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib\r
164!endif\r
165!if "$(MONOLITHIC)" == "0"\r
166__WXLIB_BASE_p = \\r
167 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
168!endif\r
169!if "$(MONOLITHIC)" == "1"\r
170__WXLIB_MONO_p = \\r
171 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib\r
172!endif\r
173!if "$(USE_GUI)" == "1"\r
174__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib\r
175!endif\r
176!if "$(USE_GUI)" == "1"\r
177__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib\r
178!endif\r
179!if "$(USE_GUI)" == "1"\r
180__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib\r
181!endif\r
182!if "$(MSLU)" == "1"\r
183__UNICOWS_LIB_p = unicows.lib\r
184!endif\r
185!if "$(USE_GDIPLUS)" == "1"\r
186__GDIPLUS_LIB_p = gdiplus.lib\r
187!endif\r
188!if "$(USE_CAIRO)" == "1"\r
189__CAIRO_LIB_p = cairo.lib\r
190!endif\r
191!if "$(USE_CAIRO)" == "1"\r
192____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
193!endif\r
da8b1d4b
KO
194!if "$(BUILD)" == "debug"\r
195__OPTIMIZEFLAG = -Od\r
196!endif\r
197!if "$(BUILD)" == "release"\r
198__OPTIMIZEFLAG = -O2\r
199!endif\r
200!if "$(USE_THREADS)" == "0"\r
201__THREADSFLAG = \r
202!endif\r
203!if "$(USE_THREADS)" == "1"\r
204__THREADSFLAG = mt\r
205!endif\r
206!if "$(USE_THREADS)" == "0"\r
207__THREADSFLAG_1 = \r
208!endif\r
209!if "$(USE_THREADS)" == "1"\r
210__THREADSFLAG_1 = -tWM\r
211!endif\r
212!if "$(RUNTIME_LIBS)" == "dynamic"\r
213__RUNTIME_LIBS = -tWR\r
214!endif\r
215!if "$(RUNTIME_LIBS)" == "static"\r
216__RUNTIME_LIBS = \r
217!endif\r
218!if "$(RUNTIME_LIBS)" == "dynamic"\r
219__RUNTIME_LIBS_1 = i\r
220!endif\r
221!if "$(RUNTIME_LIBS)" == "static"\r
222__RUNTIME_LIBS_1 = \r
223!endif\r
61aba460
VS
224!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"\r
225__DEBUGINFO = -v\r
226!endif\r
227!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"\r
228__DEBUGINFO = -v-\r
229!endif\r
230!if "$(DEBUG_INFO)" == "0"\r
231__DEBUGINFO = -v-\r
232!endif\r
233!if "$(DEBUG_INFO)" == "1"\r
234__DEBUGINFO = -v\r
235!endif\r
236\r
237\r
238all: $(OBJS)\r
239$(OBJS):\r
240 -if not exist $(OBJS) mkdir $(OBJS)\r
241\r
242### Targets: ###\r
243\r
da8b1d4b 244all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe\r
61aba460
VS
245\r
246clean: \r
247 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj\r
248 -if exist $(OBJS)\*.res del $(OBJS)\*.res\r
249 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm\r
250 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll\r
251 -if exist $(OBJS)\my_dll.tds del $(OBJS)\my_dll.tds\r
252 -if exist $(OBJS)\my_dll.ilc del $(OBJS)\my_dll.ilc\r
253 -if exist $(OBJS)\my_dll.ild del $(OBJS)\my_dll.ild\r
254 -if exist $(OBJS)\my_dll.ilf del $(OBJS)\my_dll.ilf\r
255 -if exist $(OBJS)\my_dll.ils del $(OBJS)\my_dll.ils\r
256 -if exist $(OBJS)\my_dll.lib del $(OBJS)\my_dll.lib\r
257 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe\r
258 -if exist $(OBJS)\wx_exe.tds del $(OBJS)\wx_exe.tds\r
259 -if exist $(OBJS)\wx_exe.ilc del $(OBJS)\wx_exe.ilc\r
260 -if exist $(OBJS)\wx_exe.ild del $(OBJS)\wx_exe.ild\r
261 -if exist $(OBJS)\wx_exe.ilf del $(OBJS)\wx_exe.ilf\r
262 -if exist $(OBJS)\wx_exe.ils del $(OBJS)\wx_exe.ils\r
da8b1d4b
KO
263 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe\r
264 -if exist $(OBJS)\sdk_exe.tds del $(OBJS)\sdk_exe.tds\r
265 -if exist $(OBJS)\sdk_exe.ilc del $(OBJS)\sdk_exe.ilc\r
266 -if exist $(OBJS)\sdk_exe.ild del $(OBJS)\sdk_exe.ild\r
267 -if exist $(OBJS)\sdk_exe.ilf del $(OBJS)\sdk_exe.ilf\r
268 -if exist $(OBJS)\sdk_exe.ils del $(OBJS)\sdk_exe.ils\r
61aba460
VS
269\r
270$(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)\r
271 ilink32 -Tpd -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r
da8b1d4b 272 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) $(__GDIPLUS_LIB_p) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,,\r
61aba460
VS
273|\r
274 implib -f $(OBJS)\my_dll $@\r
275\r
276!if "$(SHARED)" == "0"\r
277$(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.dll\r
278 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) @&&|\r
da8b1d4b 279 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) $(__GDIPLUS_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
280|\r
281!endif\r
282\r
da8b1d4b
KO
283$(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll\r
284 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -aa $(LDFLAGS) @&&|\r
285 c0w32.obj $(SDK_EXE_OBJECTS),$@,, $(OBJS)\my_dll.lib user32.lib import32.lib cw32$(__THREADSFLAG)$(__RUNTIME_LIBS_1).lib,,\r
286|\r
287\r
61aba460
VS
288$(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp\r
289 $(CXX) -q -c -P -o$@ $(MY_DLL_CXXFLAGS) .\my_dll.cpp\r
290\r
291$(OBJS)\wx_exe_sample.res: .\..\..\samples\sample.rc\r
da8b1d4b 292 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) $(__GFXCTX_DEFINE_p_3) -i$(SETUPHDIR) -i.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_3_p) -i. $(__DLLFLAG_p_3) -i.\..\..\samples -dNOPCH .\..\..\samples\sample.rc\r
61aba460 293\r
1ffe64ef
VZ
294$(OBJS)\wx_exe_wx_exe.obj: .\wx_exe.cpp\r
295 $(CXX) -q -c -P -o$@ $(WX_EXE_CXXFLAGS) .\wx_exe.cpp\r
61aba460 296\r
da8b1d4b
KO
297$(OBJS)\sdk_exe_sdk_exe.obj: .\sdk_exe.cpp\r
298 $(CXX) -q -c -P -o$@ $(SDK_EXE_CXXFLAGS) .\sdk_exe.cpp\r
299\r