]>
Commit | Line | Data |
---|---|---|
264af224 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
95ff11c4 | 3 | # Bakefile 0.2.6 (http://www.bakefile.org) |
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 | ||
03c6117e | 15 | CPPDEPS = -MT$@ -MF$@.d -MD -MP |
ae4ccf12 | 16 | WX_RELEASE_NODOT = 29 |
7379e476 | 17 | COMPILER_PREFIX = gcc |
b17c1746 | 18 | OBJS = \ |
7379e476 VZ |
19 | $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) |
20 | LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG) | |
b17c1746 DE |
21 | SETUPHDIR = \ |
22 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
23 | FORTY_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \ |
24 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
25 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
2113bc77 | 26 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
3abcf424 RD |
27 | $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \ |
28 | $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \ | |
29 | $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
264af224 VS |
30 | FORTY_OBJECTS = \ |
31 | $(OBJS)\forty_forty.o \ | |
32 | $(OBJS)\forty_canvas.o \ | |
33 | $(OBJS)\forty_card.o \ | |
34 | $(OBJS)\forty_game.o \ | |
35 | $(OBJS)\forty_pile.o \ | |
36 | $(OBJS)\forty_playerdg.o \ | |
37 | $(OBJS)\forty_scoredg.o \ | |
38 | $(OBJS)\forty_scorefil.o \ | |
39 | $(OBJS)\forty_forty_rc.o | |
264af224 VS |
40 | |
41 | ### Conditionally set variables: ### | |
42 | ||
43 | ifeq ($(GCC_VERSION),2.95) | |
44 | GCCFLAGS = -fvtable-thunks | |
45 | endif | |
46 | ifeq ($(USE_GUI),0) | |
47 | PORTNAME = base | |
48 | endif | |
49 | ifeq ($(USE_GUI),1) | |
50 | PORTNAME = msw | |
51 | endif | |
52 | ifeq ($(BUILD),debug) | |
264af224 VS |
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 |
d3d0b8db JS |
64 | ifeq ($(SHARED),0) |
65 | LIBTYPE_SUFFIX = lib | |
66 | endif | |
67 | ifeq ($(SHARED),1) | |
68 | LIBTYPE_SUFFIX = dll | |
69 | endif | |
dd65d8c8 RN |
70 | ifeq ($(MONOLITHIC),0) |
71 | EXTRALIBS_FOR_BASE = | |
72 | endif | |
73 | ifeq ($(MONOLITHIC),1) | |
74 | EXTRALIBS_FOR_BASE = | |
75 | endif | |
b17c1746 DE |
76 | ifeq ($(BUILD),debug) |
77 | __OPTIMIZEFLAG_2 = -O0 | |
264af224 VS |
78 | endif |
79 | ifeq ($(BUILD),release) | |
b17c1746 | 80 | __OPTIMIZEFLAG_2 = -O2 |
264af224 | 81 | endif |
8c9f8f91 JS |
82 | ifeq ($(USE_RTTI),0) |
83 | __RTTIFLAG_5 = -fno-rtti | |
264af224 | 84 | endif |
8c9f8f91 JS |
85 | ifeq ($(USE_RTTI),1) |
86 | __RTTIFLAG_5 = | |
264af224 | 87 | endif |
b17c1746 | 88 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 89 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
90 | endif |
91 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 92 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
93 | endif |
94 | ifeq ($(WXUNIV),1) | |
95 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
96 | endif | |
97 | ifeq ($(WXUNIV),1) | |
98 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
264af224 | 99 | endif |
d12d9eda VZ |
100 | ifeq ($(DEBUG_FLAG),0) |
101 | __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0 | |
264af224 | 102 | endif |
d12d9eda VZ |
103 | ifeq ($(DEBUG_FLAG),0) |
104 | __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0 | |
264af224 | 105 | endif |
8c9f8f91 JS |
106 | ifeq ($(USE_EXCEPTIONS),0) |
107 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
108 | endif | |
109 | ifeq ($(USE_EXCEPTIONS),0) | |
110 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
111 | endif | |
112 | ifeq ($(USE_RTTI),0) | |
113 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
114 | endif | |
115 | ifeq ($(USE_RTTI),0) | |
116 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
117 | endif | |
118 | ifeq ($(USE_THREADS),0) | |
119 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
120 | endif | |
121 | ifeq ($(USE_THREADS),0) | |
122 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
123 | endif | |
7379e476 VZ |
124 | ifeq ($(UNICODE),0) |
125 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0 | |
126 | endif | |
b17c1746 DE |
127 | ifeq ($(UNICODE),1) |
128 | __UNICODE_DEFINE_p = -D_UNICODE | |
129 | endif | |
7379e476 VZ |
130 | ifeq ($(UNICODE),0) |
131 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0 | |
132 | endif | |
b17c1746 DE |
133 | ifeq ($(UNICODE),1) |
134 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
135 | endif | |
2113bc77 MW |
136 | ifeq ($(MSLU),1) |
137 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
138 | endif | |
139 | ifeq ($(MSLU),1) | |
140 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1 | |
141 | endif | |
3abcf424 RD |
142 | ifeq ($(USE_GDIPLUS),1) |
143 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
144 | endif | |
145 | ifeq ($(USE_GDIPLUS),1) | |
146 | __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1 | |
147 | endif | |
264af224 VS |
148 | ifeq ($(SHARED),1) |
149 | __DLLFLAG_p = -DWXUSINGDLL | |
150 | endif | |
151 | ifeq ($(SHARED),1) | |
152 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
153 | endif | |
b17c1746 DE |
154 | ifeq ($(MONOLITHIC),0) |
155 | __WXLIB_HTML_p = \ | |
c33fae85 | 156 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html |
a4ad36cd | 157 | endif |
b17c1746 | 158 | ifeq ($(MONOLITHIC),0) |
c4839ccf | 159 | __WXLIB_ADV_p = \ |
c33fae85 | 160 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv |
c4839ccf JS |
161 | endif |
162 | ifeq ($(MONOLITHIC),0) | |
ebef1625 MW |
163 | __WXLIB_XML_p = \ |
164 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
165 | endif | |
166 | ifeq ($(MONOLITHIC),0) | |
b17c1746 | 167 | __WXLIB_CORE_p = \ |
c33fae85 | 168 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
a4ad36cd | 169 | endif |
b17c1746 | 170 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
171 | __WXLIB_BASE_p = \ |
172 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
a4ad36cd | 173 | endif |
b17c1746 DE |
174 | ifeq ($(MONOLITHIC),1) |
175 | __WXLIB_MONO_p = \ | |
c33fae85 | 176 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
a4ad36cd | 177 | endif |
264af224 | 178 | ifeq ($(USE_GUI),1) |
9c2d002b | 179 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
264af224 VS |
180 | endif |
181 | ifeq ($(USE_GUI),1) | |
9c2d002b | 182 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
264af224 VS |
183 | endif |
184 | ifeq ($(USE_GUI),1) | |
9c2d002b | 185 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
264af224 | 186 | endif |
4e209a20 VS |
187 | ifeq ($(MSLU),1) |
188 | __UNICOWS_LIB_p = -lunicows | |
189 | endif | |
3abcf424 RD |
190 | ifeq ($(USE_GDIPLUS),1) |
191 | __GDIPLUS_LIB_p = -lgdiplus | |
192 | endif | |
b17c1746 DE |
193 | ifeq ($(BUILD),debug) |
194 | ifeq ($(DEBUG_INFO),default) | |
195 | __DEBUGINFO = -g | |
264af224 | 196 | endif |
264af224 | 197 | endif |
b17c1746 DE |
198 | ifeq ($(BUILD),release) |
199 | ifeq ($(DEBUG_INFO),default) | |
200 | __DEBUGINFO = | |
264af224 | 201 | endif |
b17c1746 DE |
202 | endif |
203 | ifeq ($(DEBUG_INFO),0) | |
204 | __DEBUGINFO = | |
205 | endif | |
206 | ifeq ($(DEBUG_INFO),1) | |
207 | __DEBUGINFO = -g | |
264af224 | 208 | endif |
8c9f8f91 JS |
209 | ifeq ($(USE_THREADS),0) |
210 | __THREADSFLAG = | |
211 | endif | |
212 | ifeq ($(USE_THREADS),1) | |
213 | __THREADSFLAG = -mthreads | |
214 | endif | |
264af224 VS |
215 | |
216 | ||
217 | all: $(OBJS) | |
218 | $(OBJS): | |
219 | -if not exist $(OBJS) mkdir $(OBJS) | |
220 | ||
221 | ### Targets: ### | |
222 | ||
154fd1e4 | 223 | all: $(OBJS)\forty.exe data |
264af224 | 224 | |
b17c1746 DE |
225 | clean: |
226 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 227 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
b17c1746 | 228 | -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe |
264af224 | 229 | |
b17c1746 | 230 | $(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty_rc.o |
b44f5137 | 231 | $(CXX) -o $@ $(FORTY_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(__WXLIB_HTML_p) $(__WXLIB_ADV_p) $(__WXLIB_XML_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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet |
264af224 | 232 | |
154fd1e4 WS |
233 | data: |
234 | if not exist $(OBJS) mkdir $(OBJS) | |
235 | for %%f in (about.htm) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
236 | ||
1c3a6972 | 237 | $(OBJS)\forty_forty.o: ./forty.cpp |
0d90d6ea | 238 | $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 239 | |
b17c1746 | 240 | $(OBJS)\forty_canvas.o: ./canvas.cpp |
0d90d6ea | 241 | $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $< |
b17c1746 DE |
242 | |
243 | $(OBJS)\forty_card.o: ./card.cpp | |
0d90d6ea | 244 | $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 245 | |
1c3a6972 | 246 | $(OBJS)\forty_game.o: ./game.cpp |
0d90d6ea | 247 | $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 248 | |
1c3a6972 | 249 | $(OBJS)\forty_pile.o: ./pile.cpp |
0d90d6ea | 250 | $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 251 | |
1c3a6972 | 252 | $(OBJS)\forty_playerdg.o: ./playerdg.cpp |
0d90d6ea | 253 | $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 254 | |
1c3a6972 | 255 | $(OBJS)\forty_scoredg.o: ./scoredg.cpp |
0d90d6ea | 256 | $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 257 | |
1c3a6972 | 258 | $(OBJS)\forty_scorefil.o: ./scorefil.cpp |
0d90d6ea | 259 | $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $(CPPDEPS) $< |
264af224 | 260 | |
b17c1746 | 261 | $(OBJS)\forty_forty_rc.o: ./forty.rc |
7379e476 | 262 | 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) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH |
264af224 | 263 | |
154fd1e4 | 264 | .PHONY: all clean data |
d3d0b8db | 265 | |
8c9f8f91 | 266 | |
6e0fbb3d VS |
267 | SHELL := $(COMSPEC) |
268 | ||
0d90d6ea JS |
269 | # Dependencies tracking: |
270 | -include $(OBJS)/*.d |