]> git.saurik.com Git - wxWidgets.git/blame - samples/opengl/penguin/makefile.bcc
wxBusyInfo now uses wxGenericStaticText under GTK+, more Refresh/Update updates
[wxWidgets.git] / samples / opengl / penguin / makefile.bcc
CommitLineData
e93c6860
VS
1# =========================================================================
2# This makefile was generated by
506e9b7e 3# Bakefile 0.2.5 (http://www.bakefile.org)
e93c6860
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
8b089c5e 6
9bfe7ad9
VS
7.autodepend
8
e93c6860 9!ifndef BCCDIR
9bfe7ad9
VS
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
e93c6860 13BCCDIR = $(MAKEDIR)\..
8b089c5e
JS
14!endif
15
fd9f42b6 16!include ../../../build/msw/config.bcc
8b089c5e 17
e93c6860
VS
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
8b089c5e 21
e93c6860
VS
22### Variables: ###
23
ae4ccf12 24WX_RELEASE_NODOT = 29
444833b3 25COMPILER_PREFIX = bcc
e93c6860 26OBJS = \
444833b3
CE
27 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
29SETUPHDIR = \
30 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
31PENGUIN_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) \
2113bc77 34 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
35 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -I. $(__DLLFLAG_p) \
36 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CFLAGS)
8c9f8f91
JS
37PENGUIN_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) \
2113bc77 40 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
41 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -I. $(__DLLFLAG_p) \
42 -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
e93c6860
VS
43PENGUIN_OBJECTS = \
44 $(OBJS)\penguin_penguin.obj \
4b764db3 45 $(OBJS)\penguin_dxfrenderer.obj \
e93c6860
VS
46 $(OBJS)\penguin_trackball.obj
47
48### Conditionally set variables: ###
49
50!if "$(USE_GUI)" == "0"
51PORTNAME = base
52!endif
53!if "$(USE_GUI)" == "1"
54PORTNAME = msw
55!endif
56!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
57WXDEBUGFLAG = d
58!endif
59!if "$(DEBUG_FLAG)" == "1"
60WXDEBUGFLAG = d
61!endif
e93c6860
VS
62!if "$(UNICODE)" == "1"
63WXUNICODEFLAG = u
64!endif
65!if "$(WXUNIV)" == "1"
66WXUNIVNAME = univ
67!endif
e93c6860 68!if "$(SHARED)" == "1"
b17c1746 69WXDLLFLAG = dll
e93c6860 70!endif
b14abf14
JS
71!if "$(SHARED)" == "0"
72LIBTYPE_SUFFIX = lib
73!endif
74!if "$(SHARED)" == "1"
75LIBTYPE_SUFFIX = dll
76!endif
dd65d8c8
RN
77!if "$(MONOLITHIC)" == "0"
78EXTRALIBS_FOR_BASE =
79!endif
80!if "$(MONOLITHIC)" == "1"
81EXTRALIBS_FOR_BASE =
82!endif
83!if "$(USE_OPENGL)" == "1"
84__penguin___depname = $(OBJS)\penguin.exe
85!endif
e93c6860
VS
86!if "$(BUILD)" == "debug"
87__OPTIMIZEFLAG_2 = -Od
88!endif
89!if "$(BUILD)" == "release"
90__OPTIMIZEFLAG_2 = -O2
91!endif
8c9f8f91
JS
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
e93c6860 104!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 105__RUNTIME_LIBS_7 = -tWR
e93c6860
VS
106!endif
107!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 108__RUNTIME_LIBS_7 =
e93c6860
VS
109!endif
110!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 111__RUNTIME_LIBS_8 = i
e93c6860
VS
112!endif
113!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 114__RUNTIME_LIBS_8 =
e93c6860 115!endif
b17c1746
DE
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
8c9f8f91
JS
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
7379e476
VZ
152!if "$(UNICODE)" == "0"
153__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
154!endif
e93c6860 155!if "$(UNICODE)" == "1"
22cef566 156__UNICODE_DEFINE_p = -D_UNICODE
e93c6860 157!endif
7379e476
VZ
158!if "$(UNICODE)" == "0"
159__UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0
160!endif
e93c6860 161!if "$(UNICODE)" == "1"
22cef566 162__UNICODE_DEFINE_p_1 = -d_UNICODE
e93c6860 163!endif
2113bc77
MW
164!if "$(MSLU)" == "1"
165__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
166!endif
167!if "$(MSLU)" == "1"
168__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
169!endif
3abcf424
RD
170!if "$(USE_GDIPLUS)" == "1"
171__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
172!endif
173!if "$(USE_GDIPLUS)" == "1"
174__GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
175!endif
b17c1746
DE
176!if "$(SHARED)" == "1"
177__DLLFLAG_p = -DWXUSINGDLL
4e209a20 178!endif
b17c1746
DE
179!if "$(SHARED)" == "1"
180__DLLFLAG_p_1 = -dWXUSINGDLL
e93c6860
VS
181!endif
182!if "$(MONOLITHIC)" == "0"
183__WXLIB_CORE_p = \
c33fae85 184 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
e93c6860 185!endif
b17c1746 186!if "$(MONOLITHIC)" == "0"
c33fae85
RN
187__WXLIB_BASE_p = \
188 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
b17c1746 189!endif
e93c6860
VS
190!if "$(MONOLITHIC)" == "1"
191__WXLIB_MONO_p = \
c33fae85 192 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
e93c6860 193!endif
b17c1746 194!if "$(USE_GUI)" == "1"
9c2d002b 195__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
e93c6860 196!endif
b17c1746 197!if "$(USE_GUI)" == "1"
9c2d002b 198__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
b17c1746
DE
199!endif
200!if "$(USE_GUI)" == "1"
9c2d002b 201__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
202!endif
203!if "$(MSLU)" == "1"
204__UNICOWS_LIB_p = unicows.lib
205!endif
3abcf424
RD
206!if "$(USE_GDIPLUS)" == "1"
207__GDIPLUS_LIB_p = gdiplus.lib
208!endif
b17c1746
DE
209!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
210__DEBUGINFO = -v
211!endif
212!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
213__DEBUGINFO = -v-
214!endif
215!if "$(DEBUG_INFO)" == "0"
216__DEBUGINFO = -v-
217!endif
218!if "$(DEBUG_INFO)" == "1"
219__DEBUGINFO = -v
e93c6860
VS
220!endif
221
222
223all: $(OBJS)
224$(OBJS):
225 -if not exist $(OBJS) mkdir $(OBJS)
226
227### Targets: ###
228
dd65d8c8 229all: $(__penguin___depname) data
e93c6860 230
e93c6860
VS
231clean:
232 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
233 -if exist $(OBJS)\*.res del $(OBJS)\*.res
b14abf14 234 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
e93c6860 235 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
22cef566
VS
236 -if exist $(OBJS)\penguin.tds del $(OBJS)\penguin.tds
237 -if exist $(OBJS)\penguin.ilc del $(OBJS)\penguin.ilc
238 -if exist $(OBJS)\penguin.ild del $(OBJS)\penguin.ild
239 -if exist $(OBJS)\penguin.ilf del $(OBJS)\penguin.ilf
240 -if exist $(OBJS)\penguin.ils del $(OBJS)\penguin.ils
e93c6860 241
dd65d8c8 242!if "$(USE_OPENGL)" == "1"
e93c6860 243$(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin.res
8ece421c 244 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(LDFLAGS) @&&|
7379e476 245 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 import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\penguin_penguin.res
e93c6860 246|
dd65d8c8 247!endif
b17c1746
DE
248
249data:
250 if not exist $(OBJS) mkdir $(OBJS)
4b764db3 251 for %f in (penguin.dxf.gz) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
b17c1746
DE
252
253$(OBJS)\penguin_penguin.obj: .\penguin.cpp
6e0fbb3d 254 $(CXX) -q -c -P -o$@ $(PENGUIN_CXXFLAGS) .\penguin.cpp
b17c1746 255
4b764db3 256$(OBJS)\penguin_dxfrenderer.obj: .\dxfrenderer.cpp
6e0fbb3d 257 $(CXX) -q -c -P -o$@ $(PENGUIN_CXXFLAGS) .\dxfrenderer.cpp
b17c1746
DE
258
259$(OBJS)\penguin_trackball.obj: .\trackball.c
6e0fbb3d 260 $(CC) -q -c -P- -o$@ $(PENGUIN_CFLAGS) .\trackball.c
b17c1746
DE
261
262$(OBJS)\penguin_penguin.res: .\penguin.rc
6e0fbb3d 263 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 .\penguin.rc
b14abf14 264