]>
Commit | Line | Data |
---|---|---|
2d611b5c VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c4839ccf | 3 | # Bakefile 0.1.4 (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 |
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 | ||
2d611b5c VS |
22 | ### Variables: ### |
23 | ||
c33fae85 | 24 | WX_RELEASE_NODOT = 25 |
ab921f5f | 25 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3 |
2d611b5c VS |
26 | OBJS = \ |
27 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b17c1746 DE |
28 | SETUPHDIR = \ |
29 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
30 | RENDER_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \ | |
9bfe7ad9 VS |
31 | $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
32 | $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \ | |
c33fae85 | 33 | -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS) |
2d611b5c VS |
34 | RENDER_OBJECTS = \ |
35 | $(OBJS)\render_render.obj | |
b17c1746 DE |
36 | RENDDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \ |
37 | $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
38 | $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -DWXUSINGDLL \ | |
39 | $(CPPFLAGS) $(CXXFLAGS) | |
40 | RENDDLL_OBJECTS = \ | |
41 | $(OBJS)\renddll_renddll.obj | |
2d611b5c VS |
42 | |
43 | ### Conditionally set variables: ### | |
44 | ||
45 | !if "$(USE_GUI)" == "0" | |
46 | PORTNAME = base | |
47 | !endif | |
48 | !if "$(USE_GUI)" == "1" | |
49 | PORTNAME = msw | |
50 | !endif | |
51 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
52 | WXDEBUGFLAG = d | |
53 | !endif | |
54 | !if "$(DEBUG_FLAG)" == "1" | |
55 | WXDEBUGFLAG = d | |
56 | !endif | |
2d611b5c VS |
57 | !if "$(UNICODE)" == "1" |
58 | WXUNICODEFLAG = u | |
59 | !endif | |
60 | !if "$(WXUNIV)" == "1" | |
61 | WXUNIVNAME = univ | |
62 | !endif | |
b17c1746 DE |
63 | !if "$(SHARED)" == "1" |
64 | WXDLLFLAG = dll | |
2d611b5c | 65 | !endif |
078c7a59 | 66 | !if "$(BUILD)" == "debug" && "$(UNICODE)" == "0" |
314a6446 | 67 | PLUGINSUFFIX = d |
078c7a59 VS |
68 | !endif |
69 | !if "$(BUILD)" == "debug" && "$(UNICODE)" == "1" | |
314a6446 | 70 | PLUGINSUFFIX = ud |
078c7a59 VS |
71 | !endif |
72 | !if "$(BUILD)" == "release" && "$(UNICODE)" == "0" | |
73 | PLUGINSUFFIX = | |
74 | !endif | |
75 | !if "$(BUILD)" == "release" && "$(UNICODE)" == "1" | |
314a6446 | 76 | PLUGINSUFFIX = u |
078c7a59 | 77 | !endif |
b17c1746 DE |
78 | !if "$(WXUNIV)" == "1" |
79 | __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__ | |
2d611b5c VS |
80 | !endif |
81 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
82 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
83 | !endif | |
84 | !if "$(DEBUG_FLAG)" == "1" | |
85 | __DEBUG_DEFINE_p_1 = -d__WXDEBUG__ | |
86 | !endif | |
b17c1746 DE |
87 | !if "$(UNICODE)" == "1" |
88 | __UNICODE_DEFINE_p_1 = -d_UNICODE | |
89 | !endif | |
2d611b5c VS |
90 | !if "$(SHARED)" == "1" |
91 | __DLLFLAG_p = -DWXUSINGDLL | |
92 | !endif | |
93 | !if "$(SHARED)" == "1" | |
94 | __DLLFLAG_p_1 = -dWXUSINGDLL | |
95 | !endif | |
b17c1746 DE |
96 | !if "$(SHARED)" == "1" |
97 | __renddll___depname = \ | |
c33fae85 | 98 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll |
2d611b5c VS |
99 | !endif |
100 | !if "$(BUILD)" == "debug" | |
101 | __OPTIMIZEFLAG = -Od | |
102 | !endif | |
103 | !if "$(BUILD)" == "release" | |
104 | __OPTIMIZEFLAG = -O2 | |
105 | !endif | |
106 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
b17c1746 | 107 | __RUNTIME_LIBS = -tWR |
2d611b5c VS |
108 | !endif |
109 | !if "$(RUNTIME_LIBS)" == "static" | |
110 | __RUNTIME_LIBS = | |
111 | !endif | |
112 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
b17c1746 | 113 | __RUNTIME_LIBS_0 = i |
2d611b5c VS |
114 | !endif |
115 | !if "$(RUNTIME_LIBS)" == "static" | |
116 | __RUNTIME_LIBS_0 = | |
117 | !endif | |
b17c1746 DE |
118 | !if "$(WXUNIV)" == "1" |
119 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
120 | !endif | |
121 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
122 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
123 | !endif | |
124 | !if "$(DEBUG_FLAG)" == "1" | |
125 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
2d611b5c VS |
126 | !endif |
127 | !if "$(UNICODE)" == "1" | |
b17c1746 | 128 | __UNICODE_DEFINE_p = -D_UNICODE |
2d611b5c | 129 | !endif |
b17c1746 DE |
130 | !if "$(SHARED)" == "0" |
131 | LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG) | |
2c02ec05 | 132 | !endif |
b17c1746 DE |
133 | !if "$(SHARED)" == "1" |
134 | LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG) | |
2d611b5c VS |
135 | !endif |
136 | !if "$(MONOLITHIC)" == "0" | |
137 | __WXLIB_CORE_p = \ | |
c33fae85 | 138 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib |
2d611b5c | 139 | !endif |
b17c1746 | 140 | !if "$(MONOLITHIC)" == "0" |
c33fae85 RN |
141 | __WXLIB_BASE_p = \ |
142 | wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib | |
b17c1746 | 143 | !endif |
2d611b5c VS |
144 | !if "$(MONOLITHIC)" == "1" |
145 | __WXLIB_MONO_p = \ | |
c33fae85 | 146 | wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib |
2d611b5c | 147 | !endif |
b17c1746 | 148 | !if "$(USE_GUI)" == "1" |
9c2d002b | 149 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib |
2d611b5c | 150 | !endif |
b17c1746 | 151 | !if "$(USE_GUI)" == "1" |
9c2d002b | 152 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib |
2d611b5c | 153 | !endif |
b17c1746 | 154 | !if "$(USE_GUI)" == "1" |
9c2d002b | 155 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib |
b17c1746 DE |
156 | !endif |
157 | !if "$(MSLU)" == "1" | |
158 | __UNICOWS_LIB_p = unicows.lib | |
159 | !endif | |
160 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" | |
161 | __DEBUGINFO = -v | |
162 | !endif | |
163 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" | |
164 | __DEBUGINFO = -v- | |
165 | !endif | |
166 | !if "$(DEBUG_INFO)" == "0" | |
167 | __DEBUGINFO = -v- | |
168 | !endif | |
169 | !if "$(DEBUG_INFO)" == "1" | |
170 | __DEBUGINFO = -v | |
2d611b5c VS |
171 | !endif |
172 | ||
2d611b5c VS |
173 | |
174 | all: $(OBJS) | |
175 | $(OBJS): | |
176 | -if not exist $(OBJS) mkdir $(OBJS) | |
177 | ||
178 | ### Targets: ### | |
179 | ||
180 | all: $(OBJS)\render.exe $(__renddll___depname) | |
181 | ||
2d611b5c VS |
182 | clean: |
183 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
184 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
185 | -if exist $(OBJS)\render.exe del $(OBJS)\render.exe | |
ec08d395 JS |
186 | -if exist $(OBJS)\render.tds del $(OBJS)\render.tds |
187 | -if exist $(OBJS)\render.ilc del $(OBJS)\render.ilc | |
188 | -if exist $(OBJS)\render.ild del $(OBJS)\render.ild | |
189 | -if exist $(OBJS)\render.ilf del $(OBJS)\render.ilf | |
190 | -if exist $(OBJS)\render.ils del $(OBJS)\render.ils | |
c33fae85 RN |
191 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll |
192 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.tds | |
193 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilc | |
194 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ild | |
195 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ilf | |
196 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.ils | |
2d611b5c | 197 | |
b17c1746 DE |
198 | $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample.res |
199 | ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&| | |
9c2d002b | 200 | 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$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, $(OBJS)\render_sample.res |
b17c1746 DE |
201 | | |
202 | ||
2d611b5c | 203 | !if "$(SHARED)" == "1" |
c33fae85 | 204 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_bcc.dll: $(RENDDLL_OBJECTS) |
9bfe7ad9 | 205 | ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) @&&| |
9c2d002b | 206 | 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$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_0).lib,, |
2d611b5c VS |
207 | | |
208 | !endif | |
209 | ||
b17c1746 DE |
210 | $(OBJS)\render_sample.res: .\..\..\samples\sample.rc |
211 | 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 $** | |
212 | ||
213 | $(OBJS)\render_render.obj: .\render.cpp | |
214 | $(CXX) -q -c -P -o$@ $(RENDER_CXXFLAGS) $** | |
215 | ||
216 | $(OBJS)\renddll_renddll.obj: .\renddll.cpp | |
217 | $(CXX) -q -c -P -o$@ $(RENDDLL_CXXFLAGS) $** |