]> git.saurik.com Git - wxWidgets.git/blame - samples/dialogs/makefile.gcc
Rebaked using post-0.2.7 svn version of bakefile.
[wxWidgets.git] / samples / dialogs / 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)
23DIALOGS_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)
30DIALOGS_OBJECTS = \
31 $(OBJS)\dialogs_dialogs.o \
32 $(____GENERIC_DIALOGS_IN_NATIVE_BUILDS_FILENAMES_OBJECTS) \
33 $(OBJS)\dialogs_dialogs_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 ($(SHARED),0)
149ifeq ($(WXUNIV),0)
150____GENERIC_DIALOGS_IN_NATIVE_BUILDS_FILENAMES_OBJECTS = \
151 $(OBJS)\dialogs_colrdlgg.o \
152 $(OBJS)\dialogs_dirdlgg.o \
153 $(OBJS)\dialogs_filedlgg.o \
154 $(OBJS)\dialogs_fontdlgg.o
155endif
156endif
157ifeq ($(MONOLITHIC),0)
158__WXLIB_ADV_p = \
159 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
160endif
161ifeq ($(MONOLITHIC),0)
162__WXLIB_CORE_p = \
163 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
164endif
165ifeq ($(MONOLITHIC),0)
166__WXLIB_BASE_p = \
167 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
168endif
169ifeq ($(MONOLITHIC),1)
170__WXLIB_MONO_p = \
171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
172endif
173ifeq ($(USE_GUI),1)
174__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
175endif
176ifeq ($(USE_GUI),1)
177__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
178endif
179ifeq ($(USE_GUI),1)
180__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
181endif
182ifeq ($(MSLU),1)
183__UNICOWS_LIB_p = -lunicows
184endif
185ifeq ($(USE_GDIPLUS),1)
186__GDIPLUS_LIB_p = -lgdiplus
187endif
188ifeq ($(BUILD),debug)
189ifeq ($(DEBUG_INFO),default)
190__DEBUGINFO = -g
191endif
192endif
193ifeq ($(BUILD),release)
194ifeq ($(DEBUG_INFO),default)
195__DEBUGINFO =
196endif
197endif
198ifeq ($(DEBUG_INFO),0)
199__DEBUGINFO =
200endif
201ifeq ($(DEBUG_INFO),1)
202__DEBUGINFO = -g
203endif
204ifeq ($(USE_THREADS),0)
205__THREADSFLAG =
206endif
207ifeq ($(USE_THREADS),1)
208__THREADSFLAG = -mthreads
209endif
210
211
212all: $(OBJS)
213$(OBJS):
214 -if not exist $(OBJS) mkdir $(OBJS)
215
216### Targets: ###
217
218all: $(OBJS)\dialogs.exe data
219
220clean:
221 -if exist $(OBJS)\*.o del $(OBJS)\*.o
222 -if exist $(OBJS)\*.d del $(OBJS)\*.d
223 -if exist $(OBJS)\dialogs.exe del $(OBJS)\dialogs.exe
224
225$(OBJS)\dialogs.exe: $(DIALOGS_OBJECTS) $(OBJS)\dialogs_dialogs_rc.o
226 $(CXX) -o $@ $(DIALOGS_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(__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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
227
228data:
229 if not exist $(OBJS) mkdir $(OBJS)
230 for %%f in (tips.txt) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
231
232$(OBJS)\dialogs_dialogs.o: ./dialogs.cpp
233 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<
234
235$(OBJS)\dialogs_colrdlgg.o: ./../../src/generic/colrdlgg.cpp
236 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<
237
238$(OBJS)\dialogs_dirdlgg.o: ./../../src/generic/dirdlgg.cpp
239 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<
240
241$(OBJS)\dialogs_filedlgg.o: ./../../src/generic/filedlgg.cpp
242 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<
243
244$(OBJS)\dialogs_fontdlgg.o: ./../../src/generic/fontdlgg.cpp
245 $(CXX) -c -o $@ $(DIALOGS_CXXFLAGS) $(CPPDEPS) $<
246
247$(OBJS)\dialogs_dialogs_rc.o: ./dialogs.rc
248 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
249
250.PHONY: all clean data
251
252
253SHELL := $(COMSPEC)
254
255# Dependencies tracking:
256-include $(OBJS)/*.d