]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/gizmos/makefile.bcc
Fixed compile error (seen on OS/2).
[wxWidgets.git] / contrib / build / gizmos / makefile.bcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 !ifndef BCCDIR
8 BCCDIR = $(MAKEDIR)\..
9 !endif
10
11 !include ../../../build/msw/config.bcc
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
23 GIZMOSDLL_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
24 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
26 -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \
27 $(CXXFLAGS) -Hu -H=$(OBJS)\wxprec_gizmosdll.csm
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) \
37 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
38 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
39 -I..\..\src\gizmos\..\..\include $(CXXFLAGS) -Hu \
40 -H=$(OBJS)\wxprec_gizmoslib.csm
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
49 OBJS = \
50 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
51 SETUPHDIR = \
52 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
53
54 ### Conditionally set variables: ###
55
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
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
74 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
75 WXDEBUGFLAG = d
76 !endif
77 !if "$(DEBUG_FLAG)" == "1"
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
89 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
90 __DEBUGINFO = -v
91 !endif
92 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
93 __DEBUGINFO = -v-
94 !endif
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"
102 __DEBUG_DEFINE_p = -D__WXDEBUG__
103 !endif
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
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
137 !if "$(MSLU)" == "1"
138 __UNICOWS_LIB_p = unicows.lib
139 !endif
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 = \
156 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll
157 !endif
158 !if "$(SHARED)" == "0"
159 __gizmoslib___depname = \
160 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
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
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
220
221 !if "$(SHARED)" == "1"
222 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll: $(OBJS)\gizmosdll_dummy.obj $(GIZMOSDLL_OBJECTS)
223 ilink32 -Tpd -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
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,,
225 |
226 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos $@
227 !endif
228
229 !if "$(SHARED)" == "0"
230 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib: $(OBJS)\gizmoslib_dummy.obj $(GIZMOSLIB_OBJECTS)
231 if exist $@ del $@
232 tlib /a /p2048 $@ @&&|
233 $(GIZMOSLIB_OBJECTS)
234 |
235 !endif