]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
bdc408c4 | 3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) |
250700e4 RD |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
7 | !ifndef BCCDIR | |
8 | BCCDIR = $(MAKEDIR)\.. | |
9 | !endif | |
10 | ||
fd9f42b6 | 11 | !include ../../../build/msw/config.bcc |
250700e4 RD |
12 | |
13 | # ------------------------------------------------------------------------- | |
14 | # Do not modify the rest of this file! | |
15 | # ------------------------------------------------------------------------- | |
16 | ||
17 | !if "$(BCCDIR)" == "\.." | |
18 | !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4 | |
19 | !endif | |
20 | ||
21 | ### Variables: ### | |
22 | ||
3f55f5b8 | 23 | GIZMOSDLL_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \ |
250700e4 | 24 | $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
75a0a7b7 | 25 | $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \ |
bdc408c4 VS |
26 | -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \ |
27 | $(CXXFLAGS) -Hu -H=$(OBJS)\wxprec_gizmosdll.csm | |
3f55f5b8 VS |
28 | GIZMOSDLL_OBJECTS = \ |
29 | $(OBJS)\gizmosdll_dummy.obj \ | |
30 | $(OBJS)\gizmosdll_dynamicsash.obj \ | |
31 | $(OBJS)\gizmosdll_editlbox.obj \ | |
32 | $(OBJS)\gizmosdll_ledctrl.obj \ | |
33 | $(OBJS)\gizmosdll_multicell.obj \ | |
34 | $(OBJS)\gizmosdll_splittree.obj \ | |
35 | $(OBJS)\gizmosdll_statpict.obj | |
36 | GIZMOSLIB_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \ | |
250700e4 | 37 | $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
75a0a7b7 | 38 | $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \ |
bdc408c4 VS |
39 | -I..\..\src\gizmos\..\..\include $(CXXFLAGS) -Hu \ |
40 | -H=$(OBJS)\wxprec_gizmoslib.csm | |
3f55f5b8 VS |
41 | GIZMOSLIB_OBJECTS = \ |
42 | $(OBJS)\gizmoslib_dummy.obj \ | |
43 | $(OBJS)\gizmoslib_dynamicsash.obj \ | |
44 | $(OBJS)\gizmoslib_editlbox.obj \ | |
45 | $(OBJS)\gizmoslib_ledctrl.obj \ | |
46 | $(OBJS)\gizmoslib_multicell.obj \ | |
47 | $(OBJS)\gizmoslib_splittree.obj \ | |
48 | $(OBJS)\gizmoslib_statpict.obj | |
250700e4 RD |
49 | OBJS = \ |
50 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
75a0a7b7 VS |
51 | SETUPHDIR = \ |
52 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
250700e4 RD |
53 | |
54 | ### Conditionally set variables: ### | |
55 | ||
75a0a7b7 VS |
56 | !if "$(SHARED)" == "0" |
57 | LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\bcc_lib$(CFG) | |
58 | !endif | |
59 | !if "$(SHARED)" == "1" | |
60 | LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\bcc_dll$(CFG) | |
61 | !endif | |
250700e4 RD |
62 | !if "$(USE_GUI)" == "0" |
63 | PORTNAME = base | |
64 | !endif | |
65 | !if "$(USE_GUI)" == "1" | |
66 | PORTNAME = msw | |
67 | !endif | |
68 | !if "$(OFFICIAL_BUILD)" == "0" | |
69 | VENDORTAG = _$(VENDOR) | |
70 | !endif | |
71 | !if "$(OFFICIAL_BUILD)" == "1" | |
72 | VENDORTAG = | |
73 | !endif | |
3f55f5b8 VS |
74 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" |
75 | WXDEBUGFLAG = d | |
76 | !endif | |
77 | !if "$(DEBUG_FLAG)" == "1" | |
250700e4 RD |
78 | WXDEBUGFLAG = d |
79 | !endif | |
80 | !if "$(SHARED)" == "1" | |
81 | WXDLLFLAG = dll | |
82 | !endif | |
83 | !if "$(UNICODE)" == "1" | |
84 | WXUNICODEFLAG = u | |
85 | !endif | |
86 | !if "$(WXUNIV)" == "1" | |
87 | WXUNIVNAME = univ | |
88 | !endif | |
3f55f5b8 VS |
89 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
90 | __DEBUGINFO = -v | |
250700e4 | 91 | !endif |
3f55f5b8 VS |
92 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" |
93 | __DEBUGINFO = -v- | |
250700e4 | 94 | !endif |
3f55f5b8 VS |
95 | !if "$(DEBUG_INFO)" == "0" |
96 | __DEBUGINFO = -v- | |
97 | !endif | |
98 | !if "$(DEBUG_INFO)" == "1" | |
99 | __DEBUGINFO = -v | |
100 | !endif | |
101 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
250700e4 RD |
102 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
103 | !endif | |
3f55f5b8 VS |
104 | !if "$(DEBUG_FLAG)" == "1" |
105 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
106 | !endif | |
107 | !if "$(USE_GUI)" == "1" | |
108 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
109 | !endif | |
110 | !if "$(USE_GUI)" == "1" | |
111 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
112 | !endif | |
113 | !if "$(USE_GUI)" == "1" | |
114 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
115 | !endif | |
250700e4 RD |
116 | !if "$(BUILD)" == "debug" |
117 | __OPTIMIZEFLAG = -Od | |
118 | !endif | |
119 | !if "$(BUILD)" == "release" | |
120 | __OPTIMIZEFLAG = -O2 | |
121 | !endif | |
122 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
123 | __RUNTIME_LIBS = -tWR | |
124 | !endif | |
125 | !if "$(RUNTIME_LIBS)" == "static" | |
126 | __RUNTIME_LIBS = | |
127 | !endif | |
128 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
129 | __RUNTIME_LIBS_7 = i | |
130 | !endif | |
131 | !if "$(RUNTIME_LIBS)" == "static" | |
132 | __RUNTIME_LIBS_7 = | |
133 | !endif | |
134 | !if "$(UNICODE)" == "1" | |
135 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
136 | !endif | |
2265a2d5 VS |
137 | !if "$(MSLU)" == "1" |
138 | __UNICOWS_LIB_p = unicows.lib | |
139 | !endif | |
250700e4 RD |
140 | !if "$(MONOLITHIC)" == "0" |
141 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
142 | !endif | |
143 | !if "$(MONOLITHIC)" == "0" | |
144 | __WXLIB_CORE_p = \ | |
145 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
146 | !endif | |
147 | !if "$(MONOLITHIC)" == "1" | |
148 | __WXLIB_MONO_p = \ | |
149 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
150 | !endif | |
151 | !if "$(WXUNIV)" == "1" | |
152 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
153 | !endif | |
154 | !if "$(SHARED)" == "1" | |
155 | __gizmosdll___depname = \ | |
3f55f5b8 | 156 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll |
250700e4 RD |
157 | !endif |
158 | !if "$(SHARED)" == "0" | |
159 | __gizmoslib___depname = \ | |
3f55f5b8 | 160 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib |
250700e4 RD |
161 | !endif |
162 | ||
163 | ||
164 | all: $(OBJS) | |
165 | $(OBJS): | |
166 | -if not exist $(OBJS) mkdir $(OBJS) | |
167 | ||
168 | ### Targets: ### | |
169 | ||
170 | all: $(__gizmosdll___depname) $(__gizmoslib___depname) | |
171 | ||
172 | $(OBJS)\gizmosdll_dummy.obj: ../../src/gizmos\..\..\..\src\msw\dummy.cpp | |
173 | $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) -H $** | |
174 | ||
175 | $(OBJS)\gizmosdll_dynamicsash.obj: ../../src/gizmos\dynamicsash.cpp | |
176 | $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $** | |
177 | ||
178 | $(OBJS)\gizmosdll_editlbox.obj: ../../src/gizmos\editlbox.cpp | |
179 | $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $** | |
180 | ||
181 | $(OBJS)\gizmosdll_ledctrl.obj: ../../src/gizmos\ledctrl.cpp | |
182 | $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $** | |
183 | ||
184 | $(OBJS)\gizmosdll_multicell.obj: ../../src/gizmos\multicell.cpp | |
185 | $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $** | |
186 | ||
187 | $(OBJS)\gizmosdll_splittree.obj: ../../src/gizmos\splittree.cpp | |
188 | $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $** | |
189 | ||
190 | $(OBJS)\gizmosdll_statpict.obj: ../../src/gizmos\statpict.cpp | |
191 | $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $** | |
192 | ||
193 | $(OBJS)\gizmoslib_dummy.obj: ../../src/gizmos\..\..\..\src\msw\dummy.cpp | |
194 | $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) -H $** | |
195 | ||
196 | $(OBJS)\gizmoslib_dynamicsash.obj: ../../src/gizmos\dynamicsash.cpp | |
197 | $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $** | |
198 | ||
199 | $(OBJS)\gizmoslib_editlbox.obj: ../../src/gizmos\editlbox.cpp | |
200 | $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $** | |
201 | ||
202 | $(OBJS)\gizmoslib_ledctrl.obj: ../../src/gizmos\ledctrl.cpp | |
203 | $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $** | |
204 | ||
205 | $(OBJS)\gizmoslib_multicell.obj: ../../src/gizmos\multicell.cpp | |
206 | $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $** | |
207 | ||
208 | $(OBJS)\gizmoslib_splittree.obj: ../../src/gizmos\splittree.cpp | |
209 | $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $** | |
210 | ||
211 | $(OBJS)\gizmoslib_statpict.obj: ../../src/gizmos\statpict.cpp | |
212 | $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $** | |
213 | ||
214 | clean: | |
215 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
216 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
3f55f5b8 VS |
217 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll |
218 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib | |
219 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib | |
250700e4 RD |
220 | |
221 | !if "$(SHARED)" == "1" | |
75a0a7b7 | 222 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll: $(OBJS)\gizmosdll_dummy.obj $(GIZMOSDLL_OBJECTS) |
3f55f5b8 | 223 | ilink32 -Tpd -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) @&&| |
2265a2d5 | 224 | c0d32.obj $(GIZMOSDLL_OBJECTS),$@,, $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) import32.lib ole2w32.lib $(__WXLIB_BASE_p) $(__WXLIB_CORE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, |
250700e4 | 225 | | |
3f55f5b8 | 226 | implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos $@ |
250700e4 RD |
227 | !endif |
228 | ||
229 | !if "$(SHARED)" == "0" | |
75a0a7b7 | 230 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib: $(OBJS)\gizmoslib_dummy.obj $(GIZMOSLIB_OBJECTS) |
250700e4 RD |
231 | if exist $@ del $@ |
232 | tlib /a /p2048 $@ @&&| | |
3f55f5b8 | 233 | $(GIZMOSLIB_OBJECTS) |
250700e4 RD |
234 | | |
235 | !endif |