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