]> git.saurik.com Git - wxWidgets.git/blame_incremental - demos/dbbrowse/makefile.gcc
use wxChar correctly in wxString docs; mark wx1 compatibility functions
[wxWidgets.git] / demos / dbbrowse / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CPPDEPS = -MT$@ -MF$@.d -MD
16WX_RELEASE_NODOT = 27
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22DBBROWSE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
26 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
27 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
28 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
29DBBROWSE_OBJECTS = \
30 $(OBJS)\dbbrowse_dbbrowse.o \
31 $(OBJS)\dbbrowse_doc.o \
32 $(OBJS)\dbbrowse_pgmctrl.o \
33 $(OBJS)\dbbrowse_tabpgwin.o \
34 $(OBJS)\dbbrowse_browsedb.o \
35 $(OBJS)\dbbrowse_dbtree.o \
36 $(OBJS)\dbbrowse_dbgrid.o \
37 $(OBJS)\dbbrowse_dlguser.o \
38 $(OBJS)\dbbrowse_dbbrowse_rc.o
39
40### Conditionally set variables: ###
41
42ifeq ($(GCC_VERSION),2.95)
43GCCFLAGS = -fvtable-thunks
44endif
45ifeq ($(USE_GUI),0)
46PORTNAME = base
47endif
48ifeq ($(USE_GUI),1)
49PORTNAME = msw
50endif
51ifeq ($(BUILD),debug)
52ifeq ($(DEBUG_FLAG),default)
53WXDEBUGFLAG = d
54endif
55endif
56ifeq ($(DEBUG_FLAG),1)
57WXDEBUGFLAG = d
58endif
59ifeq ($(UNICODE),1)
60WXUNICODEFLAG = u
61endif
62ifeq ($(WXUNIV),1)
63WXUNIVNAME = univ
64endif
65ifeq ($(SHARED),1)
66WXDLLFLAG = dll
67endif
68ifeq ($(SHARED),0)
69LIBTYPE_SUFFIX = lib
70endif
71ifeq ($(SHARED),1)
72LIBTYPE_SUFFIX = dll
73endif
74ifeq ($(MONOLITHIC),0)
75EXTRALIBS_FOR_BASE =
76endif
77ifeq ($(MONOLITHIC),1)
78EXTRALIBS_FOR_BASE =
79endif
80ifeq ($(USE_ODBC),1)
81__dbbrowse___depname = $(OBJS)\dbbrowse.exe
82endif
83ifeq ($(BUILD),debug)
84__OPTIMIZEFLAG_2 = -O0
85endif
86ifeq ($(BUILD),release)
87__OPTIMIZEFLAG_2 = -O2
88endif
89ifeq ($(USE_RTTI),0)
90__RTTIFLAG_5 = -fno-rtti
91endif
92ifeq ($(USE_RTTI),1)
93__RTTIFLAG_5 =
94endif
95ifeq ($(USE_EXCEPTIONS),0)
96__EXCEPTIONSFLAG_6 = -fno-exceptions
97endif
98ifeq ($(USE_EXCEPTIONS),1)
99__EXCEPTIONSFLAG_6 =
100endif
101ifeq ($(WXUNIV),1)
102__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103endif
104ifeq ($(WXUNIV),1)
105__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
106endif
107ifeq ($(BUILD),debug)
108ifeq ($(DEBUG_FLAG),default)
109__DEBUG_DEFINE_p = -D__WXDEBUG__
110endif
111endif
112ifeq ($(DEBUG_FLAG),1)
113__DEBUG_DEFINE_p = -D__WXDEBUG__
114endif
115ifeq ($(BUILD),debug)
116ifeq ($(DEBUG_FLAG),default)
117__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
118endif
119endif
120ifeq ($(DEBUG_FLAG),1)
121__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
122endif
123ifeq ($(USE_EXCEPTIONS),0)
124__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
125endif
126ifeq ($(USE_EXCEPTIONS),0)
127__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
128endif
129ifeq ($(USE_RTTI),0)
130__RTTI_DEFINE_p = -DwxNO_RTTI
131endif
132ifeq ($(USE_RTTI),0)
133__RTTI_DEFINE_p_1 = --define wxNO_RTTI
134endif
135ifeq ($(USE_THREADS),0)
136__THREAD_DEFINE_p = -DwxNO_THREADS
137endif
138ifeq ($(USE_THREADS),0)
139__THREAD_DEFINE_p_1 = --define wxNO_THREADS
140endif
141ifeq ($(UNICODE),1)
142__UNICODE_DEFINE_p = -D_UNICODE
143endif
144ifeq ($(UNICODE),1)
145__UNICODE_DEFINE_p_1 = --define _UNICODE
146endif
147ifeq ($(MSLU),1)
148__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
149endif
150ifeq ($(MSLU),1)
151__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
152endif
153ifeq ($(USE_GDIPLUS),1)
154__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
155endif
156ifeq ($(USE_GDIPLUS),1)
157__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
158endif
159ifeq ($(SHARED),1)
160__DLLFLAG_p = -DWXUSINGDLL
161endif
162ifeq ($(SHARED),1)
163__DLLFLAG_p_1 = --define WXUSINGDLL
164endif
165ifeq ($(MONOLITHIC),0)
166__WXLIB_DBGRID_p = \
167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
168endif
169ifeq ($(MONOLITHIC),0)
170__WXLIB_ADV_p = \
171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
172endif
173ifeq ($(MONOLITHIC),0)
174ifeq ($(USE_ODBC),1)
175__WXLIB_ODBC_p = \
176 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
177endif
178endif
179ifeq ($(MONOLITHIC),0)
180__WXLIB_HTML_p = \
181 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
182endif
183ifeq ($(MONOLITHIC),0)
184__WXLIB_XML_p = \
185 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
186endif
187ifeq ($(MONOLITHIC),0)
188__WXLIB_CORE_p = \
189 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
190endif
191ifeq ($(MONOLITHIC),0)
192__WXLIB_BASE_p = \
193 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
194endif
195ifeq ($(MONOLITHIC),1)
196__WXLIB_MONO_p = \
197 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
198endif
199ifeq ($(USE_GUI),1)
200__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
201endif
202ifeq ($(USE_GUI),1)
203__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
204endif
205ifeq ($(USE_GUI),1)
206__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
207endif
208ifeq ($(MSLU),1)
209__UNICOWS_LIB_p = -lunicows
210endif
211ifeq ($(USE_GDIPLUS),1)
212__GDIPLUS_LIB_p = -lgdiplus
213endif
214ifeq ($(BUILD),debug)
215ifeq ($(DEBUG_INFO),default)
216__DEBUGINFO = -g
217endif
218endif
219ifeq ($(BUILD),release)
220ifeq ($(DEBUG_INFO),default)
221__DEBUGINFO =
222endif
223endif
224ifeq ($(DEBUG_INFO),0)
225__DEBUGINFO =
226endif
227ifeq ($(DEBUG_INFO),1)
228__DEBUGINFO = -g
229endif
230ifeq ($(USE_THREADS),0)
231__THREADSFLAG =
232endif
233ifeq ($(USE_THREADS),1)
234__THREADSFLAG = -mthreads
235endif
236
237
238all: $(OBJS)
239$(OBJS):
240 -if not exist $(OBJS) mkdir $(OBJS)
241
242### Targets: ###
243
244all: $(__dbbrowse___depname) data_help_std data_help_png
245
246clean:
247 -if exist $(OBJS)\*.o del $(OBJS)\*.o
248 -if exist $(OBJS)\*.d del $(OBJS)\*.d
249 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
250
251ifeq ($(USE_ODBC),1)
252$(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o
253 $(CXX) -o $@ $(DBBROWSE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_DBGRID_p) $(__WXLIB_ADV_p) $(__WXLIB_ODBC_p) $(__WXLIB_HTML_p) $(__WXLIB_XML_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
254endif
255
256data_help_std:
257 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
258 for %%f in (compiler.htm dbbrowse.hhc dbbrowse.hhk dbbrowse.hhp dbbrowse.htm getcol.htm getcolsh.htm icons.htm picgrams.htm problems.htm remstar.htm sample.htm startprm.htm todo.htm wxdb.htm wxtable.htm) do if not exist $(OBJS)\help.std\%%f copy .\help.std\%%f $(OBJS)\help.std
259
260data_help_png:
261 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
262 for %%f in (col.png d_closed.png d_open.png dsn.png dsnclose.png dsnopen.png f_closed.png f_open.png gnu.png gtk.png imbau.png kde.png key.png keyf.png linux.png logo.png motif.png msvc.png odbc.png pgmctrl.png redh.png remstar.png server.png suse.png tab.png view.png winnt.png wins.png) do if not exist $(OBJS)\help.png\%%f copy .\help.png\%%f $(OBJS)\help.png
263
264$(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp
265 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
266
267$(OBJS)\dbbrowse_doc.o: ./doc.cpp
268 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
269
270$(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp
271 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
272
273$(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp
274 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
275
276$(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp
277 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
278
279$(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp
280 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
281
282$(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp
283 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
284
285$(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp
286 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
287
288$(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc
289 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
290
291.PHONY: all clean data_help_std data_help_png
292
293
294# Dependencies tracking:
295-include $(OBJS)/*.d