]> git.saurik.com Git - wxWidgets.git/blob - samples/opengl/penguin/makefile.bcc
adding CoreText
[wxWidgets.git] / samples / opengl / penguin / makefile.bcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (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)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 LIBDIRNAME = \
29 .\..\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
30 SETUPHDIR = \
31 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
32 PENGUIN_CFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
33 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WX$(TOOLKIT)__ \
34 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \
35 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) \
37 -I.\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) -I. $(__DLLFLAG_p) \
38 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CFLAGS)
39 PENGUIN_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
40 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WX$(TOOLKIT)__ \
41 $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) \
42 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
43 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) \
44 -I.\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_p) -I. $(__DLLFLAG_p) \
45 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
46 PENGUIN_OBJECTS = \
47 $(OBJS)\penguin_penguin.obj \
48 $(OBJS)\penguin_dxfrenderer.obj \
49 $(OBJS)\penguin_trackball.obj
50
51 ### Conditionally set variables: ###
52
53 !if "$(TOOLKIT)" == "GTK"
54 WIN32_TOOLKIT_LOWERCASE = gtk
55 !endif
56 !if "$(TOOLKIT)" == "MSW"
57 WIN32_TOOLKIT_LOWERCASE = msw
58 !endif
59 !if "$(USE_GUI)" == "0"
60 PORTNAME = base
61 !endif
62 !if "$(USE_GUI)" == "1"
63 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
64 !endif
65 !if "$(TOOLKIT)" == "MAC"
66 WXBASEPORT = _carbon
67 !endif
68 !if "$(OFFICIAL_BUILD)" == "1"
69 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
70 !endif
71 !if "$(BUILD)" == "debug"
72 WXDEBUGFLAG = d
73 !endif
74 !if "$(UNICODE)" == "1"
75 WXUNICODEFLAG = u
76 !endif
77 !if "$(WXUNIV)" == "1"
78 WXUNIVNAME = univ
79 !endif
80 !if "$(SHARED)" == "1"
81 WXDLLFLAG = dll
82 !endif
83 !if "$(SHARED)" == "0"
84 LIBTYPE_SUFFIX = lib
85 !endif
86 !if "$(SHARED)" == "1"
87 LIBTYPE_SUFFIX = dll
88 !endif
89 !if "$(MONOLITHIC)" == "0"
90 EXTRALIBS_FOR_BASE =
91 !endif
92 !if "$(MONOLITHIC)" == "1"
93 EXTRALIBS_FOR_BASE =
94 !endif
95 !if "$(TOOLKIT)" == "GTK" && "$(TOOLKIT_VERSION)" == "2"
96 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
97 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
98 glib-2.0.lib
99 !endif
100 !if "$(USE_OPENGL)" == "1"
101 __penguin___depname = $(OBJS)\penguin.exe
102 !endif
103 !if "$(BUILD)" == "debug"
104 __OPTIMIZEFLAG_2 = -Od
105 !endif
106 !if "$(BUILD)" == "release"
107 __OPTIMIZEFLAG_2 = -O2
108 !endif
109 !if "$(USE_THREADS)" == "0"
110 __THREADSFLAG_5 =
111 !endif
112 !if "$(USE_THREADS)" == "1"
113 __THREADSFLAG_5 = mt
114 !endif
115 !if "$(USE_THREADS)" == "0"
116 __THREADSFLAG_6 =
117 !endif
118 !if "$(USE_THREADS)" == "1"
119 __THREADSFLAG_6 = -tWM
120 !endif
121 !if "$(RUNTIME_LIBS)" == "dynamic"
122 __RUNTIME_LIBS_7 = -tWR
123 !endif
124 !if "$(RUNTIME_LIBS)" == "static"
125 __RUNTIME_LIBS_7 =
126 !endif
127 !if "$(RUNTIME_LIBS)" == "dynamic"
128 __RUNTIME_LIBS_8 = i
129 !endif
130 !if "$(RUNTIME_LIBS)" == "static"
131 __RUNTIME_LIBS_8 =
132 !endif
133 !if "$(WXUNIV)" == "1"
134 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
135 !endif
136 !if "$(WXUNIV)" == "1"
137 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
138 !endif
139 !if "$(DEBUG_FLAG)" == "0"
140 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
141 !endif
142 !if "$(DEBUG_FLAG)" == "0"
143 __DEBUG_DEFINE_p_1 = -dwxDEBUG_LEVEL=0
144 !endif
145 !if "$(BUILD)" == "release"
146 __NDEBUG_DEFINE_p = -DNDEBUG
147 !endif
148 !if "$(BUILD)" == "release"
149 __NDEBUG_DEFINE_p_1 = -dNDEBUG
150 !endif
151 !if "$(USE_EXCEPTIONS)" == "0"
152 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
153 !endif
154 !if "$(USE_EXCEPTIONS)" == "0"
155 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
156 !endif
157 !if "$(USE_RTTI)" == "0"
158 __RTTI_DEFINE_p = -DwxNO_RTTI
159 !endif
160 !if "$(USE_RTTI)" == "0"
161 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
162 !endif
163 !if "$(USE_THREADS)" == "0"
164 __THREAD_DEFINE_p = -DwxNO_THREADS
165 !endif
166 !if "$(USE_THREADS)" == "0"
167 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
168 !endif
169 !if "$(UNICODE)" == "0"
170 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
171 !endif
172 !if "$(UNICODE)" == "1"
173 __UNICODE_DEFINE_p = -D_UNICODE
174 !endif
175 !if "$(UNICODE)" == "0"
176 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0
177 !endif
178 !if "$(UNICODE)" == "1"
179 __UNICODE_DEFINE_p_1 = -d_UNICODE
180 !endif
181 !if "$(MSLU)" == "1"
182 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
183 !endif
184 !if "$(MSLU)" == "1"
185 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
186 !endif
187 !if "$(USE_CAIRO)" == "1"
188 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
189 !endif
190 !if "$(USE_CAIRO)" == "1"
191 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = -i$(CAIRO_ROOT)\include\cairo
192 !endif
193 !if "$(SHARED)" == "1"
194 __DLLFLAG_p = -DWXUSINGDLL
195 !endif
196 !if "$(SHARED)" == "1"
197 __DLLFLAG_p_1 = -dWXUSINGDLL
198 !endif
199 !if "$(MONOLITHIC)" == "0"
200 __WXLIB_CORE_p = \
201 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
202 !endif
203 !if "$(MONOLITHIC)" == "0"
204 __WXLIB_BASE_p = \
205 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
206 !endif
207 !if "$(MONOLITHIC)" == "1"
208 __WXLIB_MONO_p = \
209 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
210 !endif
211 !if "$(USE_GUI)" == "1"
212 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
213 !endif
214 !if "$(USE_GUI)" == "1"
215 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
216 !endif
217 !if "$(USE_GUI)" == "1"
218 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
219 !endif
220 !if "$(MSLU)" == "1"
221 __UNICOWS_LIB_p = unicows.lib
222 !endif
223 !if "$(USE_CAIRO)" == "1"
224 __CAIRO_LIB_p = cairo.lib
225 !endif
226 !if "$(USE_CAIRO)" == "1"
227 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
228 !endif
229 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
230 __DEBUGINFO = -v
231 !endif
232 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
233 __DEBUGINFO = -v-
234 !endif
235 !if "$(DEBUG_INFO)" == "0"
236 __DEBUGINFO = -v-
237 !endif
238 !if "$(DEBUG_INFO)" == "1"
239 __DEBUGINFO = -v
240 !endif
241
242
243 all: $(OBJS)
244 $(OBJS):
245 -if not exist $(OBJS) mkdir $(OBJS)
246
247 ### Targets: ###
248
249 all: $(__penguin___depname) data
250
251 clean:
252 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
253 -if exist $(OBJS)\*.res del $(OBJS)\*.res
254 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
255 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
256 -if exist $(OBJS)\penguin.tds del $(OBJS)\penguin.tds
257 -if exist $(OBJS)\penguin.ilc del $(OBJS)\penguin.ilc
258 -if exist $(OBJS)\penguin.ild del $(OBJS)\penguin.ild
259 -if exist $(OBJS)\penguin.ilf del $(OBJS)\penguin.ilf
260 -if exist $(OBJS)\penguin.ils del $(OBJS)\penguin.ils
261
262 !if "$(USE_OPENGL)" == "1"
263 $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_sample.res
264 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @&&|
265 c0w32.obj $(PENGUIN_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gl.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) 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_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\penguin_sample.res
266 |
267 !endif
268
269 data:
270 if not exist $(OBJS) mkdir $(OBJS)
271 for %f in (penguin.dxf.gz) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
272
273 $(OBJS)\penguin_sample.res: .\..\..\..\samples\sample.rc
274 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) -i$(SETUPHDIR) -i.\..\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_1_p) -i. $(__DLLFLAG_p_1) -i.\..\..\..\samples -dNOPCH .\..\..\..\samples\sample.rc
275
276 $(OBJS)\penguin_penguin.obj: .\penguin.cpp
277 $(CXX) -q -c -P -o$@ $(PENGUIN_CXXFLAGS) .\penguin.cpp
278
279 $(OBJS)\penguin_dxfrenderer.obj: .\dxfrenderer.cpp
280 $(CXX) -q -c -P -o$@ $(PENGUIN_CXXFLAGS) .\dxfrenderer.cpp
281
282 $(OBJS)\penguin_trackball.obj: .\trackball.c
283 $(CC) -q -c -P- -o$@ $(PENGUIN_CFLAGS) .\trackball.c
284