]>
Commit | Line | Data |
---|---|---|
264af224 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
cf9b63b3 | 3 | # Bakefile 0.2.0 (http://bakefile.sourceforge.net) |
264af224 VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../build/msw/config.gcc |
264af224 VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
0d90d6ea | 15 | CPPDEPS = -MT$@ -MF$@.d -MD |
4cbcfb73 | 16 | WX_RELEASE_NODOT = 27 |
b17c1746 DE |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
d3d0b8db | 19 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
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) \ | |
2113bc77 | 25 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
3abcf424 RD |
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) | |
264af224 VS |
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 | |
264af224 VS |
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 | |
264af224 VS |
59 | ifeq ($(UNICODE),1) |
60 | WXUNICODEFLAG = u | |
61 | endif | |
62 | ifeq ($(WXUNIV),1) | |
63 | WXUNIVNAME = univ | |
64 | endif | |
b17c1746 DE |
65 | ifeq ($(SHARED),1) |
66 | WXDLLFLAG = dll | |
264af224 | 67 | endif |
d3d0b8db JS |
68 | ifeq ($(SHARED),0) |
69 | LIBTYPE_SUFFIX = lib | |
70 | endif | |
71 | ifeq ($(SHARED),1) | |
72 | LIBTYPE_SUFFIX = dll | |
73 | endif | |
dd65d8c8 RN |
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 | |
b17c1746 DE |
83 | ifeq ($(BUILD),debug) |
84 | __OPTIMIZEFLAG_2 = -O0 | |
264af224 VS |
85 | endif |
86 | ifeq ($(BUILD),release) | |
b17c1746 | 87 | __OPTIMIZEFLAG_2 = -O2 |
264af224 | 88 | endif |
8c9f8f91 JS |
89 | ifeq ($(USE_RTTI),0) |
90 | __RTTIFLAG_5 = -fno-rtti | |
264af224 | 91 | endif |
8c9f8f91 JS |
92 | ifeq ($(USE_RTTI),1) |
93 | __RTTIFLAG_5 = | |
264af224 | 94 | endif |
b17c1746 | 95 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 96 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
97 | endif |
98 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 99 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
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__ | |
264af224 VS |
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 | |
8c9f8f91 JS |
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 | |
b17c1746 DE |
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 | |
2113bc77 MW |
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 | |
3abcf424 RD |
153 | ifeq ($(USE_GDIPLUS),1) |
154 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
155 | endif | |
156 | ifeq ($(USE_GDIPLUS),1) | |
157 | __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1 | |
158 | endif | |
264af224 VS |
159 | ifeq ($(SHARED),1) |
160 | __DLLFLAG_p = -DWXUSINGDLL | |
161 | endif | |
162 | ifeq ($(SHARED),1) | |
163 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
164 | endif | |
b17c1746 DE |
165 | ifeq ($(MONOLITHIC),0) |
166 | __WXLIB_DBGRID_p = \ | |
c33fae85 | 167 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid |
a4ad36cd | 168 | endif |
b17c1746 DE |
169 | ifeq ($(MONOLITHIC),0) |
170 | __WXLIB_ADV_p = \ | |
c33fae85 | 171 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv |
a4ad36cd | 172 | endif |
b17c1746 | 173 | ifeq ($(MONOLITHIC),0) |
b92ca05a | 174 | ifeq ($(USE_ODBC),1) |
c33fae85 RN |
175 | __WXLIB_ODBC_p = \ |
176 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc | |
a4ad36cd | 177 | endif |
b92ca05a | 178 | endif |
b17c1746 DE |
179 | ifeq ($(MONOLITHIC),0) |
180 | __WXLIB_HTML_p = \ | |
c33fae85 | 181 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html |
a4ad36cd | 182 | endif |
b17c1746 | 183 | ifeq ($(MONOLITHIC),0) |
ebef1625 MW |
184 | __WXLIB_XML_p = \ |
185 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
186 | endif | |
187 | ifeq ($(MONOLITHIC),0) | |
b17c1746 | 188 | __WXLIB_CORE_p = \ |
c33fae85 | 189 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
264af224 | 190 | endif |
b17c1746 | 191 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
192 | __WXLIB_BASE_p = \ |
193 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
194 | endif |
195 | ifeq ($(MONOLITHIC),1) | |
196 | __WXLIB_MONO_p = \ | |
c33fae85 | 197 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
264af224 VS |
198 | endif |
199 | ifeq ($(USE_GUI),1) | |
9c2d002b | 200 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
264af224 | 201 | endif |
b17c1746 | 202 | ifeq ($(USE_GUI),1) |
9c2d002b | 203 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
264af224 | 204 | endif |
b17c1746 | 205 | ifeq ($(USE_GUI),1) |
9c2d002b | 206 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
264af224 | 207 | endif |
4e209a20 VS |
208 | ifeq ($(MSLU),1) |
209 | __UNICOWS_LIB_p = -lunicows | |
210 | endif | |
3abcf424 RD |
211 | ifeq ($(USE_GDIPLUS),1) |
212 | __GDIPLUS_LIB_p = -lgdiplus | |
213 | endif | |
b17c1746 DE |
214 | ifeq ($(BUILD),debug) |
215 | ifeq ($(DEBUG_INFO),default) | |
216 | __DEBUGINFO = -g | |
f2901744 | 217 | endif |
264af224 | 218 | endif |
b17c1746 DE |
219 | ifeq ($(BUILD),release) |
220 | ifeq ($(DEBUG_INFO),default) | |
221 | __DEBUGINFO = | |
264af224 | 222 | endif |
264af224 | 223 | endif |
b17c1746 DE |
224 | ifeq ($(DEBUG_INFO),0) |
225 | __DEBUGINFO = | |
264af224 | 226 | endif |
b17c1746 DE |
227 | ifeq ($(DEBUG_INFO),1) |
228 | __DEBUGINFO = -g | |
264af224 | 229 | endif |
8c9f8f91 JS |
230 | ifeq ($(USE_THREADS),0) |
231 | __THREADSFLAG = | |
232 | endif | |
233 | ifeq ($(USE_THREADS),1) | |
234 | __THREADSFLAG = -mthreads | |
235 | endif | |
264af224 VS |
236 | |
237 | ||
238 | all: $(OBJS) | |
239 | $(OBJS): | |
240 | -if not exist $(OBJS) mkdir $(OBJS) | |
241 | ||
242 | ### Targets: ### | |
243 | ||
dd65d8c8 | 244 | all: $(__dbbrowse___depname) data_help_std data_help_png |
264af224 | 245 | |
b17c1746 DE |
246 | clean: |
247 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 248 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
b17c1746 DE |
249 | -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe |
250 | ||
dd65d8c8 | 251 | ifeq ($(USE_ODBC),1) |
b17c1746 | 252 | $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o |
3abcf424 | 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 |
dd65d8c8 | 254 | endif |
264af224 | 255 | |
eac98de7 VS |
256 | data_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 | ||
260 | data_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 | ||
1c3a6972 | 264 | $(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp |
0d90d6ea | 265 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 266 | |
b17c1746 | 267 | $(OBJS)\dbbrowse_doc.o: ./doc.cpp |
0d90d6ea | 268 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 269 | |
b17c1746 | 270 | $(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp |
0d90d6ea | 271 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 272 | |
b17c1746 | 273 | $(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp |
0d90d6ea | 274 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 275 | |
b17c1746 | 276 | $(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp |
0d90d6ea | 277 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 278 | |
b17c1746 | 279 | $(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp |
0d90d6ea | 280 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 281 | |
b17c1746 | 282 | $(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp |
0d90d6ea | 283 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 284 | |
b17c1746 | 285 | $(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp |
0d90d6ea | 286 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 287 | |
b17c1746 | 288 | $(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc |
3abcf424 | 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 |
264af224 | 290 | |
eac98de7 | 291 | .PHONY: all clean data_help_std data_help_png |
d3d0b8db | 292 | |
8c9f8f91 | 293 | |
0d90d6ea JS |
294 | # Dependencies tracking: |
295 | -include $(OBJS)/*.d |