]> git.saurik.com Git - wxWidgets.git/blame - samples/fswatcher/makefile.gcc
Moved property unattachment code from wxPropertyGridInterface::RemoveProperty() to...
[wxWidgets.git] / samples / fswatcher / makefile.gcc
CommitLineData
6b8ef0b3
VZ
1# =========================================================================
2# This makefile was generated by
a7ebaf0d 3# Bakefile 0.2.8 (http://www.bakefile.org)
6b8ef0b3
VZ
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)
23FSWATCHER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
00fb97de
KO
25 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
26 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
27 $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
f82b7036
KO
28 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) \
29 -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
30 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
6b8ef0b3
VZ
31FSWATCHER_OBJECTS = \
32 $(OBJS)\fswatcher_sample_rc.o \
33 $(OBJS)\fswatcher_fswatcher.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)
78808897 65EXTRALIBS_FOR_BASE =
6b8ef0b3
VZ
66endif
67ifeq ($(MONOLITHIC),1)
78808897 68EXTRALIBS_FOR_BASE =
6b8ef0b3
VZ
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)
78808897 80__RTTIFLAG_5 =
6b8ef0b3
VZ
81endif
82ifeq ($(USE_EXCEPTIONS),0)
83__EXCEPTIONSFLAG_6 = -fno-exceptions
84endif
85ifeq ($(USE_EXCEPTIONS),1)
78808897 86__EXCEPTIONSFLAG_6 =
6b8ef0b3
VZ
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
00fb97de
KO
100ifeq ($(BUILD),release)
101__NDEBUG_DEFINE_p = -DNDEBUG
102endif
103ifeq ($(BUILD),release)
104__NDEBUG_DEFINE_p_1 = --define NDEBUG
105endif
6b8ef0b3
VZ
106ifeq ($(USE_EXCEPTIONS),0)
107__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
108endif
109ifeq ($(USE_EXCEPTIONS),0)
110__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
111endif
112ifeq ($(USE_RTTI),0)
113__RTTI_DEFINE_p = -DwxNO_RTTI
114endif
115ifeq ($(USE_RTTI),0)
116__RTTI_DEFINE_p_1 = --define wxNO_RTTI
117endif
118ifeq ($(USE_THREADS),0)
119__THREAD_DEFINE_p = -DwxNO_THREADS
120endif
121ifeq ($(USE_THREADS),0)
122__THREAD_DEFINE_p_1 = --define wxNO_THREADS
123endif
124ifeq ($(UNICODE),0)
125__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
126endif
127ifeq ($(UNICODE),1)
128__UNICODE_DEFINE_p = -D_UNICODE
129endif
130ifeq ($(UNICODE),0)
131__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
132endif
133ifeq ($(UNICODE),1)
134__UNICODE_DEFINE_p_1 = --define _UNICODE
135endif
136ifeq ($(MSLU),1)
137__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
138endif
139ifeq ($(MSLU),1)
140__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
141endif
142ifeq ($(USE_GDIPLUS),1)
143__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
144endif
145ifeq ($(USE_GDIPLUS),1)
146__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
147endif
f82b7036
KO
148ifeq ($(USE_CAIRO),1)
149____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
150endif
151ifeq ($(USE_CAIRO),1)
152__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
153endif
6b8ef0b3
VZ
154ifeq ($(SHARED),1)
155__DLLFLAG_p = -DWXUSINGDLL
156endif
157ifeq ($(SHARED),1)
158__DLLFLAG_p_1 = --define WXUSINGDLL
159endif
160ifeq ($(MONOLITHIC),0)
161__WXLIB_CORE_p = \
162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
163endif
164ifeq ($(MONOLITHIC),0)
165__WXLIB_BASE_p = \
166 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
167endif
168ifeq ($(MONOLITHIC),1)
169__WXLIB_MONO_p = \
170 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
171endif
172ifeq ($(USE_GUI),1)
173__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
174endif
175ifeq ($(USE_GUI),1)
176__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
177endif
178ifeq ($(USE_GUI),1)
179__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
180endif
181ifeq ($(MSLU),1)
182__UNICOWS_LIB_p = -lunicows
183endif
184ifeq ($(USE_GDIPLUS),1)
185__GDIPLUS_LIB_p = -lgdiplus
186endif
f82b7036
KO
187ifeq ($(USE_CAIRO),1)
188__CAIRO_LIB_p = -lcairo
189endif
190ifeq ($(USE_CAIRO),1)
191____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
192endif
6b8ef0b3
VZ
193ifeq ($(BUILD),debug)
194ifeq ($(DEBUG_INFO),default)
195__DEBUGINFO = -g
196endif
197endif
198ifeq ($(BUILD),release)
199ifeq ($(DEBUG_INFO),default)
78808897 200__DEBUGINFO =
6b8ef0b3
VZ
201endif
202endif
203ifeq ($(DEBUG_INFO),0)
78808897 204__DEBUGINFO =
6b8ef0b3
VZ
205endif
206ifeq ($(DEBUG_INFO),1)
207__DEBUGINFO = -g
208endif
209ifeq ($(USE_THREADS),0)
78808897 210__THREADSFLAG =
6b8ef0b3
VZ
211endif
212ifeq ($(USE_THREADS),1)
213__THREADSFLAG = -mthreads
214endif
215
216
217all: $(OBJS)
218$(OBJS):
219 -if not exist $(OBJS) mkdir $(OBJS)
220
221### Targets: ###
222
223all: $(OBJS)\fswatcher.exe
224
78808897 225clean:
6b8ef0b3
VZ
226 -if exist $(OBJS)\*.o del $(OBJS)\*.o
227 -if exist $(OBJS)\*.d del $(OBJS)\*.d
228 -if exist $(OBJS)\fswatcher.exe del $(OBJS)\fswatcher.exe
229
230$(OBJS)\fswatcher.exe: $(FSWATCHER_OBJECTS) $(OBJS)\fswatcher_sample_rc.o
f82b7036 231 $(CXX) -o $@ $(FSWATCHER_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
6b8ef0b3
VZ
232
233$(OBJS)\fswatcher_sample_rc.o: ./../../samples/sample.rc
00fb97de 234 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_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 $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
6b8ef0b3
VZ
235
236$(OBJS)\fswatcher_fswatcher.o: ./fswatcher.cpp
237 $(CXX) -c -o $@ $(FSWATCHER_CXXFLAGS) $(CPPDEPS) $<
238
239.PHONY: all clean
240
241
242SHELL := $(COMSPEC)
243
244# Dependencies tracking:
245-include $(OBJS)/*.d