]> git.saurik.com Git - wxWidgets.git/blame - demos/dbbrowse/makefile.gcc
don't steal EVT_RIGHT_UP in rich edit controls for context menu (patch 1143823)
[wxWidgets.git] / demos / dbbrowse / makefile.gcc
CommitLineData
264af224
VS
1# =========================================================================
2# This makefile was generated by
d3d0b8db 3# Bakefile 0.1.6 (http://bakefile.sourceforge.net)
264af224
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../build/msw/config.gcc
264af224
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
c33fae85 15WX_RELEASE_NODOT = 25
b17c1746
DE
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
d3d0b8db 18LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 21DBBROWSE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
264af224 22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
d3d0b8db 23 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
c33fae85 24 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
d3d0b8db 25 $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
264af224
VS
26DBBROWSE_OBJECTS = \
27 $(OBJS)\dbbrowse_dbbrowse.o \
28 $(OBJS)\dbbrowse_doc.o \
29 $(OBJS)\dbbrowse_pgmctrl.o \
30 $(OBJS)\dbbrowse_tabpgwin.o \
31 $(OBJS)\dbbrowse_browsedb.o \
32 $(OBJS)\dbbrowse_dbtree.o \
33 $(OBJS)\dbbrowse_dbgrid.o \
34 $(OBJS)\dbbrowse_dlguser.o \
35 $(OBJS)\dbbrowse_dbbrowse_rc.o
264af224
VS
36
37### Conditionally set variables: ###
38
39ifeq ($(GCC_VERSION),2.95)
40GCCFLAGS = -fvtable-thunks
41endif
42ifeq ($(USE_GUI),0)
43PORTNAME = base
44endif
45ifeq ($(USE_GUI),1)
46PORTNAME = msw
47endif
48ifeq ($(BUILD),debug)
49ifeq ($(DEBUG_FLAG),default)
50WXDEBUGFLAG = d
51endif
52endif
53ifeq ($(DEBUG_FLAG),1)
54WXDEBUGFLAG = d
55endif
264af224
VS
56ifeq ($(UNICODE),1)
57WXUNICODEFLAG = u
58endif
59ifeq ($(WXUNIV),1)
60WXUNIVNAME = univ
61endif
b17c1746
DE
62ifeq ($(SHARED),1)
63WXDLLFLAG = dll
264af224 64endif
d3d0b8db
JS
65ifeq ($(SHARED),0)
66LIBTYPE_SUFFIX = lib
67endif
68ifeq ($(SHARED),1)
69LIBTYPE_SUFFIX = dll
70endif
dd65d8c8
RN
71ifeq ($(MONOLITHIC),0)
72EXTRALIBS_FOR_BASE =
73endif
74ifeq ($(MONOLITHIC),1)
75EXTRALIBS_FOR_BASE =
76endif
77ifeq ($(USE_ODBC),1)
78__dbbrowse___depname = $(OBJS)\dbbrowse.exe
79endif
b17c1746
DE
80ifeq ($(BUILD),debug)
81__OPTIMIZEFLAG_2 = -O0
264af224
VS
82endif
83ifeq ($(BUILD),release)
b17c1746 84__OPTIMIZEFLAG_2 = -O2
264af224 85endif
b17c1746
DE
86ifeq ($(USE_EXCEPTIONS),0)
87__EXCEPTIONSFLAG_4 = -fno-rtti
264af224 88endif
b17c1746
DE
89ifeq ($(USE_EXCEPTIONS),1)
90__EXCEPTIONSFLAG_4 =
264af224 91endif
b17c1746
DE
92ifeq ($(USE_EXCEPTIONS),0)
93__EXCEPTIONSFLAG_5 = -fno-exceptions
94endif
95ifeq ($(USE_EXCEPTIONS),1)
96__EXCEPTIONSFLAG_5 =
97endif
98ifeq ($(WXUNIV),1)
99__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
100endif
101ifeq ($(WXUNIV),1)
102__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
264af224
VS
103endif
104ifeq ($(BUILD),debug)
105ifeq ($(DEBUG_FLAG),default)
106__DEBUG_DEFINE_p = -D__WXDEBUG__
107endif
108endif
109ifeq ($(DEBUG_FLAG),1)
110__DEBUG_DEFINE_p = -D__WXDEBUG__
111endif
112ifeq ($(BUILD),debug)
113ifeq ($(DEBUG_FLAG),default)
114__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
115endif
116endif
117ifeq ($(DEBUG_FLAG),1)
118__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
119endif
b17c1746
DE
120ifeq ($(UNICODE),1)
121__UNICODE_DEFINE_p = -D_UNICODE
122endif
123ifeq ($(UNICODE),1)
124__UNICODE_DEFINE_p_1 = --define _UNICODE
125endif
264af224
VS
126ifeq ($(SHARED),1)
127__DLLFLAG_p = -DWXUSINGDLL
128endif
129ifeq ($(SHARED),1)
130__DLLFLAG_p_1 = --define WXUSINGDLL
131endif
b17c1746
DE
132ifeq ($(MONOLITHIC),0)
133__WXLIB_DBGRID_p = \
c33fae85 134 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
a4ad36cd 135endif
b17c1746
DE
136ifeq ($(MONOLITHIC),0)
137__WXLIB_ADV_p = \
c33fae85 138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
a4ad36cd 139endif
b17c1746 140ifeq ($(MONOLITHIC),0)
b92ca05a 141ifeq ($(USE_ODBC),1)
c33fae85
RN
142__WXLIB_ODBC_p = \
143 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
a4ad36cd 144endif
b92ca05a 145endif
b17c1746
DE
146ifeq ($(MONOLITHIC),0)
147__WXLIB_HTML_p = \
c33fae85 148 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 149endif
b17c1746
DE
150ifeq ($(MONOLITHIC),0)
151__WXLIB_CORE_p = \
c33fae85 152 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
264af224 153endif
b17c1746 154ifeq ($(MONOLITHIC),0)
c33fae85
RN
155__WXLIB_BASE_p = \
156 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
157endif
158ifeq ($(MONOLITHIC),1)
159__WXLIB_MONO_p = \
c33fae85 160 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
264af224
VS
161endif
162ifeq ($(USE_GUI),1)
9c2d002b 163__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
264af224 164endif
b17c1746 165ifeq ($(USE_GUI),1)
9c2d002b 166__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
264af224 167endif
b17c1746 168ifeq ($(USE_GUI),1)
9c2d002b 169__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
264af224 170endif
4e209a20
VS
171ifeq ($(MSLU),1)
172__UNICOWS_LIB_p = -lunicows
173endif
b17c1746
DE
174ifeq ($(BUILD),debug)
175ifeq ($(DEBUG_INFO),default)
176__DEBUGINFO = -g
f2901744 177endif
264af224 178endif
b17c1746
DE
179ifeq ($(BUILD),release)
180ifeq ($(DEBUG_INFO),default)
181__DEBUGINFO =
264af224 182endif
264af224 183endif
b17c1746
DE
184ifeq ($(DEBUG_INFO),0)
185__DEBUGINFO =
264af224 186endif
b17c1746
DE
187ifeq ($(DEBUG_INFO),1)
188__DEBUGINFO = -g
264af224
VS
189endif
190
191
192all: $(OBJS)
193$(OBJS):
194 -if not exist $(OBJS) mkdir $(OBJS)
195
196### Targets: ###
197
dd65d8c8 198all: $(__dbbrowse___depname) data_help_std data_help_png
264af224 199
b17c1746
DE
200clean:
201 -if exist $(OBJS)\*.o del $(OBJS)\*.o
202 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
203
dd65d8c8 204ifeq ($(USE_ODBC),1)
b17c1746 205$(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o
d3d0b8db 206 $(CXX) -o $@ $(DBBROWSE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_DBGRID_p) $(__WXLIB_ADV_p) $(__WXLIB_ODBC_p) $(__WXLIB_HTML_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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
dd65d8c8 207endif
264af224 208
eac98de7
VS
209data_help_std:
210 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
211 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
212
213data_help_png:
214 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
215 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
216
1c3a6972 217$(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp
264af224
VS
218 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
219
b17c1746 220$(OBJS)\dbbrowse_doc.o: ./doc.cpp
264af224
VS
221 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
222
b17c1746 223$(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp
264af224
VS
224 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
225
b17c1746 226$(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp
264af224
VS
227 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
228
b17c1746 229$(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp
264af224
VS
230 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
231
b17c1746 232$(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp
264af224
VS
233 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
234
b17c1746 235$(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp
264af224
VS
236 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
237
b17c1746
DE
238$(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp
239 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
264af224 240
b17c1746 241$(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc
d3d0b8db 242 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
264af224 243
eac98de7 244.PHONY: all clean data_help_std data_help_png
d3d0b8db 245