]>
Commit | Line | Data |
---|---|---|
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 | 7 | include ../../build/msw/config.gcc |
264af224 VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
b17c1746 DE |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
d3d0b8db | 18 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 21 | DBBROWSE_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 |
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 | |
264af224 VS |
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 | |
264af224 VS |
56 | ifeq ($(UNICODE),1) |
57 | WXUNICODEFLAG = u | |
58 | endif | |
59 | ifeq ($(WXUNIV),1) | |
60 | WXUNIVNAME = univ | |
61 | endif | |
b17c1746 DE |
62 | ifeq ($(SHARED),1) |
63 | WXDLLFLAG = dll | |
264af224 | 64 | endif |
d3d0b8db JS |
65 | ifeq ($(SHARED),0) |
66 | LIBTYPE_SUFFIX = lib | |
67 | endif | |
68 | ifeq ($(SHARED),1) | |
69 | LIBTYPE_SUFFIX = dll | |
70 | endif | |
dd65d8c8 RN |
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 | |
b17c1746 DE |
80 | ifeq ($(BUILD),debug) |
81 | __OPTIMIZEFLAG_2 = -O0 | |
264af224 VS |
82 | endif |
83 | ifeq ($(BUILD),release) | |
b17c1746 | 84 | __OPTIMIZEFLAG_2 = -O2 |
264af224 | 85 | endif |
b17c1746 DE |
86 | ifeq ($(USE_EXCEPTIONS),0) |
87 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
264af224 | 88 | endif |
b17c1746 DE |
89 | ifeq ($(USE_EXCEPTIONS),1) |
90 | __EXCEPTIONSFLAG_4 = | |
264af224 | 91 | endif |
b17c1746 DE |
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__ | |
264af224 VS |
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 | |
b17c1746 DE |
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 | |
264af224 VS |
126 | ifeq ($(SHARED),1) |
127 | __DLLFLAG_p = -DWXUSINGDLL | |
128 | endif | |
129 | ifeq ($(SHARED),1) | |
130 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
131 | endif | |
b17c1746 DE |
132 | ifeq ($(MONOLITHIC),0) |
133 | __WXLIB_DBGRID_p = \ | |
c33fae85 | 134 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid |
a4ad36cd | 135 | endif |
b17c1746 DE |
136 | ifeq ($(MONOLITHIC),0) |
137 | __WXLIB_ADV_p = \ | |
c33fae85 | 138 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv |
a4ad36cd | 139 | endif |
b17c1746 | 140 | ifeq ($(MONOLITHIC),0) |
b92ca05a | 141 | ifeq ($(USE_ODBC),1) |
c33fae85 RN |
142 | __WXLIB_ODBC_p = \ |
143 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc | |
a4ad36cd | 144 | endif |
b92ca05a | 145 | endif |
b17c1746 DE |
146 | ifeq ($(MONOLITHIC),0) |
147 | __WXLIB_HTML_p = \ | |
c33fae85 | 148 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html |
a4ad36cd | 149 | endif |
b17c1746 DE |
150 | ifeq ($(MONOLITHIC),0) |
151 | __WXLIB_CORE_p = \ | |
c33fae85 | 152 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
264af224 | 153 | endif |
b17c1746 | 154 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
155 | __WXLIB_BASE_p = \ |
156 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
157 | endif |
158 | ifeq ($(MONOLITHIC),1) | |
159 | __WXLIB_MONO_p = \ | |
c33fae85 | 160 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
264af224 VS |
161 | endif |
162 | ifeq ($(USE_GUI),1) | |
9c2d002b | 163 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
264af224 | 164 | endif |
b17c1746 | 165 | ifeq ($(USE_GUI),1) |
9c2d002b | 166 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
264af224 | 167 | endif |
b17c1746 | 168 | ifeq ($(USE_GUI),1) |
9c2d002b | 169 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
264af224 | 170 | endif |
4e209a20 VS |
171 | ifeq ($(MSLU),1) |
172 | __UNICOWS_LIB_p = -lunicows | |
173 | endif | |
b17c1746 DE |
174 | ifeq ($(BUILD),debug) |
175 | ifeq ($(DEBUG_INFO),default) | |
176 | __DEBUGINFO = -g | |
f2901744 | 177 | endif |
264af224 | 178 | endif |
b17c1746 DE |
179 | ifeq ($(BUILD),release) |
180 | ifeq ($(DEBUG_INFO),default) | |
181 | __DEBUGINFO = | |
264af224 | 182 | endif |
264af224 | 183 | endif |
b17c1746 DE |
184 | ifeq ($(DEBUG_INFO),0) |
185 | __DEBUGINFO = | |
264af224 | 186 | endif |
b17c1746 DE |
187 | ifeq ($(DEBUG_INFO),1) |
188 | __DEBUGINFO = -g | |
264af224 VS |
189 | endif |
190 | ||
191 | ||
192 | all: $(OBJS) | |
193 | $(OBJS): | |
194 | -if not exist $(OBJS) mkdir $(OBJS) | |
195 | ||
196 | ### Targets: ### | |
197 | ||
dd65d8c8 | 198 | all: $(__dbbrowse___depname) data_help_std data_help_png |
264af224 | 199 | |
b17c1746 DE |
200 | clean: |
201 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
202 | -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe | |
203 | ||
dd65d8c8 | 204 | ifeq ($(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 | 207 | endif |
264af224 | 208 | |
eac98de7 VS |
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 | ||
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 |