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