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