]> git.saurik.com Git - wxWidgets.git/blame - samples/artprov/makefile.gcc
Bakefile 0.2.8 rebake.
[wxWidgets.git] / samples / artprov / makefile.gcc
CommitLineData
78808897
VZ
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.7 (http://www.bakefile.org)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CPPDEPS = -MT$@ -MF$@.d -MD -MP
16WX_RELEASE_NODOT = 29
17COMPILER_PREFIX = gcc
18OBJS = \
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23ARTTEST_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) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
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)
30ARTTEST_OBJECTS = \
31 $(OBJS)\arttest_arttest.o \
32 $(OBJS)\arttest_artbrows.o \
33 $(OBJS)\arttest_arttest_rc.o
34
35### Conditionally set variables: ###
36
37ifeq ($(GCC_VERSION),2.95)
38GCCFLAGS = -fvtable-thunks
39endif
40ifeq ($(USE_GUI),0)
41PORTNAME = base
42endif
43ifeq ($(USE_GUI),1)
44PORTNAME = msw
45endif
46ifeq ($(BUILD),debug)
47WXDEBUGFLAG = d
48endif
49ifeq ($(UNICODE),1)
50WXUNICODEFLAG = u
51endif
52ifeq ($(WXUNIV),1)
53WXUNIVNAME = univ
54endif
55ifeq ($(SHARED),1)
56WXDLLFLAG = dll
57endif
58ifeq ($(SHARED),0)
59LIBTYPE_SUFFIX = lib
60endif
61ifeq ($(SHARED),1)
62LIBTYPE_SUFFIX = dll
63endif
64ifeq ($(MONOLITHIC),0)
65EXTRALIBS_FOR_BASE =
66endif
67ifeq ($(MONOLITHIC),1)
68EXTRALIBS_FOR_BASE =
69endif
70ifeq ($(BUILD),debug)
71__OPTIMIZEFLAG_2 = -O0
72endif
73ifeq ($(BUILD),release)
74__OPTIMIZEFLAG_2 = -O2
75endif
76ifeq ($(USE_RTTI),0)
77__RTTIFLAG_5 = -fno-rtti
78endif
79ifeq ($(USE_RTTI),1)
80__RTTIFLAG_5 =
81endif
82ifeq ($(USE_EXCEPTIONS),0)
83__EXCEPTIONSFLAG_6 = -fno-exceptions
84endif
85ifeq ($(USE_EXCEPTIONS),1)
86__EXCEPTIONSFLAG_6 =
87endif
88ifeq ($(WXUNIV),1)
89__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
90endif
91ifeq ($(WXUNIV),1)
92__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
93endif
94ifeq ($(DEBUG_FLAG),0)
95__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
96endif
97ifeq ($(DEBUG_FLAG),0)
98__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
99endif
100ifeq ($(USE_EXCEPTIONS),0)
101__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
102endif
103ifeq ($(USE_EXCEPTIONS),0)
104__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
105endif
106ifeq ($(USE_RTTI),0)
107__RTTI_DEFINE_p = -DwxNO_RTTI
108endif
109ifeq ($(USE_RTTI),0)
110__RTTI_DEFINE_p_1 = --define wxNO_RTTI
111endif
112ifeq ($(USE_THREADS),0)
113__THREAD_DEFINE_p = -DwxNO_THREADS
114endif
115ifeq ($(USE_THREADS),0)
116__THREAD_DEFINE_p_1 = --define wxNO_THREADS
117endif
118ifeq ($(UNICODE),0)
119__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
120endif
121ifeq ($(UNICODE),1)
122__UNICODE_DEFINE_p = -D_UNICODE
123endif
124ifeq ($(UNICODE),0)
125__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
126endif
127ifeq ($(UNICODE),1)
128__UNICODE_DEFINE_p_1 = --define _UNICODE
129endif
130ifeq ($(MSLU),1)
131__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
132endif
133ifeq ($(MSLU),1)
134__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
135endif
136ifeq ($(USE_GDIPLUS),1)
137__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
138endif
139ifeq ($(USE_GDIPLUS),1)
140__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
141endif
142ifeq ($(SHARED),1)
143__DLLFLAG_p = -DWXUSINGDLL
144endif
145ifeq ($(SHARED),1)
146__DLLFLAG_p_1 = --define WXUSINGDLL
147endif
148ifeq ($(MONOLITHIC),0)
149__WXLIB_CORE_p = \
150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
151endif
152ifeq ($(MONOLITHIC),0)
153__WXLIB_BASE_p = \
154 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
155endif
156ifeq ($(MONOLITHIC),1)
157__WXLIB_MONO_p = \
158 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
159endif
160ifeq ($(USE_GUI),1)
161__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
162endif
163ifeq ($(USE_GUI),1)
164__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
165endif
166ifeq ($(USE_GUI),1)
167__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
168endif
169ifeq ($(MSLU),1)
170__UNICOWS_LIB_p = -lunicows
171endif
172ifeq ($(USE_GDIPLUS),1)
173__GDIPLUS_LIB_p = -lgdiplus
174endif
175ifeq ($(BUILD),debug)
176ifeq ($(DEBUG_INFO),default)
177__DEBUGINFO = -g
178endif
179endif
180ifeq ($(BUILD),release)
181ifeq ($(DEBUG_INFO),default)
182__DEBUGINFO =
183endif
184endif
185ifeq ($(DEBUG_INFO),0)
186__DEBUGINFO =
187endif
188ifeq ($(DEBUG_INFO),1)
189__DEBUGINFO = -g
190endif
191ifeq ($(USE_THREADS),0)
192__THREADSFLAG =
193endif
194ifeq ($(USE_THREADS),1)
195__THREADSFLAG = -mthreads
196endif
197
198
199all: $(OBJS)
200$(OBJS):
201 -if not exist $(OBJS) mkdir $(OBJS)
202
203### Targets: ###
204
205all: $(OBJS)\arttest.exe
206
207clean:
208 -if exist $(OBJS)\*.o del $(OBJS)\*.o
209 -if exist $(OBJS)\*.d del $(OBJS)\*.d
210 -if exist $(OBJS)\arttest.exe del $(OBJS)\arttest.exe
211
212$(OBJS)\arttest.exe: $(ARTTEST_OBJECTS) $(OBJS)\arttest_arttest_rc.o
213 $(CXX) -o $@ $(ARTTEST_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
214
215$(OBJS)\arttest_arttest.o: ./arttest.cpp
216 $(CXX) -c -o $@ $(ARTTEST_CXXFLAGS) $(CPPDEPS) $<
217
218$(OBJS)\arttest_artbrows.o: ./artbrows.cpp
219 $(CXX) -c -o $@ $(ARTTEST_CXXFLAGS) $(CPPDEPS) $<
220
221$(OBJS)\arttest_arttest_rc.o: ./arttest.rc
222 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
223
224.PHONY: all clean
225
226
227SHELL := $(COMSPEC)
228
229# Dependencies tracking:
230-include $(OBJS)/*.d