]> git.saurik.com Git - wxWidgets.git/blob - samples/opengl/penguin/makefile.bcc
Added wxFULL_REPAINT_ON_RESIZE and sample icon to OpenGL samples
[wxWidgets.git] / samples / opengl / penguin / makefile.bcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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 = 25
25 OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 LIBDIRNAME = .\..\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
28 SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30 PENGUIN_CFLAGS = $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
33 -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) \
34 $(CFLAGS)
35 PENGUIN_CXXFLAGS = $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include $(__DEBUGINFO) \
36 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
37 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
38 -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\..\samples -DNOPCH $(CPPFLAGS) \
39 $(CXXFLAGS)
40 PENGUIN_OBJECTS = \
41 $(OBJS)\penguin_penguin.obj \
42 $(OBJS)\penguin_lw.obj \
43 $(OBJS)\penguin_trackball.obj
44
45 ### Conditionally set variables: ###
46
47 !if "$(USE_GUI)" == "0"
48 PORTNAME = base
49 !endif
50 !if "$(USE_GUI)" == "1"
51 PORTNAME = msw
52 !endif
53 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
54 WXDEBUGFLAG = d
55 !endif
56 !if "$(DEBUG_FLAG)" == "1"
57 WXDEBUGFLAG = d
58 !endif
59 !if "$(UNICODE)" == "1"
60 WXUNICODEFLAG = u
61 !endif
62 !if "$(WXUNIV)" == "1"
63 WXUNIVNAME = univ
64 !endif
65 !if "$(SHARED)" == "1"
66 WXDLLFLAG = dll
67 !endif
68 !if "$(SHARED)" == "0"
69 LIBTYPE_SUFFIX = lib
70 !endif
71 !if "$(SHARED)" == "1"
72 LIBTYPE_SUFFIX = dll
73 !endif
74 !if "$(MONOLITHIC)" == "0"
75 EXTRALIBS_FOR_BASE =
76 !endif
77 !if "$(MONOLITHIC)" == "1"
78 EXTRALIBS_FOR_BASE =
79 !endif
80 !if "$(USE_OPENGL)" == "1"
81 __penguin___depname = $(OBJS)\penguin.exe
82 !endif
83 !if "$(BUILD)" == "debug"
84 __OPTIMIZEFLAG_2 = -Od
85 !endif
86 !if "$(BUILD)" == "release"
87 __OPTIMIZEFLAG_2 = -O2
88 !endif
89 !if "$(RUNTIME_LIBS)" == "dynamic"
90 __RUNTIME_LIBS_6 = -tWR
91 !endif
92 !if "$(RUNTIME_LIBS)" == "static"
93 __RUNTIME_LIBS_6 =
94 !endif
95 !if "$(RUNTIME_LIBS)" == "dynamic"
96 __RUNTIME_LIBS_7 = i
97 !endif
98 !if "$(RUNTIME_LIBS)" == "static"
99 __RUNTIME_LIBS_7 =
100 !endif
101 !if "$(WXUNIV)" == "1"
102 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103 !endif
104 !if "$(WXUNIV)" == "1"
105 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
106 !endif
107 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
108 __DEBUG_DEFINE_p = -D__WXDEBUG__
109 !endif
110 !if "$(DEBUG_FLAG)" == "1"
111 __DEBUG_DEFINE_p = -D__WXDEBUG__
112 !endif
113 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
114 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
115 !endif
116 !if "$(DEBUG_FLAG)" == "1"
117 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
118 !endif
119 !if "$(UNICODE)" == "1"
120 __UNICODE_DEFINE_p = -D_UNICODE
121 !endif
122 !if "$(UNICODE)" == "1"
123 __UNICODE_DEFINE_p_1 = -d_UNICODE
124 !endif
125 !if "$(SHARED)" == "1"
126 __DLLFLAG_p = -DWXUSINGDLL
127 !endif
128 !if "$(SHARED)" == "1"
129 __DLLFLAG_p_1 = -dWXUSINGDLL
130 !endif
131 !if "$(MONOLITHIC)" == "0"
132 __WXLIB_CORE_p = \
133 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
134 !endif
135 !if "$(MONOLITHIC)" == "0"
136 __WXLIB_BASE_p = \
137 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
138 !endif
139 !if "$(MONOLITHIC)" == "1"
140 __WXLIB_MONO_p = \
141 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
142 !endif
143 !if "$(USE_GUI)" == "1"
144 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
145 !endif
146 !if "$(USE_GUI)" == "1"
147 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
148 !endif
149 !if "$(USE_GUI)" == "1"
150 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
151 !endif
152 !if "$(MSLU)" == "1"
153 __UNICOWS_LIB_p = unicows.lib
154 !endif
155 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
156 __DEBUGINFO = -v
157 !endif
158 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
159 __DEBUGINFO = -v-
160 !endif
161 !if "$(DEBUG_INFO)" == "0"
162 __DEBUGINFO = -v-
163 !endif
164 !if "$(DEBUG_INFO)" == "1"
165 __DEBUGINFO = -v
166 !endif
167
168
169 all: $(OBJS)
170 $(OBJS):
171 -if not exist $(OBJS) mkdir $(OBJS)
172
173 ### Targets: ###
174
175 all: $(__penguin___depname) data
176
177 clean:
178 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
179 -if exist $(OBJS)\*.res del $(OBJS)\*.res
180 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
181 -if exist $(OBJS)\penguin.exe del $(OBJS)\penguin.exe
182 -if exist $(OBJS)\penguin.tds del $(OBJS)\penguin.tds
183 -if exist $(OBJS)\penguin.ilc del $(OBJS)\penguin.ilc
184 -if exist $(OBJS)\penguin.ild del $(OBJS)\penguin.ild
185 -if exist $(OBJS)\penguin.ilf del $(OBJS)\penguin.ilf
186 -if exist $(OBJS)\penguin.ils del $(OBJS)\penguin.ils
187
188 !if "$(USE_OPENGL)" == "1"
189 $(OBJS)\penguin.exe: $(PENGUIN_OBJECTS) $(OBJS)\penguin_penguin.res
190 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
191 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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\penguin_penguin.res
192 |
193 !endif
194
195 data:
196 if not exist $(OBJS) mkdir $(OBJS)
197 for %f in (penguin.lwo) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
198
199 $(OBJS)\penguin_penguin.obj: .\penguin.cpp
200 $(CXX) -q -c -P -o$@ $(PENGUIN_CXXFLAGS) $**
201
202 $(OBJS)\penguin_lw.obj: .\lw.cpp
203 $(CXX) -q -c -P -o$@ $(PENGUIN_CXXFLAGS) $**
204
205 $(OBJS)\penguin_trackball.obj: .\trackball.c
206 $(CC) -q -c -P- -o$@ $(PENGUIN_CFLAGS) $**
207
208 $(OBJS)\penguin_penguin.res: .\penguin.rc
209 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\..\samples -dNOPCH $**
210