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