]>
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 |
b17c1746 DE |
64 | ifeq ($(BUILD),debug) |
65 | __OPTIMIZEFLAG_2 = -O0 | |
264af224 VS |
66 | endif |
67 | ifeq ($(BUILD),release) | |
b17c1746 | 68 | __OPTIMIZEFLAG_2 = -O2 |
264af224 | 69 | endif |
b17c1746 DE |
70 | ifeq ($(USE_EXCEPTIONS),0) |
71 | __EXCEPTIONSFLAG_4 = -fno-rtti | |
264af224 | 72 | endif |
b17c1746 DE |
73 | ifeq ($(USE_EXCEPTIONS),1) |
74 | __EXCEPTIONSFLAG_4 = | |
264af224 | 75 | endif |
b17c1746 DE |
76 | ifeq ($(USE_EXCEPTIONS),0) |
77 | __EXCEPTIONSFLAG_5 = -fno-exceptions | |
78 | endif | |
79 | ifeq ($(USE_EXCEPTIONS),1) | |
80 | __EXCEPTIONSFLAG_5 = | |
81 | endif | |
82 | ifeq ($(WXUNIV),1) | |
83 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
84 | endif | |
85 | ifeq ($(WXUNIV),1) | |
86 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
264af224 VS |
87 | endif |
88 | ifeq ($(BUILD),debug) | |
89 | ifeq ($(DEBUG_FLAG),default) | |
90 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
91 | endif | |
92 | endif | |
93 | ifeq ($(DEBUG_FLAG),1) | |
94 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
95 | endif | |
96 | ifeq ($(BUILD),debug) | |
97 | ifeq ($(DEBUG_FLAG),default) | |
98 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
99 | endif | |
100 | endif | |
101 | ifeq ($(DEBUG_FLAG),1) | |
102 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
103 | endif | |
b17c1746 DE |
104 | ifeq ($(UNICODE),1) |
105 | __UNICODE_DEFINE_p = -D_UNICODE | |
106 | endif | |
107 | ifeq ($(UNICODE),1) | |
108 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
109 | endif | |
264af224 VS |
110 | ifeq ($(SHARED),1) |
111 | __DLLFLAG_p = -DWXUSINGDLL | |
112 | endif | |
113 | ifeq ($(SHARED),1) | |
114 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
115 | endif | |
b17c1746 DE |
116 | ifeq ($(MONOLITHIC),0) |
117 | __WXLIB_DBGRID_p = \ | |
c33fae85 | 118 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid |
a4ad36cd | 119 | endif |
b17c1746 DE |
120 | ifeq ($(MONOLITHIC),0) |
121 | __WXLIB_ADV_p = \ | |
c33fae85 | 122 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv |
a4ad36cd | 123 | endif |
b17c1746 | 124 | ifeq ($(MONOLITHIC),0) |
b92ca05a | 125 | ifeq ($(USE_ODBC),1) |
c33fae85 RN |
126 | __WXLIB_ODBC_p = \ |
127 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc | |
a4ad36cd | 128 | endif |
b92ca05a | 129 | endif |
b17c1746 DE |
130 | ifeq ($(MONOLITHIC),0) |
131 | __WXLIB_HTML_p = \ | |
c33fae85 | 132 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html |
a4ad36cd | 133 | endif |
b17c1746 DE |
134 | ifeq ($(MONOLITHIC),0) |
135 | __WXLIB_CORE_p = \ | |
c33fae85 | 136 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
264af224 | 137 | endif |
b17c1746 | 138 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
139 | __WXLIB_BASE_p = \ |
140 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
141 | endif |
142 | ifeq ($(MONOLITHIC),1) | |
143 | __WXLIB_MONO_p = \ | |
c33fae85 | 144 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
264af224 VS |
145 | endif |
146 | ifeq ($(USE_GUI),1) | |
9c2d002b | 147 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
264af224 | 148 | endif |
b17c1746 | 149 | ifeq ($(USE_GUI),1) |
9c2d002b | 150 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
264af224 | 151 | endif |
b17c1746 | 152 | ifeq ($(USE_GUI),1) |
9c2d002b | 153 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
264af224 | 154 | endif |
4e209a20 VS |
155 | ifeq ($(MSLU),1) |
156 | __UNICOWS_LIB_p = -lunicows | |
157 | endif | |
b17c1746 DE |
158 | ifeq ($(SHARED),0) |
159 | LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG) | |
264af224 | 160 | endif |
b17c1746 DE |
161 | ifeq ($(SHARED),1) |
162 | LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG) | |
264af224 | 163 | endif |
b17c1746 DE |
164 | ifeq ($(BUILD),debug) |
165 | ifeq ($(DEBUG_INFO),default) | |
166 | __DEBUGINFO = -g | |
f2901744 | 167 | endif |
264af224 | 168 | endif |
b17c1746 DE |
169 | ifeq ($(BUILD),release) |
170 | ifeq ($(DEBUG_INFO),default) | |
171 | __DEBUGINFO = | |
264af224 | 172 | endif |
264af224 | 173 | endif |
b17c1746 DE |
174 | ifeq ($(DEBUG_INFO),0) |
175 | __DEBUGINFO = | |
264af224 | 176 | endif |
b17c1746 DE |
177 | ifeq ($(DEBUG_INFO),1) |
178 | __DEBUGINFO = -g | |
264af224 VS |
179 | endif |
180 | ||
181 | ||
182 | all: $(OBJS) | |
183 | $(OBJS): | |
184 | -if not exist $(OBJS) mkdir $(OBJS) | |
185 | ||
186 | ### Targets: ### | |
187 | ||
eac98de7 | 188 | all: $(OBJS)\dbbrowse.exe data_help_std data_help_png |
264af224 | 189 | |
b17c1746 DE |
190 | clean: |
191 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
192 | -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe | |
193 | ||
194 | $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o | |
9c2d002b | 195 | $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
264af224 | 196 | |
eac98de7 VS |
197 | data_help_std: |
198 | if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std | |
199 | 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 | |
200 | ||
201 | data_help_png: | |
202 | if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png | |
203 | 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 | |
204 | ||
1c3a6972 | 205 | $(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp |
264af224 VS |
206 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $< |
207 | ||
b17c1746 | 208 | $(OBJS)\dbbrowse_doc.o: ./doc.cpp |
264af224 VS |
209 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $< |
210 | ||
b17c1746 | 211 | $(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp |
264af224 VS |
212 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $< |
213 | ||
b17c1746 | 214 | $(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp |
264af224 VS |
215 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $< |
216 | ||
b17c1746 | 217 | $(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp |
264af224 VS |
218 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $< |
219 | ||
b17c1746 | 220 | $(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp |
264af224 VS |
221 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $< |
222 | ||
b17c1746 | 223 | $(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp |
264af224 VS |
224 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $< |
225 | ||
b17c1746 DE |
226 | $(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp |
227 | $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $< | |
264af224 | 228 | |
b17c1746 | 229 | $(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc |
c33fae85 | 230 | 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 | 231 | |
eac98de7 | 232 | .PHONY: all clean data_help_std data_help_png |