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