]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/gizmos/makefile.bcc
added IMPLEMENT_APP_CONSOLE
[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) -I$(BCCDIR)\include \
24 $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
26 -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
27 -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \
28 $(CXXFLAGS) -Hu -H=$(OBJS)\wxprec_gizmosdll.csm
29 GIZMOSDLL_OBJECTS = \
30 $(OBJS)\gizmosdll_dummy.obj \
31 $(OBJS)\gizmosdll_dynamicsash.obj \
32 $(OBJS)\gizmosdll_editlbox.obj \
33 $(OBJS)\gizmosdll_ledctrl.obj \
34 $(OBJS)\gizmosdll_multicell.obj \
35 $(OBJS)\gizmosdll_splittree.obj \
36 $(OBJS)\gizmosdll_statpict.obj
37 GIZMOSLIB_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) -I$(BCCDIR)\include \
38 $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
39 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
40 -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
41 -I..\..\src\gizmos\..\..\include $(CXXFLAGS) -Hu \
42 -H=$(OBJS)\wxprec_gizmoslib.csm
43 GIZMOSLIB_OBJECTS = \
44 $(OBJS)\gizmoslib_dummy.obj \
45 $(OBJS)\gizmoslib_dynamicsash.obj \
46 $(OBJS)\gizmoslib_editlbox.obj \
47 $(OBJS)\gizmoslib_ledctrl.obj \
48 $(OBJS)\gizmoslib_multicell.obj \
49 $(OBJS)\gizmoslib_splittree.obj \
50 $(OBJS)\gizmoslib_statpict.obj
51 OBJS = \
52 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
53 SETUPHDIR = \
54 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
55
56 ### Conditionally set variables: ###
57
58 !if "$(SHARED)" == "0"
59 LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\bcc_lib$(CFG)
60 !endif
61 !if "$(SHARED)" == "1"
62 LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\bcc_dll$(CFG)
63 !endif
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 "$(MSLU)" == "1"
140 __UNICOWS_LIB_p = unicows.lib
141 !endif
142 !if "$(MONOLITHIC)" == "0"
143 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
144 !endif
145 !if "$(MONOLITHIC)" == "0"
146 __WXLIB_CORE_p = \
147 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
148 !endif
149 !if "$(MONOLITHIC)" == "1"
150 __WXLIB_MONO_p = \
151 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
152 !endif
153 !if "$(WXUNIV)" == "1"
154 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
155 !endif
156 !if "$(SHARED)" == "1"
157 __gizmosdll___depname = \
158 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll
159 !endif
160 !if "$(SHARED)" == "0"
161 __gizmoslib___depname = \
162 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
163 !endif
164
165
166 all: $(OBJS)
167 $(OBJS):
168 -if not exist $(OBJS) mkdir $(OBJS)
169
170 ### Targets: ###
171
172 all: $(__gizmosdll___depname) $(__gizmoslib___depname)
173
174 $(OBJS)\gizmosdll_dummy.obj: ../../src/gizmos\..\..\..\src\msw\dummy.cpp
175 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) -H $**
176
177 $(OBJS)\gizmosdll_dynamicsash.obj: ../../src/gizmos\dynamicsash.cpp
178 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
179
180 $(OBJS)\gizmosdll_editlbox.obj: ../../src/gizmos\editlbox.cpp
181 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
182
183 $(OBJS)\gizmosdll_ledctrl.obj: ../../src/gizmos\ledctrl.cpp
184 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
185
186 $(OBJS)\gizmosdll_multicell.obj: ../../src/gizmos\multicell.cpp
187 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
188
189 $(OBJS)\gizmosdll_splittree.obj: ../../src/gizmos\splittree.cpp
190 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
191
192 $(OBJS)\gizmosdll_statpict.obj: ../../src/gizmos\statpict.cpp
193 $(CXX) -q -c -P -o$@ $(GIZMOSDLL_CXXFLAGS) $**
194
195 $(OBJS)\gizmoslib_dummy.obj: ../../src/gizmos\..\..\..\src\msw\dummy.cpp
196 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) -H $**
197
198 $(OBJS)\gizmoslib_dynamicsash.obj: ../../src/gizmos\dynamicsash.cpp
199 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
200
201 $(OBJS)\gizmoslib_editlbox.obj: ../../src/gizmos\editlbox.cpp
202 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
203
204 $(OBJS)\gizmoslib_ledctrl.obj: ../../src/gizmos\ledctrl.cpp
205 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
206
207 $(OBJS)\gizmoslib_multicell.obj: ../../src/gizmos\multicell.cpp
208 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
209
210 $(OBJS)\gizmoslib_splittree.obj: ../../src/gizmos\splittree.cpp
211 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
212
213 $(OBJS)\gizmoslib_statpict.obj: ../../src/gizmos\statpict.cpp
214 $(CXX) -q -c -P -o$@ $(GIZMOSLIB_CXXFLAGS) $**
215
216 clean:
217 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
218 -if exist $(OBJS)\*.res del $(OBJS)\*.res
219 -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
220 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
221 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib
222
223 !if "$(SHARED)" == "1"
224 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_bcc$(VENDORTAG).dll: $(OBJS)\gizmosdll_dummy.obj $(GIZMOSDLL_OBJECTS)
225 ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
226 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,,
227 |
228 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos $@
229 !endif
230
231 !if "$(SHARED)" == "0"
232 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.lib: $(OBJS)\gizmoslib_dummy.obj $(GIZMOSLIB_OBJECTS)
233 if exist $@ del $@
234 tlib /a /p2048 $@ @&&|
235 $(GIZMOSLIB_OBJECTS)
236 |
237 !endif