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 # =========================================================================
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
13 BCCDIR = $(MAKEDIR)\..
16 !include ../../../build/msw/config.bcc
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
27 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
29 .\..\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
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)
47 $(OBJS)\penguin_penguin.obj \
48 $(OBJS)\penguin_dxfrenderer.obj \
49 $(OBJS)\penguin_trackball.obj
51 ### Conditionally set variables: ###
53 !if "$(TOOLKIT)" == "GTK"
54 WIN32_TOOLKIT_LOWERCASE = gtk
56 !if "$(TOOLKIT)" == "MSW"
57 WIN32_TOOLKIT_LOWERCASE = msw
59 !if "$(USE_GUI)" == "0"
62 !if "$(USE_GUI)" == "1"
63 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
65 !if "$(TOOLKIT)" == "MAC"
68 !if "$(OFFICIAL_BUILD)" == "1"
69 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
71 !if "$(BUILD)" == "debug"
74 !if "$(UNICODE)" == "1"
77 !if "$(WXUNIV)" == "1"
80 !if "$(SHARED)" == "1"
83 !if "$(SHARED)" == "0"
86 !if "$(SHARED)" == "1"
89 !if "$(MONOLITHIC)" == "0"
92 !if "$(MONOLITHIC)" == "1"
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 \
100 !if "$(USE_OPENGL)" == "1"
101 __penguin___depname = $(OBJS)\penguin.exe
103 !if "$(BUILD)" == "debug"
104 __OPTIMIZEFLAG_2 = -Od
106 !if "$(BUILD)" == "release"
107 __OPTIMIZEFLAG_2 = -O2
109 !if "$(USE_THREADS)" == "0"
112 !if "$(USE_THREADS)" == "1"
115 !if "$(USE_THREADS)" == "0"
118 !if "$(USE_THREADS)" == "1"
119 __THREADSFLAG_6 = -tWM
121 !if "$(RUNTIME_LIBS)" == "dynamic"
122 __RUNTIME_LIBS_7 = -tWR
124 !if "$(RUNTIME_LIBS)" == "static"
127 !if "$(RUNTIME_LIBS)" == "dynamic"
130 !if "$(RUNTIME_LIBS)" == "static"
133 !if "$(WXUNIV)" == "1"
134 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
136 !if "$(WXUNIV)" == "1"
137 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
139 !if "$(DEBUG_FLAG)" == "0"
140 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
142 !if "$(DEBUG_FLAG)" == "0"
143 __DEBUG_DEFINE_p_1 = -dwxDEBUG_LEVEL=0
145 !if "$(BUILD)" == "release"
146 __NDEBUG_DEFINE_p = -DNDEBUG
148 !if "$(BUILD)" == "release"
149 __NDEBUG_DEFINE_p_1 = -dNDEBUG
151 !if "$(USE_EXCEPTIONS)" == "0"
152 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
154 !if "$(USE_EXCEPTIONS)" == "0"
155 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
157 !if "$(USE_RTTI)" == "0"
158 __RTTI_DEFINE_p = -DwxNO_RTTI
160 !if "$(USE_RTTI)" == "0"
161 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
163 !if "$(USE_THREADS)" == "0"
164 __THREAD_DEFINE_p = -DwxNO_THREADS
166 !if "$(USE_THREADS)" == "0"
167 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
169 !if "$(UNICODE)" == "0"
170 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
172 !if "$(UNICODE)" == "1"
173 __UNICODE_DEFINE_p = -D_UNICODE
175 !if "$(UNICODE)" == "0"
176 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0
178 !if "$(UNICODE)" == "1"
179 __UNICODE_DEFINE_p_1 = -d_UNICODE
182 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
185 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
187 !if "$(USE_CAIRO)" == "1"
188 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
190 !if "$(USE_CAIRO)" == "1"
191 ____CAIRO_INCLUDEDIR_FILENAMES_1_p = -i$(CAIRO_ROOT)\include\cairo
193 !if "$(SHARED)" == "1"
194 __DLLFLAG_p = -DWXUSINGDLL
196 !if "$(SHARED)" == "1"
197 __DLLFLAG_p_1 = -dWXUSINGDLL
199 !if "$(MONOLITHIC)" == "0"
201 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
203 !if "$(MONOLITHIC)" == "0"
205 wxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
207 !if "$(MONOLITHIC)" == "1"
209 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
211 !if "$(USE_GUI)" == "1"
212 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
214 !if "$(USE_GUI)" == "1"
215 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
217 !if "$(USE_GUI)" == "1"
218 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
221 __UNICOWS_LIB_p = unicows.lib
223 !if "$(USE_CAIRO)" == "1"
224 __CAIRO_LIB_p = cairo.lib
226 !if "$(USE_CAIRO)" == "1"
227 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
229 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
232 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
235 !if "$(DEBUG_INFO)" == "0"
238 !if "$(DEBUG_INFO)" == "1"
245 -if not exist $(OBJS) mkdir $(OBJS)
249 all: $(__penguin___depname) data
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
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
270 if not exist $(OBJS) mkdir $(OBJS)
271 for %f in (penguin.dxf.gz) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
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
276 $(OBJS)\penguin_penguin.obj: .\penguin.cpp
277 $(CXX) -q -c -P -o$@ $(PENGUIN_CXXFLAGS) .\penguin.cpp
279 $(OBJS)\penguin_dxfrenderer.obj: .\dxfrenderer.cpp
280 $(CXX) -q -c -P -o$@ $(PENGUIN_CXXFLAGS) .\dxfrenderer.cpp
282 $(OBJS)\penguin_trackball.obj: .\trackball.c
283 $(CC) -q -c -P- -o$@ $(PENGUIN_CFLAGS) .\trackball.c