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