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