]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.bcc
reSWIGged for new runtime, etc.
[wxWidgets.git] / samples / render / makefile.bcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
b17c1746 3# Bakefile 0.1.2 (http://bakefile.sourceforge.net)
2d611b5c
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
2d611b5c 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
2d611b5c
VS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
16!include ../../build/msw/config.bcc
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
2d611b5c
VS
22### Variables: ###
23
2d611b5c
VS
24OBJS = \
25 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b17c1746
DE
26SETUPHDIR = \
27 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
28RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
9bfe7ad9
VS
29 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
31 -I.\..\..\samples $(CPPFLAGS) $(CXXFLAGS)
2d611b5c
VS
32RENDER_OBJECTS = \
33 $(OBJS)\render_render.obj
b17c1746
DE
34RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
35 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
36 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -DWXUSINGDLL \
37 $(CPPFLAGS) $(CXXFLAGS)
38RENDDLL_OBJECTS = \
39 $(OBJS)\renddll_renddll.obj
2d611b5c
VS
40
41### Conditionally set variables: ###
42
43!if "$(USE_GUI)" == "0"
44PORTNAME = base
45!endif
46!if "$(USE_GUI)" == "1"
47PORTNAME = msw
48!endif
49!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
50WXDEBUGFLAG = d
51!endif
52!if "$(DEBUG_FLAG)" == "1"
53WXDEBUGFLAG = d
54!endif
2d611b5c
VS
55!if "$(UNICODE)" == "1"
56WXUNICODEFLAG = u
57!endif
58!if "$(WXUNIV)" == "1"
59WXUNIVNAME = univ
60!endif
b17c1746
DE
61!if "$(SHARED)" == "1"
62WXDLLFLAG = dll
2d611b5c 63!endif
b17c1746
DE
64!if "$(WXUNIV)" == "1"
65__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
2d611b5c
VS
66!endif
67!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
68__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
69!endif
70!if "$(DEBUG_FLAG)" == "1"
71__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
72!endif
b17c1746
DE
73!if "$(UNICODE)" == "1"
74__UNICODE_DEFINE_p_1 = -d_UNICODE
75!endif
2d611b5c
VS
76!if "$(SHARED)" == "1"
77__DLLFLAG_p = -DWXUSINGDLL
78!endif
79!if "$(SHARED)" == "1"
80__DLLFLAG_p_1 = -dWXUSINGDLL
81!endif
b17c1746
DE
82!if "$(SHARED)" == "1"
83__renddll___depname = \
84 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.dll
2d611b5c
VS
85!endif
86!if "$(BUILD)" == "debug"
87__OPTIMIZEFLAG = -Od
88!endif
89!if "$(BUILD)" == "release"
90__OPTIMIZEFLAG = -O2
91!endif
92!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 93__RUNTIME_LIBS = -tWR
2d611b5c
VS
94!endif
95!if "$(RUNTIME_LIBS)" == "static"
96__RUNTIME_LIBS =
97!endif
98!if "$(RUNTIME_LIBS)" == "dynamic"
b17c1746 99__RUNTIME_LIBS_0 = i
2d611b5c
VS
100!endif
101!if "$(RUNTIME_LIBS)" == "static"
102__RUNTIME_LIBS_0 =
103!endif
b17c1746
DE
104!if "$(WXUNIV)" == "1"
105__WXUNIV_DEFINE_p = -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__
2d611b5c
VS
112!endif
113!if "$(UNICODE)" == "1"
b17c1746 114__UNICODE_DEFINE_p = -D_UNICODE
2d611b5c 115!endif
b17c1746
DE
116!if "$(SHARED)" == "0"
117LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG)
2c02ec05 118!endif
b17c1746
DE
119!if "$(SHARED)" == "1"
120LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG)
2d611b5c
VS
121!endif
122!if "$(MONOLITHIC)" == "0"
123__WXLIB_CORE_p = \
124 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
125!endif
b17c1746
DE
126!if "$(MONOLITHIC)" == "0"
127__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
128!endif
2d611b5c
VS
129!if "$(MONOLITHIC)" == "1"
130__WXLIB_MONO_p = \
131 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
132!endif
b17c1746
DE
133!if "$(USE_GUI)" == "1"
134__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
2d611b5c 135!endif
b17c1746
DE
136!if "$(USE_GUI)" == "1"
137__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
2d611b5c 138!endif
b17c1746
DE
139!if "$(USE_GUI)" == "1"
140__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
141!endif
142!if "$(MSLU)" == "1"
143__UNICOWS_LIB_p = unicows.lib
144!endif
145!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
146__DEBUGINFO = -v
147!endif
148!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
149__DEBUGINFO = -v-
150!endif
151!if "$(DEBUG_INFO)" == "0"
152__DEBUGINFO = -v-
153!endif
154!if "$(DEBUG_INFO)" == "1"
155__DEBUGINFO = -v
2d611b5c
VS
156!endif
157
2d611b5c
VS
158
159all: $(OBJS)
160$(OBJS):
161 -if not exist $(OBJS) mkdir $(OBJS)
162
163### Targets: ###
164
165all: $(OBJS)\render.exe $(__renddll___depname)
166
2d611b5c
VS
167clean:
168 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
169 -if exist $(OBJS)\*.res del $(OBJS)\*.res
170 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
ec08d395
JS
171 -if exist $(OBJS)\render.tds del $(OBJS)\render.tds
172 -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc
173 -if exist $(OBJS)\render.ild del $(OBJS)\render.ild
174 -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf
175 -if exist $(OBJS)\render.ils del $(OBJS)\render.ils
176 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.dll
177 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.tds
178 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.ilc
179 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.ild
180 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.ilf
181 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.ils
2d611b5c 182
b17c1746
DE
183$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res
184 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
185 c0w32.obj $(RENDER_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\render_sample.res
186|
187
2d611b5c 188!if "$(SHARED)" == "1"
ec08d395 189$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_bcc.dll: $(RENDDLL_OBJECTS)
9bfe7ad9 190 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
b17c1746 191 c0d32.obj $(RENDDLL_OBJECTS),$@,, $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,,
2d611b5c
VS
192|
193!endif
194
b17c1746
DE
195$(OBJS)\render_sample.res: .\..\..\samples\sample.rc
196 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 $**
197
198$(OBJS)\render_render.obj: .\render.cpp
199 $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) $**
200
201$(OBJS)\renddll_renddll.obj: .\renddll.cpp
202 $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) $**