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