]> git.saurik.com Git - wxWidgets.git/blob - demos/forty/makefile.gcc
*** empty log message ***
[wxWidgets.git] / demos / forty / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 25
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
19 SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 FORTY_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
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)
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
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
56 ifeq ($(UNICODE),1)
57 WXUNICODEFLAG = u
58 endif
59 ifeq ($(WXUNIV),1)
60 WXUNIVNAME = univ
61 endif
62 ifeq ($(SHARED),1)
63 WXDLLFLAG = dll
64 endif
65 ifeq ($(SHARED),0)
66 LIBTYPE_SUFFIX = lib
67 endif
68 ifeq ($(SHARED),1)
69 LIBTYPE_SUFFIX = dll
70 endif
71 ifeq ($(MONOLITHIC),0)
72 EXTRALIBS_FOR_BASE =
73 endif
74 ifeq ($(MONOLITHIC),1)
75 EXTRALIBS_FOR_BASE =
76 endif
77 ifeq ($(BUILD),debug)
78 __OPTIMIZEFLAG_2 = -O0
79 endif
80 ifeq ($(BUILD),release)
81 __OPTIMIZEFLAG_2 = -O2
82 endif
83 ifeq ($(USE_EXCEPTIONS),0)
84 __EXCEPTIONSFLAG_4 = -fno-rtti
85 endif
86 ifeq ($(USE_EXCEPTIONS),1)
87 __EXCEPTIONSFLAG_4 =
88 endif
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__
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
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
123 ifeq ($(SHARED),1)
124 __DLLFLAG_p = -DWXUSINGDLL
125 endif
126 ifeq ($(SHARED),1)
127 __DLLFLAG_p_1 = --define WXUSINGDLL
128 endif
129 ifeq ($(MONOLITHIC),0)
130 __WXLIB_HTML_p = \
131 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
132 endif
133 ifeq ($(MONOLITHIC),0)
134 __WXLIB_ADV_p = \
135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
136 endif
137 ifeq ($(MONOLITHIC),0)
138 __WXLIB_CORE_p = \
139 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
140 endif
141 ifeq ($(MONOLITHIC),0)
142 __WXLIB_BASE_p = \
143 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
144 endif
145 ifeq ($(MONOLITHIC),1)
146 __WXLIB_MONO_p = \
147 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
148 endif
149 ifeq ($(USE_GUI),1)
150 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
151 endif
152 ifeq ($(USE_GUI),1)
153 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
154 endif
155 ifeq ($(USE_GUI),1)
156 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
157 endif
158 ifeq ($(MSLU),1)
159 __UNICOWS_LIB_p = -lunicows
160 endif
161 ifeq ($(BUILD),debug)
162 ifeq ($(DEBUG_INFO),default)
163 __DEBUGINFO = -g
164 endif
165 endif
166 ifeq ($(BUILD),release)
167 ifeq ($(DEBUG_INFO),default)
168 __DEBUGINFO =
169 endif
170 endif
171 ifeq ($(DEBUG_INFO),0)
172 __DEBUGINFO =
173 endif
174 ifeq ($(DEBUG_INFO),1)
175 __DEBUGINFO = -g
176 endif
177
178
179 all: $(OBJS)
180 $(OBJS):
181 -if not exist $(OBJS) mkdir $(OBJS)
182
183 ### Targets: ###
184
185 all: $(OBJS)\forty.exe data
186
187 clean:
188 -if exist $(OBJS)\*.o del $(OBJS)\*.o
189 -if exist $(OBJS)\forty.exe del $(OBJS)\forty.exe
190
191 $(OBJS)\forty.exe: $(FORTY_OBJECTS) $(OBJS)\forty_forty_rc.o
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
193
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
198 $(OBJS)\forty_forty.o: ./forty.cpp
199 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
200
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) $<
206
207 $(OBJS)\forty_game.o: ./game.cpp
208 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
209
210 $(OBJS)\forty_pile.o: ./pile.cpp
211 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
212
213 $(OBJS)\forty_playerdg.o: ./playerdg.cpp
214 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
215
216 $(OBJS)\forty_scoredg.o: ./scoredg.cpp
217 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
218
219 $(OBJS)\forty_scorefil.o: ./scorefil.cpp
220 $(CXX) -c -o $@ $(FORTY_CXXFLAGS) $<
221
222 $(OBJS)\forty_forty_rc.o: ./forty.rc
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
224
225 .PHONY: all clean data
226