]> git.saurik.com Git - wxWidgets.git/blob - demos/dbbrowse/makefile.gcc
wxMediaCtrl patch from Ryan:
[wxWidgets.git] / demos / dbbrowse / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 CPPDEPS = -MT$@ -MF$@.d -MD
16 WX_RELEASE_NODOT = 26
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 DBBROWSE_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 -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
27 -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \
28 $(CPPFLAGS) $(CXXFLAGS)
29 DBBROWSE_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
42 ifeq ($(GCC_VERSION),2.95)
43 GCCFLAGS = -fvtable-thunks
44 endif
45 ifeq ($(USE_GUI),0)
46 PORTNAME = base
47 endif
48 ifeq ($(USE_GUI),1)
49 PORTNAME = msw
50 endif
51 ifeq ($(BUILD),debug)
52 ifeq ($(DEBUG_FLAG),default)
53 WXDEBUGFLAG = d
54 endif
55 endif
56 ifeq ($(DEBUG_FLAG),1)
57 WXDEBUGFLAG = d
58 endif
59 ifeq ($(UNICODE),1)
60 WXUNICODEFLAG = u
61 endif
62 ifeq ($(WXUNIV),1)
63 WXUNIVNAME = univ
64 endif
65 ifeq ($(SHARED),1)
66 WXDLLFLAG = dll
67 endif
68 ifeq ($(SHARED),0)
69 LIBTYPE_SUFFIX = lib
70 endif
71 ifeq ($(SHARED),1)
72 LIBTYPE_SUFFIX = dll
73 endif
74 ifeq ($(MONOLITHIC),0)
75 EXTRALIBS_FOR_BASE =
76 endif
77 ifeq ($(MONOLITHIC),1)
78 EXTRALIBS_FOR_BASE =
79 endif
80 ifeq ($(USE_ODBC),1)
81 __dbbrowse___depname = $(OBJS)\dbbrowse.exe
82 endif
83 ifeq ($(BUILD),debug)
84 __OPTIMIZEFLAG_2 = -O0
85 endif
86 ifeq ($(BUILD),release)
87 __OPTIMIZEFLAG_2 = -O2
88 endif
89 ifeq ($(USE_RTTI),0)
90 __RTTIFLAG_5 = -fno-rtti
91 endif
92 ifeq ($(USE_RTTI),1)
93 __RTTIFLAG_5 =
94 endif
95 ifeq ($(USE_EXCEPTIONS),0)
96 __EXCEPTIONSFLAG_6 = -fno-exceptions
97 endif
98 ifeq ($(USE_EXCEPTIONS),1)
99 __EXCEPTIONSFLAG_6 =
100 endif
101 ifeq ($(WXUNIV),1)
102 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103 endif
104 ifeq ($(WXUNIV),1)
105 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
106 endif
107 ifeq ($(BUILD),debug)
108 ifeq ($(DEBUG_FLAG),default)
109 __DEBUG_DEFINE_p = -D__WXDEBUG__
110 endif
111 endif
112 ifeq ($(DEBUG_FLAG),1)
113 __DEBUG_DEFINE_p = -D__WXDEBUG__
114 endif
115 ifeq ($(BUILD),debug)
116 ifeq ($(DEBUG_FLAG),default)
117 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
118 endif
119 endif
120 ifeq ($(DEBUG_FLAG),1)
121 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
122 endif
123 ifeq ($(USE_EXCEPTIONS),0)
124 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
125 endif
126 ifeq ($(USE_EXCEPTIONS),0)
127 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
128 endif
129 ifeq ($(USE_RTTI),0)
130 __RTTI_DEFINE_p = -DwxNO_RTTI
131 endif
132 ifeq ($(USE_RTTI),0)
133 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
134 endif
135 ifeq ($(USE_THREADS),0)
136 __THREAD_DEFINE_p = -DwxNO_THREADS
137 endif
138 ifeq ($(USE_THREADS),0)
139 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
140 endif
141 ifeq ($(UNICODE),1)
142 __UNICODE_DEFINE_p = -D_UNICODE
143 endif
144 ifeq ($(UNICODE),1)
145 __UNICODE_DEFINE_p_1 = --define _UNICODE
146 endif
147 ifeq ($(MSLU),1)
148 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
149 endif
150 ifeq ($(MSLU),1)
151 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
152 endif
153 ifeq ($(SHARED),1)
154 __DLLFLAG_p = -DWXUSINGDLL
155 endif
156 ifeq ($(SHARED),1)
157 __DLLFLAG_p_1 = --define WXUSINGDLL
158 endif
159 ifeq ($(MONOLITHIC),0)
160 __WXLIB_DBGRID_p = \
161 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
162 endif
163 ifeq ($(MONOLITHIC),0)
164 __WXLIB_ADV_p = \
165 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
166 endif
167 ifeq ($(MONOLITHIC),0)
168 ifeq ($(USE_ODBC),1)
169 __WXLIB_ODBC_p = \
170 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
171 endif
172 endif
173 ifeq ($(MONOLITHIC),0)
174 __WXLIB_HTML_p = \
175 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
176 endif
177 ifeq ($(MONOLITHIC),0)
178 __WXLIB_CORE_p = \
179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
180 endif
181 ifeq ($(MONOLITHIC),0)
182 __WXLIB_BASE_p = \
183 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
184 endif
185 ifeq ($(MONOLITHIC),1)
186 __WXLIB_MONO_p = \
187 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
188 endif
189 ifeq ($(USE_GUI),1)
190 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
191 endif
192 ifeq ($(USE_GUI),1)
193 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
194 endif
195 ifeq ($(USE_GUI),1)
196 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
197 endif
198 ifeq ($(MSLU),1)
199 __UNICOWS_LIB_p = -lunicows
200 endif
201 ifeq ($(BUILD),debug)
202 ifeq ($(DEBUG_INFO),default)
203 __DEBUGINFO = -g
204 endif
205 endif
206 ifeq ($(BUILD),release)
207 ifeq ($(DEBUG_INFO),default)
208 __DEBUGINFO =
209 endif
210 endif
211 ifeq ($(DEBUG_INFO),0)
212 __DEBUGINFO =
213 endif
214 ifeq ($(DEBUG_INFO),1)
215 __DEBUGINFO = -g
216 endif
217 ifeq ($(USE_THREADS),0)
218 __THREADSFLAG =
219 endif
220 ifeq ($(USE_THREADS),1)
221 __THREADSFLAG = -mthreads
222 endif
223
224
225 all: $(OBJS)
226 $(OBJS):
227 -if not exist $(OBJS) mkdir $(OBJS)
228
229 ### Targets: ###
230
231 all: $(__dbbrowse___depname) data_help_std data_help_png
232
233 clean:
234 -if exist $(OBJS)\*.o del $(OBJS)\*.o
235 -if exist $(OBJS)\*.d del $(OBJS)\*.d
236 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
237
238 ifeq ($(USE_ODBC),1)
239 $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o
240 $(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_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
241 endif
242
243 data_help_std:
244 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
245 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
246
247 data_help_png:
248 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
249 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
250
251 $(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp
252 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
253
254 $(OBJS)\dbbrowse_doc.o: ./doc.cpp
255 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
256
257 $(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp
258 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
259
260 $(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp
261 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
262
263 $(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp
264 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
265
266 $(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp
267 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
268
269 $(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp
270 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
271
272 $(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp
273 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
274
275 $(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc
276 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) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
277
278 .PHONY: all clean data_help_std data_help_png
279
280
281 # Dependencies tracking:
282 -include $(OBJS)/*.d