]> git.saurik.com Git - wxWidgets.git/blame - samples/dll/makefile.gcc
Unselect all wxDataViewCtrl items when clicking outside of the item area.
[wxWidgets.git] / samples / dll / makefile.gcc
CommitLineData
61aba460
VS
1# =========================================================================\r
2# This makefile was generated by\r
00eef16d 3# Bakefile 0.2.9 (http://www.bakefile.org)\r
61aba460
VS
4# Do not modify, all changes will be overwritten!\r
5# =========================================================================\r
6\r
7include ../../build/msw/config.gcc\r
8\r
9# -------------------------------------------------------------------------\r
10# Do not modify the rest of this file!\r
11# -------------------------------------------------------------------------\r
12\r
13### Variables: ###\r
14\r
15CPPDEPS = -MT$@ -MF$@.d -MD -MP\r
16WX_RELEASE_NODOT = 29\r
17COMPILER_PREFIX = gcc\r
18OBJS = \\r
4863951a
VS
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)\r
20LIBDIRNAME = \\r
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)\r
61aba460
VS
22SETUPHDIR = \\r
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)\r
24MY_DLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r
4863951a 25 -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \\r
da8b1d4b
KO
26 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
27 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
b796194b
VS
28 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \\r
29 $(__DLLFLAG_p) -DMY_DLL_BUILDING -I. $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \\r
4863951a 30 -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)\r
61aba460
VS
31MY_DLL_OBJECTS = \\r
32 $(OBJS)\my_dll_my_dll.o\r
33WX_EXE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \\r
4863951a 34 -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \\r
da8b1d4b
KO
35 $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \\r
36 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \\r
b796194b
VS
37 -I$(SETUPHDIR) -I.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall \\r
38 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG) \\r
4863951a
VS
39 $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) \\r
40 $(CPPFLAGS) $(CXXFLAGS)\r
61aba460
VS
41WX_EXE_OBJECTS = \\r
42 $(OBJS)\wx_exe_sample_rc.o \\r
1ffe64ef 43 $(OBJS)\wx_exe_wx_exe.o\r
da8b1d4b
KO
44SDK_EXE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \\r
45 $(GCCFLAGS) -DHAVE_W32API_H $(__RTTIFLAG) $(__EXCEPTIONSFLAG) $(CPPFLAGS) \\r
46 $(CXXFLAGS)\r
47SDK_EXE_OBJECTS = \\r
48 $(OBJS)\sdk_exe_sdk_exe.o\r
61aba460
VS
49\r
50### Conditionally set variables: ###\r
51\r
4863951a
VS
52ifeq ($(TOOLKIT),GTK)\r
53WIN32_TOOLKIT_LOWERCASE = gtk\r
54endif\r
55ifeq ($(TOOLKIT),MSW)\r
56WIN32_TOOLKIT_LOWERCASE = msw\r
57endif\r
61aba460
VS
58ifeq ($(GCC_VERSION),2.95)\r
59GCCFLAGS = -fvtable-thunks\r
60endif\r
61ifeq ($(USE_GUI),0)\r
62PORTNAME = base\r
63endif\r
64ifeq ($(USE_GUI),1)\r
4863951a
VS
65PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)\r
66endif\r
67ifeq ($(TOOLKIT),MAC)\r
68WXBASEPORT = _carbon\r
69endif\r
70ifeq ($(OFFICIAL_BUILD),1)\r
71COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD\r
22a3b6e4 72endif\r
61aba460
VS
73ifeq ($(BUILD),debug)\r
74WXDEBUGFLAG = d\r
75endif\r
76ifeq ($(UNICODE),1)\r
77WXUNICODEFLAG = u\r
78endif\r
79ifeq ($(WXUNIV),1)\r
80WXUNIVNAME = univ\r
81endif\r
82ifeq ($(SHARED),1)\r
83WXDLLFLAG = dll\r
84endif\r
85ifeq ($(SHARED),0)\r
86LIBTYPE_SUFFIX = lib\r
87endif\r
88ifeq ($(SHARED),1)\r
89LIBTYPE_SUFFIX = dll\r
90endif\r
91ifeq ($(MONOLITHIC),0)\r
92EXTRALIBS_FOR_BASE = \r
93endif\r
94ifeq ($(MONOLITHIC),1)\r
51ec29ea 95EXTRALIBS_FOR_BASE = \r
61aba460 96endif\r
4863951a
VS
97ifeq ($(TOOLKIT),GTK)\r
98CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields\r
99endif\r
100ifeq ($(TOOLKIT),GTK)\r
101ifeq ($(TOOLKIT_VERSION),2)\r
102LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \\r
103 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \\r
104 glib-2.0.lib\r
105endif\r
106endif\r
61aba460
VS
107ifeq ($(SHARED),0)\r
108__wx_exe___depname = $(OBJS)\wx_exe.exe\r
109endif\r
110ifeq ($(WXUNIV),1)\r
111__WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__\r
112endif\r
113ifeq ($(DEBUG_FLAG),0)\r
114__DEBUG_DEFINE_p_3 = --define wxDEBUG_LEVEL=0\r
115endif\r
da8b1d4b
KO
116ifeq ($(BUILD),release)\r
117__NDEBUG_DEFINE_p_3 = --define NDEBUG\r
118endif\r
61aba460
VS
119ifeq ($(USE_EXCEPTIONS),0)\r
120__EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS\r
121endif\r
122ifeq ($(USE_RTTI),0)\r
123__RTTI_DEFINE_p_3 = --define wxNO_RTTI\r
124endif\r
125ifeq ($(USE_THREADS),0)\r
126__THREAD_DEFINE_p_3 = --define wxNO_THREADS\r
127endif\r
128ifeq ($(UNICODE),0)\r
129__UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0\r
130endif\r
131ifeq ($(UNICODE),1)\r
132__UNICODE_DEFINE_p_3 = --define _UNICODE\r
133endif\r
134ifeq ($(MSLU),1)\r
135__MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1\r
136endif\r
61aba460
VS
137ifeq ($(USE_CAIRO),1)\r
138__CAIRO_INCLUDEDIR_p_1 = --include-dir $(CAIRO_ROOT)/include/cairo\r
139endif\r
140ifeq ($(SHARED),1)\r
141__DLLFLAG_p_3 = --define WXUSINGDLL\r
142endif\r
61aba460
VS
143ifeq ($(WXUNIV),1)\r
144__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
145endif\r
146ifeq ($(DEBUG_FLAG),0)\r
147__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
148endif\r
da8b1d4b
KO
149ifeq ($(BUILD),release)\r
150__NDEBUG_DEFINE_p = -DNDEBUG\r
151endif\r
61aba460
VS
152ifeq ($(USE_EXCEPTIONS),0)\r
153__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
154endif\r
155ifeq ($(USE_RTTI),0)\r
156__RTTI_DEFINE_p = -DwxNO_RTTI\r
157endif\r
158ifeq ($(USE_THREADS),0)\r
159__THREAD_DEFINE_p = -DwxNO_THREADS\r
160endif\r
161ifeq ($(UNICODE),0)\r
162__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
163endif\r
164ifeq ($(UNICODE),1)\r
165__UNICODE_DEFINE_p = -D_UNICODE\r
166endif\r
167ifeq ($(MSLU),1)\r
168__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
169endif\r
61aba460
VS
170ifeq ($(USE_CAIRO),1)\r
171____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo\r
172endif\r
173ifeq ($(SHARED),1)\r
174__DLLFLAG_p = -DWXUSINGDLL\r
175endif\r
176ifeq ($(MONOLITHIC),0)\r
177__WXLIB_CORE_p = \\r
178 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
179endif\r
180ifeq ($(MONOLITHIC),0)\r
181__WXLIB_BASE_p = \\r
4863951a 182 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
61aba460
VS
183endif\r
184ifeq ($(MONOLITHIC),1)\r
185__WXLIB_MONO_p = \\r
186 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
187endif\r
188ifeq ($(USE_GUI),1)\r
189__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
190endif\r
191ifeq ($(USE_GUI),1)\r
192__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
193endif\r
194ifeq ($(USE_GUI),1)\r
195__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
196endif\r
197ifeq ($(MSLU),1)\r
198__UNICOWS_LIB_p = -lunicows\r
199endif\r
61aba460
VS
200ifeq ($(USE_CAIRO),1)\r
201__CAIRO_LIB_p = -lcairo\r
202endif\r
203ifeq ($(USE_CAIRO),1)\r
204____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib\r
205endif\r
206ifeq ($(BUILD),debug)\r
da8b1d4b
KO
207__OPTIMIZEFLAG = -O0\r
208endif\r
209ifeq ($(BUILD),release)\r
210__OPTIMIZEFLAG = -O2\r
211endif\r
212ifeq ($(USE_RTTI),0)\r
213__RTTIFLAG = -fno-rtti\r
214endif\r
215ifeq ($(USE_RTTI),1)\r
216__RTTIFLAG = \r
217endif\r
218ifeq ($(USE_EXCEPTIONS),0)\r
219__EXCEPTIONSFLAG = -fno-exceptions\r
220endif\r
221ifeq ($(USE_EXCEPTIONS),1)\r
222__EXCEPTIONSFLAG = \r
223endif\r
224ifeq ($(BUILD),debug)\r
61aba460
VS
225ifeq ($(DEBUG_INFO),default)\r
226__DEBUGINFO = -g\r
227endif\r
228endif\r
229ifeq ($(BUILD),release)\r
230ifeq ($(DEBUG_INFO),default)\r
231__DEBUGINFO = \r
232endif\r
233endif\r
234ifeq ($(DEBUG_INFO),0)\r
235__DEBUGINFO = \r
236endif\r
237ifeq ($(DEBUG_INFO),1)\r
238__DEBUGINFO = -g\r
239endif\r
240ifeq ($(USE_THREADS),0)\r
241__THREADSFLAG = \r
242endif\r
243ifeq ($(USE_THREADS),1)\r
244__THREADSFLAG = -mthreads\r
245endif\r
246\r
247\r
248all: $(OBJS)\r
249$(OBJS):\r
250 -if not exist $(OBJS) mkdir $(OBJS)\r
251\r
252### Targets: ###\r
253\r
da8b1d4b 254all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe\r
61aba460
VS
255\r
256clean: \r
257 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
258 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
259 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll\r
260 -if exist $(OBJS)\libmy_dll.a del $(OBJS)\libmy_dll.a\r
261 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe\r
da8b1d4b 262 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe\r
61aba460
VS
263\r
264$(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)\r
4863951a 265 $(CXX) $(LINK_DLL_FLAGS) -fPIC -o $@ $(MY_DLL_OBJECTS) -Wl,--out-implib=$(OBJS)\libmy_dll.a $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
61aba460
VS
266\r
267ifeq ($(SHARED),0)\r
268$(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample_rc.o $(OBJS)\my_dll.dll\r
4863951a 269 $(CXX) -o $@ $(WX_EXE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES) $(LDFLAGS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(OBJS)\libmy_dll.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
61aba460
VS
270endif\r
271\r
da8b1d4b
KO
272$(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll\r
273 $(CXX) -o $@ $(SDK_EXE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(OBJS)\libmy_dll.a -luser32\r
274\r
61aba460
VS
275$(OBJS)\my_dll_my_dll.o: ./my_dll.cpp\r
276 $(CXX) -c -o $@ $(MY_DLL_CXXFLAGS) $(CPPDEPS) $<\r
277\r
278$(OBJS)\wx_exe_sample_rc.o: ./../../samples/sample.rc\r
4863951a 279 windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__NDEBUG_DEFINE_p_3) $(__EXCEPTIONS_DEFINE_p_3) $(__RTTI_DEFINE_p_3) $(__THREAD_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) $(__MSLU_DEFINE_p_3) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p_1) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../samples --define NOPCH\r
61aba460 280\r
1ffe64ef 281$(OBJS)\wx_exe_wx_exe.o: ./wx_exe.cpp\r
61aba460
VS
282 $(CXX) -c -o $@ $(WX_EXE_CXXFLAGS) $(CPPDEPS) $<\r
283\r
da8b1d4b
KO
284$(OBJS)\sdk_exe_sdk_exe.o: ./sdk_exe.cpp\r
285 $(CXX) -c -o $@ $(SDK_EXE_CXXFLAGS) $(CPPDEPS) $<\r
286\r
61aba460
VS
287.PHONY: all clean\r
288\r
289\r
290SHELL := $(COMSPEC)\r
291\r
292# Dependencies tracking:\r
293-include $(OBJS)/*.d\r