]> git.saurik.com Git - wxWidgets.git/blame - demos/bombs/makefile.gcc
Setting eol-style property to CRLF for some project files.
[wxWidgets.git] / demos / bombs / makefile.gcc
CommitLineData
264af224
VS
1# =========================================================================
2# This makefile was generated by
95ff11c4 3# Bakefile 0.2.6 (http://www.bakefile.org)
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
03c6117e 15CPPDEPS = -MT$@ -MF$@.d -MD -MP
ae4ccf12 16WX_RELEASE_NODOT = 29
7379e476 17COMPILER_PREFIX = gcc
b17c1746 18OBJS = \
7379e476
VZ
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
23BOMBS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
28 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
29 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
264af224
VS
30BOMBS_OBJECTS = \
31 $(OBJS)\bombs_bombs.o \
32 $(OBJS)\bombs_bombs1.o \
33 $(OBJS)\bombs_game.o \
34 $(OBJS)\bombs_bombs_rc.o
264af224
VS
35
36### Conditionally set variables: ###
37
38ifeq ($(GCC_VERSION),2.95)
39GCCFLAGS = -fvtable-thunks
40endif
41ifeq ($(USE_GUI),0)
42PORTNAME = base
43endif
44ifeq ($(USE_GUI),1)
45PORTNAME = msw
46endif
47ifeq ($(BUILD),debug)
264af224
VS
48WXDEBUGFLAG = d
49endif
264af224
VS
50ifeq ($(UNICODE),1)
51WXUNICODEFLAG = u
52endif
53ifeq ($(WXUNIV),1)
54WXUNIVNAME = univ
55endif
b17c1746
DE
56ifeq ($(SHARED),1)
57WXDLLFLAG = dll
264af224 58endif
d3d0b8db
JS
59ifeq ($(SHARED),0)
60LIBTYPE_SUFFIX = lib
61endif
62ifeq ($(SHARED),1)
63LIBTYPE_SUFFIX = dll
64endif
dd65d8c8
RN
65ifeq ($(MONOLITHIC),0)
66EXTRALIBS_FOR_BASE =
67endif
68ifeq ($(MONOLITHIC),1)
69EXTRALIBS_FOR_BASE =
70endif
b17c1746
DE
71ifeq ($(BUILD),debug)
72__OPTIMIZEFLAG_2 = -O0
264af224
VS
73endif
74ifeq ($(BUILD),release)
b17c1746 75__OPTIMIZEFLAG_2 = -O2
264af224 76endif
8c9f8f91
JS
77ifeq ($(USE_RTTI),0)
78__RTTIFLAG_5 = -fno-rtti
264af224 79endif
8c9f8f91
JS
80ifeq ($(USE_RTTI),1)
81__RTTIFLAG_5 =
264af224 82endif
b17c1746 83ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 84__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
85endif
86ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 87__EXCEPTIONSFLAG_6 =
b17c1746
DE
88endif
89ifeq ($(WXUNIV),1)
90__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
91endif
92ifeq ($(WXUNIV),1)
93__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
264af224 94endif
d12d9eda
VZ
95ifeq ($(DEBUG_FLAG),0)
96__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
264af224 97endif
d12d9eda
VZ
98ifeq ($(DEBUG_FLAG),0)
99__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
264af224 100endif
8c9f8f91
JS
101ifeq ($(USE_EXCEPTIONS),0)
102__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
103endif
104ifeq ($(USE_EXCEPTIONS),0)
105__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
106endif
107ifeq ($(USE_RTTI),0)
108__RTTI_DEFINE_p = -DwxNO_RTTI
109endif
110ifeq ($(USE_RTTI),0)
111__RTTI_DEFINE_p_1 = --define wxNO_RTTI
112endif
113ifeq ($(USE_THREADS),0)
114__THREAD_DEFINE_p = -DwxNO_THREADS
115endif
116ifeq ($(USE_THREADS),0)
117__THREAD_DEFINE_p_1 = --define wxNO_THREADS
118endif
7379e476
VZ
119ifeq ($(UNICODE),0)
120__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
121endif
b17c1746
DE
122ifeq ($(UNICODE),1)
123__UNICODE_DEFINE_p = -D_UNICODE
124endif
7379e476
VZ
125ifeq ($(UNICODE),0)
126__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
127endif
b17c1746
DE
128ifeq ($(UNICODE),1)
129__UNICODE_DEFINE_p_1 = --define _UNICODE
130endif
2113bc77
MW
131ifeq ($(MSLU),1)
132__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
133endif
134ifeq ($(MSLU),1)
135__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
136endif
3abcf424
RD
137ifeq ($(USE_GDIPLUS),1)
138__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
139endif
140ifeq ($(USE_GDIPLUS),1)
141__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
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_CORE_p = \
c33fae85 151 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
a4ad36cd 152endif
b17c1746 153ifeq ($(MONOLITHIC),0)
c33fae85
RN
154__WXLIB_BASE_p = \
155 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 156endif
b17c1746
DE
157ifeq ($(MONOLITHIC),1)
158__WXLIB_MONO_p = \
c33fae85 159 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
a4ad36cd 160endif
b17c1746 161ifeq ($(USE_GUI),1)
9c2d002b 162__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
a4ad36cd 163endif
264af224 164ifeq ($(USE_GUI),1)
9c2d002b 165__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
264af224
VS
166endif
167ifeq ($(USE_GUI),1)
9c2d002b 168__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
264af224 169endif
b17c1746
DE
170ifeq ($(MSLU),1)
171__UNICOWS_LIB_p = -lunicows
264af224 172endif
3abcf424
RD
173ifeq ($(USE_GDIPLUS),1)
174__GDIPLUS_LIB_p = -lgdiplus
175endif
b17c1746
DE
176ifeq ($(BUILD),debug)
177ifeq ($(DEBUG_INFO),default)
178__DEBUGINFO = -g
4e209a20 179endif
264af224 180endif
b17c1746
DE
181ifeq ($(BUILD),release)
182ifeq ($(DEBUG_INFO),default)
183__DEBUGINFO =
264af224 184endif
264af224 185endif
b17c1746
DE
186ifeq ($(DEBUG_INFO),0)
187__DEBUGINFO =
264af224 188endif
b17c1746
DE
189ifeq ($(DEBUG_INFO),1)
190__DEBUGINFO = -g
264af224 191endif
8c9f8f91
JS
192ifeq ($(USE_THREADS),0)
193__THREADSFLAG =
194endif
195ifeq ($(USE_THREADS),1)
196__THREADSFLAG = -mthreads
197endif
264af224
VS
198
199
200all: $(OBJS)
201$(OBJS):
202 -if not exist $(OBJS) mkdir $(OBJS)
203
204### Targets: ###
205
206all: $(OBJS)\bombs.exe
207
b17c1746
DE
208clean:
209 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 210 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
211 -if exist $(OBJS)\bombs.exe del $(OBJS)\bombs.exe
212
213$(OBJS)\bombs.exe: $(BOMBS_OBJECTS) $(OBJS)\bombs_bombs_rc.o
b44f5137 214 $(CXX) -o $@ $(BOMBS_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(__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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
b17c1746 215
1c3a6972 216$(OBJS)\bombs_bombs.o: ./bombs.cpp
0d90d6ea 217 $(CXX) -c -o $@ $(BOMBS_CXXFLAGS) $(CPPDEPS) $<
264af224 218
1c3a6972 219$(OBJS)\bombs_bombs1.o: ./bombs1.cpp
0d90d6ea 220 $(CXX) -c -o $@ $(BOMBS_CXXFLAGS) $(CPPDEPS) $<
264af224 221
1c3a6972 222$(OBJS)\bombs_game.o: ./game.cpp
0d90d6ea 223 $(CXX) -c -o $@ $(BOMBS_CXXFLAGS) $(CPPDEPS) $<
264af224 224
b17c1746 225$(OBJS)\bombs_bombs_rc.o: ./bombs.rc
7379e476 226 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) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
264af224
VS
227
228.PHONY: all clean
d3d0b8db 229
8c9f8f91 230
6e0fbb3d
VS
231SHELL := $(COMSPEC)
232
0d90d6ea
JS
233# Dependencies tracking:
234-include $(OBJS)/*.d