1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.5 (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)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
28 LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
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)
44 $(OBJS)\penguin_penguin.obj \
45 $(OBJS)\penguin_dxfrenderer.obj \
46 $(OBJS)\penguin_trackball.obj
48 ### Conditionally set variables: ###
50 !if "$(USE_GUI)" == "0"
53 !if "$(USE_GUI)" == "1"
56 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
59 !if "$(DEBUG_FLAG)" == "1"
62 !if "$(UNICODE)" == "1"
65 !if "$(WXUNIV)" == "1"
68 !if "$(SHARED)" == "1"
71 !if "$(SHARED)" == "0"
74 !if "$(SHARED)" == "1"
77 !if "$(MONOLITHIC)" == "0"
80 !if "$(MONOLITHIC)" == "1"
83 !if "$(USE_OPENGL)" == "1"
84 __penguin___depname = $(OBJS)\penguin.exe
86 !if "$(BUILD)" == "debug"
87 __OPTIMIZEFLAG_2 = -Od
89 !if "$(BUILD)" == "release"
90 __OPTIMIZEFLAG_2 = -O2
92 !if "$(USE_THREADS)" == "0"
95 !if "$(USE_THREADS)" == "1"
98 !if "$(USE_THREADS)" == "0"
101 !if "$(USE_THREADS)" == "1"
102 __THREADSFLAG_6 = -tWM
104 !if "$(RUNTIME_LIBS)" == "dynamic"
105 __RUNTIME_LIBS_7 = -tWR
107 !if "$(RUNTIME_LIBS)" == "static"
110 !if "$(RUNTIME_LIBS)" == "dynamic"
113 !if "$(RUNTIME_LIBS)" == "static"
116 !if "$(WXUNIV)" == "1"
117 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
119 !if "$(WXUNIV)" == "1"
120 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
122 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
123 __DEBUG_DEFINE_p = -D__WXDEBUG__
125 !if "$(DEBUG_FLAG)" == "1"
126 __DEBUG_DEFINE_p = -D__WXDEBUG__
128 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
129 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
131 !if "$(DEBUG_FLAG)" == "1"
132 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
134 !if "$(USE_EXCEPTIONS)" == "0"
135 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
137 !if "$(USE_EXCEPTIONS)" == "0"
138 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
140 !if "$(USE_RTTI)" == "0"
141 __RTTI_DEFINE_p = -DwxNO_RTTI
143 !if "$(USE_RTTI)" == "0"
144 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
146 !if "$(USE_THREADS)" == "0"
147 __THREAD_DEFINE_p = -DwxNO_THREADS
149 !if "$(USE_THREADS)" == "0"
150 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
152 !if "$(UNICODE)" == "0"
153 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
155 !if "$(UNICODE)" == "1"
156 __UNICODE_DEFINE_p = -D_UNICODE
158 !if "$(UNICODE)" == "0"
159 __UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0
161 !if "$(UNICODE)" == "1"
162 __UNICODE_DEFINE_p_1 = -d_UNICODE
165 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
168 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
170 !if "$(USE_GDIPLUS)" == "1"
171 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
173 !if "$(USE_GDIPLUS)" == "1"
174 __GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
176 !if "$(SHARED)" == "1"
177 __DLLFLAG_p = -DWXUSINGDLL
179 !if "$(SHARED)" == "1"
180 __DLLFLAG_p_1 = -dWXUSINGDLL
182 !if "$(MONOLITHIC)" == "0"
184 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
186 !if "$(MONOLITHIC)" == "0"
188 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
190 !if "$(MONOLITHIC)" == "1"
192 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
194 !if "$(USE_GUI)" == "1"
195 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
197 !if "$(USE_GUI)" == "1"
198 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
200 !if "$(USE_GUI)" == "1"
201 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
204 __UNICOWS_LIB_p = unicows.lib
206 !if "$(USE_GDIPLUS)" == "1"
207 __GDIPLUS_LIB_p = gdiplus.lib
209 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
212 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
215 !if "$(DEBUG_INFO)" == "0"
218 !if "$(DEBUG_INFO)" == "1"
225 -if not exist $(OBJS) mkdir $(OBJS)
229 all: $(__penguin___depname) data
232 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
233 -if exist $(OBJS)\*.res del $(OBJS)\*.res
234 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
235 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
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
242 !if "$(USE_OPENGL)" == "1"
243 $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin.res
244 ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(LDFLAGS) @&&|
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
250 if not exist $(OBJS) mkdir $(OBJS)
251 for %f in (penguin.dxf.gz) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
253 $(OBJS)\penguin_penguin.obj: .\penguin.cpp
254 $(CXX) -q -c -P -o$@ $(PENGUIN_CXXFLAGS) .\penguin.cpp
256 $(OBJS)\penguin_dxfrenderer.obj: .\dxfrenderer.cpp
257 $(CXX) -q -c -P -o$@ $(PENGUIN_CXXFLAGS) .\dxfrenderer.cpp
259 $(OBJS)\penguin_trackball.obj: .\trackball.c
260 $(CC) -q -c -P- -o$@ $(PENGUIN_CFLAGS) .\trackball.c
262 $(OBJS)\penguin_penguin.res: .\penguin.rc
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