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