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