]> git.saurik.com Git - wxWidgets.git/blob - samples/opengl/penguin/makefile.bcc
removed ANSI configs from VisualC++ project files
[wxWidgets.git] / samples / opengl / penguin / makefile.bcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.2 (http://bakefile.sourceforge.net)
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 PENGUIN_CFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
32 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -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 -I. $(__DLLFLAG_p) \
36 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CFLAGS)
37 PENGUIN_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
38 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
39 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
40 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
41 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -I. $(__DLLFLAG_p) \
42 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
43 PENGUIN_OBJECTS = \
44 $(OBJS)\penguin_penguin.obj \
45 $(OBJS)\penguin_dxfrenderer.obj \
46 $(OBJS)\penguin_trackball.obj
47
48 ### Conditionally set variables: ###
49
50 !if "$(USE_GUI)" == "0"
51 PORTNAME = base
52 !endif
53 !if "$(USE_GUI)" == "1"
54 PORTNAME = msw
55 !endif
56 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
57 WXDEBUGFLAG = d
58 !endif
59 !if "$(DEBUG_FLAG)" == "1"
60 WXDEBUGFLAG = d
61 !endif
62 !if "$(UNICODE)" == "1"
63 WXUNICODEFLAG = u
64 !endif
65 !if "$(WXUNIV)" == "1"
66 WXUNIVNAME = univ
67 !endif
68 !if "$(SHARED)" == "1"
69 WXDLLFLAG = dll
70 !endif
71 !if "$(SHARED)" == "0"
72 LIBTYPE_SUFFIX = lib
73 !endif
74 !if "$(SHARED)" == "1"
75 LIBTYPE_SUFFIX = dll
76 !endif
77 !if "$(MONOLITHIC)" == "0"
78 EXTRALIBS_FOR_BASE =
79 !endif
80 !if "$(MONOLITHIC)" == "1"
81 EXTRALIBS_FOR_BASE =
82 !endif
83 !if "$(USE_OPENGL)" == "1"
84 __penguin___depname = $(OBJS)\penguin.exe
85 !endif
86 !if "$(BUILD)" == "debug"
87 __OPTIMIZEFLAG_2 = -Od
88 !endif
89 !if "$(BUILD)" == "release"
90 __OPTIMIZEFLAG_2 = -O2
91 !endif
92 !if "$(USE_THREADS)" == "0"
93 __THREADSFLAG_5 =
94 !endif
95 !if "$(USE_THREADS)" == "1"
96 __THREADSFLAG_5 = mt
97 !endif
98 !if "$(USE_THREADS)" == "0"
99 __THREADSFLAG_6 =
100 !endif
101 !if "$(USE_THREADS)" == "1"
102 __THREADSFLAG_6 = -tWM
103 !endif
104 !if "$(RUNTIME_LIBS)" == "dynamic"
105 __RUNTIME_LIBS_7 = -tWR
106 !endif
107 !if "$(RUNTIME_LIBS)" == "static"
108 __RUNTIME_LIBS_7 =
109 !endif
110 !if "$(RUNTIME_LIBS)" == "dynamic"
111 __RUNTIME_LIBS_8 = i
112 !endif
113 !if "$(RUNTIME_LIBS)" == "static"
114 __RUNTIME_LIBS_8 =
115 !endif
116 !if "$(WXUNIV)" == "1"
117 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
118 !endif
119 !if "$(WXUNIV)" == "1"
120 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
121 !endif
122 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
123 __DEBUG_DEFINE_p = -D__WXDEBUG__
124 !endif
125 !if "$(DEBUG_FLAG)" == "1"
126 __DEBUG_DEFINE_p = -D__WXDEBUG__
127 !endif
128 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
129 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
130 !endif
131 !if "$(DEBUG_FLAG)" == "1"
132 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
133 !endif
134 !if "$(USE_EXCEPTIONS)" == "0"
135 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
136 !endif
137 !if "$(USE_EXCEPTIONS)" == "0"
138 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
139 !endif
140 !if "$(USE_RTTI)" == "0"
141 __RTTI_DEFINE_p = -DwxNO_RTTI
142 !endif
143 !if "$(USE_RTTI)" == "0"
144 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
145 !endif
146 !if "$(USE_THREADS)" == "0"
147 __THREAD_DEFINE_p = -DwxNO_THREADS
148 !endif
149 !if "$(USE_THREADS)" == "0"
150 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
151 !endif
152 !if "$(UNICODE)" == "1"
153 __UNICODE_DEFINE_p = -D_UNICODE
154 !endif
155 !if "$(UNICODE)" == "1"
156 __UNICODE_DEFINE_p_1 = -d_UNICODE
157 !endif
158 !if "$(MSLU)" == "1"
159 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
160 !endif
161 !if "$(MSLU)" == "1"
162 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
163 !endif
164 !if "$(USE_GDIPLUS)" == "1"
165 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
166 !endif
167 !if "$(USE_GDIPLUS)" == "1"
168 __GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
169 !endif
170 !if "$(SHARED)" == "1"
171 __DLLFLAG_p = -DWXUSINGDLL
172 !endif
173 !if "$(SHARED)" == "1"
174 __DLLFLAG_p_1 = -dWXUSINGDLL
175 !endif
176 !if "$(MONOLITHIC)" == "0"
177 __WXLIB_CORE_p = \
178 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
179 !endif
180 !if "$(MONOLITHIC)" == "0"
181 __WXLIB_BASE_p = \
182 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
183 !endif
184 !if "$(MONOLITHIC)" == "1"
185 __WXLIB_MONO_p = \
186 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
187 !endif
188 !if "$(USE_GUI)" == "1"
189 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
190 !endif
191 !if "$(USE_GUI)" == "1"
192 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
193 !endif
194 !if "$(USE_GUI)" == "1"
195 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
196 !endif
197 !if "$(MSLU)" == "1"
198 __UNICOWS_LIB_p = unicows.lib
199 !endif
200 !if "$(USE_GDIPLUS)" == "1"
201 __GDIPLUS_LIB_p = gdiplus.lib
202 !endif
203 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
204 __DEBUGINFO = -v
205 !endif
206 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
207 __DEBUGINFO = -v-
208 !endif
209 !if "$(DEBUG_INFO)" == "0"
210 __DEBUGINFO = -v-
211 !endif
212 !if "$(DEBUG_INFO)" == "1"
213 __DEBUGINFO = -v
214 !endif
215
216
217 all: $(OBJS)
218 $(OBJS):
219 -if not exist $(OBJS) mkdir $(OBJS)
220
221 ### Targets: ###
222
223 all: $(__penguin___depname) data
224
225 clean:
226 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
227 -if exist $(OBJS)\*.res del $(OBJS)\*.res
228 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
229 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
230 -if exist $(OBJS)\penguin.tds del $(OBJS)\penguin.tds
231 -if exist $(OBJS)\penguin.ilc del $(OBJS)\penguin.ilc
232 -if exist $(OBJS)\penguin.ild del $(OBJS)\penguin.ild
233 -if exist $(OBJS)\penguin.ilf del $(OBJS)\penguin.ilf
234 -if exist $(OBJS)\penguin.ils del $(OBJS)\penguin.ils
235
236 !if "$(USE_OPENGL)" == "1"
237 $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin.res
238 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
239 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) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\penguin_penguin.res
240 |
241 !endif
242
243 data:
244 if not exist $(OBJS) mkdir $(OBJS)
245 for %f in (penguin.dxf.gz) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
246
247 $(OBJS)\penguin_penguin.obj: .\penguin.cpp
248 $(CXX) -q -c -P -o$@ $(PENGUIN_CXXFLAGS) $**
249
250 $(OBJS)\penguin_dxfrenderer.obj: .\dxfrenderer.cpp
251 $(CXX) -q -c -P -o$@ $(PENGUIN_CXXFLAGS) $**
252
253 $(OBJS)\penguin_trackball.obj: .\trackball.c
254 $(CC) -q -c -P- -o$@ $(PENGUIN_CFLAGS) $**
255
256 $(OBJS)\penguin_penguin.res: .\penguin.rc
257 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) -i$(SETUPHDIR) -i.\..\..\..\include -i. $(__DLLFLAG_p_1) -i.\..\..\..\samples -dNOPCH $**
258