]> git.saurik.com Git - wxWidgets.git/blame_incremental - demos/dbbrowse/makefile.gcc
upgraded libtiff to 3.6.1 + security fixes (patch from Tim Kosse)
[wxWidgets.git] / demos / dbbrowse / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.4 (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
15WX_RELEASE_NODOT = 25
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20DBBROWSE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
21 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
22 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
23 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
24 $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
25DBBROWSE_OBJECTS = \
26 $(OBJS)\dbbrowse_dbbrowse.o \
27 $(OBJS)\dbbrowse_doc.o \
28 $(OBJS)\dbbrowse_pgmctrl.o \
29 $(OBJS)\dbbrowse_tabpgwin.o \
30 $(OBJS)\dbbrowse_browsedb.o \
31 $(OBJS)\dbbrowse_dbtree.o \
32 $(OBJS)\dbbrowse_dbgrid.o \
33 $(OBJS)\dbbrowse_dlguser.o \
34 $(OBJS)\dbbrowse_dbbrowse_rc.o
35
36### Conditionally set variables: ###
37
38ifeq ($(GCC_VERSION),2.95)
39GCCFLAGS = -fvtable-thunks
40endif
41ifeq ($(USE_GUI),0)
42PORTNAME = base
43endif
44ifeq ($(USE_GUI),1)
45PORTNAME = msw
46endif
47ifeq ($(BUILD),debug)
48ifeq ($(DEBUG_FLAG),default)
49WXDEBUGFLAG = d
50endif
51endif
52ifeq ($(DEBUG_FLAG),1)
53WXDEBUGFLAG = d
54endif
55ifeq ($(UNICODE),1)
56WXUNICODEFLAG = u
57endif
58ifeq ($(WXUNIV),1)
59WXUNIVNAME = univ
60endif
61ifeq ($(SHARED),1)
62WXDLLFLAG = dll
63endif
64ifeq ($(MONOLITHIC),0)
65EXTRALIBS_FOR_BASE =
66endif
67ifeq ($(MONOLITHIC),1)
68EXTRALIBS_FOR_BASE =
69endif
70ifeq ($(USE_ODBC),1)
71__dbbrowse___depname = $(OBJS)\dbbrowse.exe
72endif
73ifeq ($(BUILD),debug)
74__OPTIMIZEFLAG_2 = -O0
75endif
76ifeq ($(BUILD),release)
77__OPTIMIZEFLAG_2 = -O2
78endif
79ifeq ($(USE_EXCEPTIONS),0)
80__EXCEPTIONSFLAG_4 = -fno-rtti
81endif
82ifeq ($(USE_EXCEPTIONS),1)
83__EXCEPTIONSFLAG_4 =
84endif
85ifeq ($(USE_EXCEPTIONS),0)
86__EXCEPTIONSFLAG_5 = -fno-exceptions
87endif
88ifeq ($(USE_EXCEPTIONS),1)
89__EXCEPTIONSFLAG_5 =
90endif
91ifeq ($(WXUNIV),1)
92__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
93endif
94ifeq ($(WXUNIV),1)
95__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
96endif
97ifeq ($(BUILD),debug)
98ifeq ($(DEBUG_FLAG),default)
99__DEBUG_DEFINE_p = -D__WXDEBUG__
100endif
101endif
102ifeq ($(DEBUG_FLAG),1)
103__DEBUG_DEFINE_p = -D__WXDEBUG__
104endif
105ifeq ($(BUILD),debug)
106ifeq ($(DEBUG_FLAG),default)
107__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
108endif
109endif
110ifeq ($(DEBUG_FLAG),1)
111__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
112endif
113ifeq ($(UNICODE),1)
114__UNICODE_DEFINE_p = -D_UNICODE
115endif
116ifeq ($(UNICODE),1)
117__UNICODE_DEFINE_p_1 = --define _UNICODE
118endif
119ifeq ($(SHARED),1)
120__DLLFLAG_p = -DWXUSINGDLL
121endif
122ifeq ($(SHARED),1)
123__DLLFLAG_p_1 = --define WXUSINGDLL
124endif
125ifeq ($(MONOLITHIC),0)
126__WXLIB_DBGRID_p = \
127 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
128endif
129ifeq ($(MONOLITHIC),0)
130__WXLIB_ADV_p = \
131 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
132endif
133ifeq ($(MONOLITHIC),0)
134ifeq ($(USE_ODBC),1)
135__WXLIB_ODBC_p = \
136 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
137endif
138endif
139ifeq ($(MONOLITHIC),0)
140__WXLIB_HTML_p = \
141 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
142endif
143ifeq ($(MONOLITHIC),0)
144__WXLIB_CORE_p = \
145 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
146endif
147ifeq ($(MONOLITHIC),0)
148__WXLIB_BASE_p = \
149 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
150endif
151ifeq ($(MONOLITHIC),1)
152__WXLIB_MONO_p = \
153 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
154endif
155ifeq ($(USE_GUI),1)
156__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
157endif
158ifeq ($(USE_GUI),1)
159__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
160endif
161ifeq ($(USE_GUI),1)
162__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
163endif
164ifeq ($(MSLU),1)
165__UNICOWS_LIB_p = -lunicows
166endif
167ifeq ($(SHARED),0)
168LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
169endif
170ifeq ($(SHARED),1)
171LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
172endif
173ifeq ($(BUILD),debug)
174ifeq ($(DEBUG_INFO),default)
175__DEBUGINFO = -g
176endif
177endif
178ifeq ($(BUILD),release)
179ifeq ($(DEBUG_INFO),default)
180__DEBUGINFO =
181endif
182endif
183ifeq ($(DEBUG_INFO),0)
184__DEBUGINFO =
185endif
186ifeq ($(DEBUG_INFO),1)
187__DEBUGINFO = -g
188endif
189
190
191all: $(OBJS)
192$(OBJS):
193 -if not exist $(OBJS) mkdir $(OBJS)
194
195### Targets: ###
196
197all: $(__dbbrowse___depname) data_help_std data_help_png
198
199clean:
200 -if exist $(OBJS)\*.o del $(OBJS)\*.o
201 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
202
203ifeq ($(USE_ODBC),1)
204$(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o
205 $(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
206endif
207
208data_help_std:
209 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
210 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
211
212data_help_png:
213 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
214 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
215
216$(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp
217 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
218
219$(OBJS)\dbbrowse_doc.o: ./doc.cpp
220 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
221
222$(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp
223 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
224
225$(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp
226 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
227
228$(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp
229 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
230
231$(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp
232 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
233
234$(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp
235 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
236
237$(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp
238 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
239
240$(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc
241 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
242
243.PHONY: all clean data_help_std data_help_png