]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
8c9f8f91 | 3 | # Bakefile 0.1.8 (http://bakefile.sourceforge.net) |
3b20263d VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../build/msw/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
25a73439 VS |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
75a0a7b7 VS |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
21 | WIDGETS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \ |
22 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
23 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
24 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \ | |
25 | -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \ | |
26 | $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
25a73439 VS |
27 | WIDGETS_OBJECTS = \ |
28 | $(OBJS)\widgets_button.o \ | |
8941fa88 | 29 | $(OBJS)\widgets_checkbox.o \ |
25a73439 VS |
30 | $(OBJS)\widgets_combobox.o \ |
31 | $(OBJS)\widgets_gauge.o \ | |
32 | $(OBJS)\widgets_listbox.o \ | |
33 | $(OBJS)\widgets_notebook.o \ | |
34 | $(OBJS)\widgets_radiobox.o \ | |
35 | $(OBJS)\widgets_slider.o \ | |
36 | $(OBJS)\widgets_spinbtn.o \ | |
37 | $(OBJS)\widgets_static.o \ | |
38 | $(OBJS)\widgets_textctrl.o \ | |
39 | $(OBJS)\widgets_widgets.o \ | |
40 | $(OBJS)\widgets_widgets_rc.o | |
3b20263d VS |
41 | |
42 | ### Conditionally set variables: ### | |
43 | ||
250700e4 RD |
44 | ifeq ($(GCC_VERSION),2.95) |
45 | GCCFLAGS = -fvtable-thunks | |
46 | endif | |
3b20263d VS |
47 | ifeq ($(USE_GUI),0) |
48 | PORTNAME = base | |
49 | endif | |
50 | ifeq ($(USE_GUI),1) | |
51 | PORTNAME = msw | |
52 | endif | |
53 | ifeq ($(BUILD),debug) | |
25a73439 VS |
54 | ifeq ($(DEBUG_FLAG),default) |
55 | WXDEBUGFLAG = d | |
56 | endif | |
57 | endif | |
58 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
59 | WXDEBUGFLAG = d |
60 | endif | |
3b20263d VS |
61 | ifeq ($(UNICODE),1) |
62 | WXUNICODEFLAG = u | |
63 | endif | |
64 | ifeq ($(WXUNIV),1) | |
65 | WXUNIVNAME = univ | |
66 | endif | |
b17c1746 DE |
67 | ifeq ($(SHARED),1) |
68 | WXDLLFLAG = dll | |
25a73439 | 69 | endif |
b14abf14 JS |
70 | ifeq ($(SHARED),0) |
71 | LIBTYPE_SUFFIX = lib | |
72 | endif | |
73 | ifeq ($(SHARED),1) | |
74 | LIBTYPE_SUFFIX = dll | |
75 | endif | |
dd65d8c8 RN |
76 | ifeq ($(MONOLITHIC),0) |
77 | EXTRALIBS_FOR_BASE = | |
78 | endif | |
79 | ifeq ($(MONOLITHIC),1) | |
80 | EXTRALIBS_FOR_BASE = | |
81 | endif | |
b17c1746 DE |
82 | ifeq ($(BUILD),debug) |
83 | __OPTIMIZEFLAG_2 = -O0 | |
250700e4 RD |
84 | endif |
85 | ifeq ($(BUILD),release) | |
b17c1746 | 86 | __OPTIMIZEFLAG_2 = -O2 |
25a73439 | 87 | endif |
8c9f8f91 JS |
88 | ifeq ($(USE_RTTI),0) |
89 | __RTTIFLAG_5 = -fno-rtti | |
25a73439 | 90 | endif |
8c9f8f91 JS |
91 | ifeq ($(USE_RTTI),1) |
92 | __RTTIFLAG_5 = | |
25a73439 | 93 | endif |
b17c1746 | 94 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 95 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
96 | endif |
97 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 98 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
99 | endif |
100 | ifeq ($(WXUNIV),1) | |
101 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
102 | endif | |
103 | ifeq ($(WXUNIV),1) | |
104 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
250700e4 RD |
105 | endif |
106 | ifeq ($(BUILD),debug) | |
25a73439 VS |
107 | ifeq ($(DEBUG_FLAG),default) |
108 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
109 | endif | |
110 | endif | |
111 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
112 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
113 | endif | |
114 | ifeq ($(BUILD),debug) | |
25a73439 VS |
115 | ifeq ($(DEBUG_FLAG),default) |
116 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
117 | endif | |
118 | endif | |
119 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
120 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ |
121 | endif | |
8c9f8f91 JS |
122 | ifeq ($(USE_EXCEPTIONS),0) |
123 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
124 | endif | |
125 | ifeq ($(USE_EXCEPTIONS),0) | |
126 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
127 | endif | |
128 | ifeq ($(USE_RTTI),0) | |
129 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
130 | endif | |
131 | ifeq ($(USE_RTTI),0) | |
132 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
133 | endif | |
134 | ifeq ($(USE_THREADS),0) | |
135 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
136 | endif | |
137 | ifeq ($(USE_THREADS),0) | |
138 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
139 | endif | |
b17c1746 DE |
140 | ifeq ($(UNICODE),1) |
141 | __UNICODE_DEFINE_p = -D_UNICODE | |
142 | endif | |
143 | ifeq ($(UNICODE),1) | |
144 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
145 | endif | |
3b20263d VS |
146 | ifeq ($(SHARED),1) |
147 | __DLLFLAG_p = -DWXUSINGDLL | |
148 | endif | |
149 | ifeq ($(SHARED),1) | |
150 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
151 | endif | |
b17c1746 DE |
152 | ifeq ($(MONOLITHIC),0) |
153 | __WXLIB_CORE_p = \ | |
c33fae85 | 154 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 155 | endif |
b17c1746 | 156 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
157 | __WXLIB_BASE_p = \ |
158 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 159 | endif |
b17c1746 DE |
160 | ifeq ($(MONOLITHIC),1) |
161 | __WXLIB_MONO_p = \ | |
c33fae85 | 162 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 163 | endif |
b17c1746 | 164 | ifeq ($(USE_GUI),1) |
9c2d002b | 165 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b71531ad | 166 | endif |
25a73439 | 167 | ifeq ($(USE_GUI),1) |
9c2d002b | 168 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
25a73439 VS |
169 | endif |
170 | ifeq ($(USE_GUI),1) | |
9c2d002b | 171 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
25a73439 | 172 | endif |
b17c1746 DE |
173 | ifeq ($(MSLU),1) |
174 | __UNICOWS_LIB_p = -lunicows | |
250700e4 | 175 | endif |
b17c1746 DE |
176 | ifeq ($(BUILD),debug) |
177 | ifeq ($(DEBUG_INFO),default) | |
178 | __DEBUGINFO = -g | |
4e209a20 | 179 | endif |
3b20263d | 180 | endif |
b17c1746 DE |
181 | ifeq ($(BUILD),release) |
182 | ifeq ($(DEBUG_INFO),default) | |
183 | __DEBUGINFO = | |
3b20263d | 184 | endif |
3b20263d | 185 | endif |
b17c1746 DE |
186 | ifeq ($(DEBUG_INFO),0) |
187 | __DEBUGINFO = | |
3b20263d | 188 | endif |
b17c1746 DE |
189 | ifeq ($(DEBUG_INFO),1) |
190 | __DEBUGINFO = -g | |
3b20263d | 191 | endif |
8c9f8f91 JS |
192 | ifeq ($(USE_THREADS),0) |
193 | __THREADSFLAG = | |
194 | endif | |
195 | ifeq ($(USE_THREADS),1) | |
196 | __THREADSFLAG = -mthreads | |
197 | endif | |
3b20263d VS |
198 | |
199 | ||
200 | all: $(OBJS) | |
201 | $(OBJS): | |
202 | -if not exist $(OBJS) mkdir $(OBJS) | |
203 | ||
204 | ### Targets: ### | |
205 | ||
206 | all: $(OBJS)\widgets.exe | |
207 | ||
b17c1746 DE |
208 | clean: |
209 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
210 | -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe | |
211 | ||
212 | $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_widgets_rc.o | |
8c9f8f91 | 213 | $(CXX) -o $@ $(WIDGETS_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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 |
b17c1746 | 214 | |
1c3a6972 | 215 | $(OBJS)\widgets_button.o: ./button.cpp |
3b20263d VS |
216 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
217 | ||
8941fa88 VZ |
218 | $(OBJS)\widgets_checkbox.o: ./checkbox.cpp |
219 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< | |
220 | ||
1c3a6972 | 221 | $(OBJS)\widgets_combobox.o: ./combobox.cpp |
3b20263d VS |
222 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
223 | ||
1c3a6972 | 224 | $(OBJS)\widgets_gauge.o: ./gauge.cpp |
3b20263d VS |
225 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
226 | ||
1c3a6972 | 227 | $(OBJS)\widgets_listbox.o: ./listbox.cpp |
3b20263d VS |
228 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
229 | ||
1c3a6972 | 230 | $(OBJS)\widgets_notebook.o: ./notebook.cpp |
3b20263d VS |
231 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
232 | ||
1c3a6972 | 233 | $(OBJS)\widgets_radiobox.o: ./radiobox.cpp |
3b20263d VS |
234 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
235 | ||
1c3a6972 | 236 | $(OBJS)\widgets_slider.o: ./slider.cpp |
3b20263d VS |
237 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
238 | ||
1c3a6972 | 239 | $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp |
3b20263d VS |
240 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
241 | ||
1c3a6972 | 242 | $(OBJS)\widgets_static.o: ./static.cpp |
3b20263d VS |
243 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
244 | ||
1c3a6972 | 245 | $(OBJS)\widgets_textctrl.o: ./textctrl.cpp |
3b20263d VS |
246 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
247 | ||
1c3a6972 | 248 | $(OBJS)\widgets_widgets.o: ./widgets.cpp |
3b20263d VS |
249 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $< |
250 | ||
1c3a6972 | 251 | $(OBJS)\widgets_widgets_rc.o: ./widgets.rc |
8c9f8f91 | 252 | 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) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH |
3b20263d | 253 | |
250700e4 | 254 | .PHONY: all clean |
b14abf14 | 255 | |
8c9f8f91 | 256 |