]> git.saurik.com Git - wxWidgets.git/blame - demos/forty/makefile.gcc
update from Martin Srebotnjak
[wxWidgets.git] / demos / forty / makefile.gcc
CommitLineData
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 7include ../../build/msw/config.gcc
264af224
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
c33fae85 15WX_RELEASE_NODOT = 25
b17c1746
DE
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
d3d0b8db 18LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9
VS
21FORTY_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
26FORTY_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
39ifeq ($(GCC_VERSION),2.95)
40GCCFLAGS = -fvtable-thunks
41endif
42ifeq ($(USE_GUI),0)
43PORTNAME = base
44endif
45ifeq ($(USE_GUI),1)
46PORTNAME = msw
47endif
48ifeq ($(BUILD),debug)
49ifeq ($(DEBUG_FLAG),default)
50WXDEBUGFLAG = d
51endif
52endif
53ifeq ($(DEBUG_FLAG),1)
54WXDEBUGFLAG = d
55endif
264af224
VS
56ifeq ($(UNICODE),1)
57WXUNICODEFLAG = u
58endif
59ifeq ($(WXUNIV),1)
60WXUNIVNAME = univ
61endif
b17c1746
DE
62ifeq ($(SHARED),1)
63WXDLLFLAG = dll
264af224 64endif
d3d0b8db
JS
65ifeq ($(SHARED),0)
66LIBTYPE_SUFFIX = lib
67endif
68ifeq ($(SHARED),1)
69LIBTYPE_SUFFIX = dll
70endif
dd65d8c8
RN
71ifeq ($(MONOLITHIC),0)
72EXTRALIBS_FOR_BASE =
73endif
74ifeq ($(MONOLITHIC),1)
75EXTRALIBS_FOR_BASE =
76endif
b17c1746
DE
77ifeq ($(BUILD),debug)
78__OPTIMIZEFLAG_2 = -O0
264af224
VS
79endif
80ifeq ($(BUILD),release)
b17c1746 81__OPTIMIZEFLAG_2 = -O2
264af224 82endif
b17c1746
DE
83ifeq ($(USE_EXCEPTIONS),0)
84__EXCEPTIONSFLAG_4 = -fno-rtti
264af224 85endif
b17c1746
DE
86ifeq ($(USE_EXCEPTIONS),1)
87__EXCEPTIONSFLAG_4 =
264af224 88endif
b17c1746
DE
89ifeq ($(USE_EXCEPTIONS),0)
90__EXCEPTIONSFLAG_5 = -fno-exceptions
91endif
92ifeq ($(USE_EXCEPTIONS),1)
93__EXCEPTIONSFLAG_5 =
94endif
95ifeq ($(WXUNIV),1)
96__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
97endif
98ifeq ($(WXUNIV),1)
99__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
264af224
VS
100endif
101ifeq ($(BUILD),debug)
102ifeq ($(DEBUG_FLAG),default)
103__DEBUG_DEFINE_p = -D__WXDEBUG__
104endif
105endif
106ifeq ($(DEBUG_FLAG),1)
107__DEBUG_DEFINE_p = -D__WXDEBUG__
108endif
109ifeq ($(BUILD),debug)
110ifeq ($(DEBUG_FLAG),default)
111__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
112endif
113endif
114ifeq ($(DEBUG_FLAG),1)
115__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
116endif
b17c1746
DE
117ifeq ($(UNICODE),1)
118__UNICODE_DEFINE_p = -D_UNICODE
119endif
120ifeq ($(UNICODE),1)
121__UNICODE_DEFINE_p_1 = --define _UNICODE
122endif
264af224
VS
123ifeq ($(SHARED),1)
124__DLLFLAG_p = -DWXUSINGDLL
125endif
126ifeq ($(SHARED),1)
127__DLLFLAG_p_1 = --define WXUSINGDLL
128endif
b17c1746
DE
129ifeq ($(MONOLITHIC),0)
130__WXLIB_HTML_p = \
c33fae85 131 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 132endif
b17c1746 133ifeq ($(MONOLITHIC),0)
c4839ccf 134__WXLIB_ADV_p = \
c33fae85 135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
c4839ccf
JS
136endif
137ifeq ($(MONOLITHIC),0)
b17c1746 138__WXLIB_CORE_p = \
c33fae85 139 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 140endif
b17c1746 141ifeq ($(MONOLITHIC),0)
c33fae85
RN
142__WXLIB_BASE_p = \
143 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 144endif
b17c1746
DE
145ifeq ($(MONOLITHIC),1)
146__WXLIB_MONO_p = \
c33fae85 147 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 148endif
264af224 149ifeq ($(USE_GUI),1)
9c2d002b 150__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
264af224
VS
151endif
152ifeq ($(USE_GUI),1)
9c2d002b 153__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
264af224
VS
154endif
155ifeq ($(USE_GUI),1)
9c2d002b 156__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
264af224 157endif
4e209a20
VS
158ifeq ($(MSLU),1)
159__UNICOWS_LIB_p = -lunicows
160endif
b17c1746
DE
161ifeq ($(BUILD),debug)
162ifeq ($(DEBUG_INFO),default)
163__DEBUGINFO = -g
264af224 164endif
264af224 165endif
b17c1746
DE
166ifeq ($(BUILD),release)
167ifeq ($(DEBUG_INFO),default)
168__DEBUGINFO =
264af224 169endif
b17c1746
DE
170endif
171ifeq ($(DEBUG_INFO),0)
172__DEBUGINFO =
173endif
174ifeq ($(DEBUG_INFO),1)
175__DEBUGINFO = -g
264af224
VS
176endif
177
178
179all: $(OBJS)
180$(OBJS):
181 -if not exist $(OBJS) mkdir $(OBJS)
182
183### Targets: ###
184
154fd1e4 185all: $(OBJS)\forty.exe data
264af224 186
b17c1746
DE
187clean:
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
194data:
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