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