]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/gizmos/makefile.bcc
added wxAdvanced
[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/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$(LIBDIRNAME) \
26 -I..\..\src\gizmos\..\..\..\src\tiff -I..\..\src\gizmos\..\..\..\src\jpeg \
27 -I..\..\src\gizmos\..\..\..\src\png -I..\..\src\gizmos\..\..\..\src\zlib \
28 -I..\..\src\gizmos\..\..\..\src\regex \
29 -I..\..\src\gizmos\..\..\..\src\expat\lib \
30 -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \
31 $(CXXFLAGS) -Hu -H=$(OBJS)\wxprec_gizmosdll.csm
32 GIZMOSDLL_OBJECTS = \
33 $(OBJS)\gizmosdll_dummy.obj \
34 $(OBJS)\gizmosdll_dynamicsash.obj \
35 $(OBJS)\gizmosdll_editlbox.obj \
36 $(OBJS)\gizmosdll_ledctrl.obj \
37 $(OBJS)\gizmosdll_multicell.obj \
38 $(OBJS)\gizmosdll_splittree.obj \
39 $(OBJS)\gizmosdll_statpict.obj
40 GIZMOSLIB_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
41 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
42 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(LIBDIRNAME) \
43 -I..\..\src\gizmos\..\..\..\src\tiff -I..\..\src\gizmos\..\..\..\src\jpeg \
44 -I..\..\src\gizmos\..\..\..\src\png -I..\..\src\gizmos\..\..\..\src\zlib \
45 -I..\..\src\gizmos\..\..\..\src\regex \
46 -I..\..\src\gizmos\..\..\..\src\expat\lib \
47 -I..\..\src\gizmos\..\..\include $(CXXFLAGS) -Hu \
48 -H=$(OBJS)\wxprec_gizmoslib.csm
49 GIZMOSLIB_OBJECTS = \
50 $(OBJS)\gizmoslib_dummy.obj \
51 $(OBJS)\gizmoslib_dynamicsash.obj \
52 $(OBJS)\gizmoslib_editlbox.obj \
53 $(OBJS)\gizmoslib_ledctrl.obj \
54 $(OBJS)\gizmoslib_multicell.obj \
55 $(OBJS)\gizmoslib_splittree.obj \
56 $(OBJS)\gizmoslib_statpict.obj
57 LIBDIRNAME = \
58 ..\..\src\gizmos\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
59 OBJS = \
60 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
61
62 ### Conditionally set variables: ###
63
64 !if "$(USE_GUI)" == "0"
65 PORTNAME = base
66 !endif
67 !if "$(USE_GUI)" == "1"
68 PORTNAME = msw
69 !endif
70 !if "$(OFFICIAL_BUILD)" == "0"
71 VENDORTAG = _$(VENDOR)
72 !endif
73 !if "$(OFFICIAL_BUILD)" == "1"
74 VENDORTAG =
75 !endif
76 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
77 WXDEBUGFLAG = d
78 !endif
79 !if "$(DEBUG_FLAG)" == "1"
80 WXDEBUGFLAG = d
81 !endif
82 !if "$(SHARED)" == "1"
83 WXDLLFLAG = dll
84 !endif
85 !if "$(UNICODE)" == "1"
86 WXUNICODEFLAG = u
87 !endif
88 !if "$(WXUNIV)" == "1"
89 WXUNIVNAME = univ
90 !endif
91 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
92 __DEBUGINFO = -v
93 !endif
94 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
95 __DEBUGINFO = -v-
96 !endif
97 !if "$(DEBUG_INFO)" == "0"
98 __DEBUGINFO = -v-
99 !endif
100 !if "$(DEBUG_INFO)" == "1"
101 __DEBUGINFO = -v
102 !endif
103 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
104 __DEBUG_DEFINE_p = -D__WXDEBUG__
105 !endif
106 !if "$(DEBUG_FLAG)" == "1"
107 __DEBUG_DEFINE_p = -D__WXDEBUG__
108 !endif
109 !if "$(USE_GUI)" == "1"
110 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
111 !endif
112 !if "$(USE_GUI)" == "1"
113 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
114 !endif
115 !if "$(USE_GUI)" == "1"
116 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
117 !endif
118 !if "$(BUILD)" == "debug"
119 __OPTIMIZEFLAG = -Od
120 !endif
121 !if "$(BUILD)" == "release"
122 __OPTIMIZEFLAG = -O2
123 !endif
124 !if "$(RUNTIME_LIBS)" == "dynamic"
125 __RUNTIME_LIBS = -tWR
126 !endif
127 !if "$(RUNTIME_LIBS)" == "static"
128 __RUNTIME_LIBS =
129 !endif
130 !if "$(RUNTIME_LIBS)" == "dynamic"
131 __RUNTIME_LIBS_7 = i
132 !endif
133 !if "$(RUNTIME_LIBS)" == "static"
134 __RUNTIME_LIBS_7 =
135 !endif
136 !if "$(UNICODE)" == "1"
137 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
138 !endif
139 !if "$(MONOLITHIC)" == "0"
140 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
141 !endif
142 !if "$(MONOLITHIC)" == "0"
143 __WXLIB_CORE_p = \
144 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
145 !endif
146 !if "$(MONOLITHIC)" == "1"
147 __WXLIB_MONO_p = \
148 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
149 !endif
150 !if "$(WXUNIV)" == "1"
151 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
152 !endif
153 !if "$(SHARED)" == "1"
154 __gizmosdll___depname = \
155 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll
156 !endif
157 !if "$(SHARED)" == "0"
158 __gizmoslib___depname = \
159 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
160 !endif
161
162
163 all: $(OBJS)
164 $(OBJS):
165 -if not exist $(OBJS) mkdir $(OBJS)
166
167 ### Targets: ###
168
169 all: $(__gizmosdll___depname) $(__gizmoslib___depname)
170
171 $(OBJS)\gizmosdll_dummy.obj: ../../src/gizmos\..\..\..\src\msw\dummy.cpp
172 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) -H $**
173
174 $(OBJS)\gizmosdll_dynamicsash.obj: ../../src/gizmos\dynamicsash.cpp
175 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
176
177 $(OBJS)\gizmosdll_editlbox.obj: ../../src/gizmos\editlbox.cpp
178 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
179
180 $(OBJS)\gizmosdll_ledctrl.obj: ../../src/gizmos\ledctrl.cpp
181 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
182
183 $(OBJS)\gizmosdll_multicell.obj: ../../src/gizmos\multicell.cpp
184 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
185
186 $(OBJS)\gizmosdll_splittree.obj: ../../src/gizmos\splittree.cpp
187 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
188
189 $(OBJS)\gizmosdll_statpict.obj: ../../src/gizmos\statpict.cpp
190 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
191
192 $(OBJS)\gizmoslib_dummy.obj: ../../src/gizmos\..\..\..\src\msw\dummy.cpp
193 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) -H $**
194
195 $(OBJS)\gizmoslib_dynamicsash.obj: ../../src/gizmos\dynamicsash.cpp
196 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
197
198 $(OBJS)\gizmoslib_editlbox.obj: ../../src/gizmos\editlbox.cpp
199 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
200
201 $(OBJS)\gizmoslib_ledctrl.obj: ../../src/gizmos\ledctrl.cpp
202 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
203
204 $(OBJS)\gizmoslib_multicell.obj: ../../src/gizmos\multicell.cpp
205 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
206
207 $(OBJS)\gizmoslib_splittree.obj: ../../src/gizmos\splittree.cpp
208 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
209
210 $(OBJS)\gizmoslib_statpict.obj: ../../src/gizmos\statpict.cpp
211 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
212
213 clean:
214 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
215 -if exist $(OBJS)\*.res del $(OBJS)\*.res
216 -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
217 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
218 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
219
220 !if "$(SHARED)" == "1"
221 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS) $(OBJS)\gizmosdll_dummy.obj
222 ilink32 -Tpd -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
223 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 import32.lib ole2w32.lib $(__WXLIB_BASE_p) $(__WXLIB_CORE_p) cw32mt$(__RUNTIME_LIBS_7).lib,,
224 |
225 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos $@
226 !endif
227
228 !if "$(SHARED)" == "0"
229 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib: $(GIZMOSLIB_OBJECTS) $(OBJS)\gizmoslib_dummy.obj
230 if exist $@ del $@
231 tlib /a /p2048 $@ @&&|
232 $(GIZMOSLIB_OBJECTS)
233 |
234 !endif