]> git.saurik.com Git - wxWidgets.git/blob - samples/dll/makefile.gcc
Extract wxSTOCK_WITHOUT_ELLIPSIS from wxSTOCK_FOR_BUTTON.
[wxWidgets.git] / samples / dll / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.8 (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)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21 SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 MY_DLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
24 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__NDEBUG_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 \
28 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall $(__DLLFLAG_p) -DMY_DLL_BUILDING \
29 -I. $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
30 $(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__WXMSW__ $(__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 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
38 $(____CAIRO_INCLUDEDIR_FILENAMES) -W -Wall -I. $(__DLLFLAG_p) \
39 -I.\..\..\samples -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
40 -Wno-ctor-dtor-privacy $(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 ($(GCC_VERSION),2.95)
53 GCCFLAGS = -fvtable-thunks
54 endif
55 ifeq ($(USE_GUI),0)
56 PORTNAME = base
57 endif
58 ifeq ($(USE_GUI),1)
59 PORTNAME = msw
60 endif
61 ifeq ($(BUILD),debug)
62 WXDEBUGFLAG = d
63 endif
64 ifeq ($(UNICODE),1)
65 WXUNICODEFLAG = u
66 endif
67 ifeq ($(WXUNIV),1)
68 WXUNIVNAME = univ
69 endif
70 ifeq ($(SHARED),1)
71 WXDLLFLAG = dll
72 endif
73 ifeq ($(SHARED),0)
74 LIBTYPE_SUFFIX = lib
75 endif
76 ifeq ($(SHARED),1)
77 LIBTYPE_SUFFIX = dll
78 endif
79 ifeq ($(MONOLITHIC),0)
80 EXTRALIBS_FOR_BASE =
81 endif
82 ifeq ($(MONOLITHIC),1)
83 EXTRALIBS_FOR_BASE =
84 endif
85 ifeq ($(SHARED),0)
86 __wx_exe___depname = $(OBJS)\wx_exe.exe
87 endif
88 ifeq ($(WXUNIV),1)
89 __WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
90 endif
91 ifeq ($(DEBUG_FLAG),0)
92 __DEBUG_DEFINE_p_3 = --define wxDEBUG_LEVEL=0
93 endif
94 ifeq ($(BUILD),release)
95 __NDEBUG_DEFINE_p_3 = --define NDEBUG
96 endif
97 ifeq ($(USE_EXCEPTIONS),0)
98 __EXCEPTIONS_DEFINE_p_3 = --define wxNO_EXCEPTIONS
99 endif
100 ifeq ($(USE_RTTI),0)
101 __RTTI_DEFINE_p_3 = --define wxNO_RTTI
102 endif
103 ifeq ($(USE_THREADS),0)
104 __THREAD_DEFINE_p_3 = --define wxNO_THREADS
105 endif
106 ifeq ($(UNICODE),0)
107 __UNICODE_DEFINE_p_3 = --define wxUSE_UNICODE=0
108 endif
109 ifeq ($(UNICODE),1)
110 __UNICODE_DEFINE_p_3 = --define _UNICODE
111 endif
112 ifeq ($(MSLU),1)
113 __MSLU_DEFINE_p_3 = --define wxUSE_UNICODE_MSLU=1
114 endif
115 ifeq ($(USE_GDIPLUS),1)
116 __GFXCTX_DEFINE_p_3 = --define wxUSE_GRAPHICS_CONTEXT=1
117 endif
118 ifeq ($(USE_CAIRO),1)
119 __CAIRO_INCLUDEDIR_p_1 = --include-dir $(CAIRO_ROOT)/include/cairo
120 endif
121 ifeq ($(SHARED),1)
122 __DLLFLAG_p_3 = --define WXUSINGDLL
123 endif
124 ifeq ($(WXUNIV),1)
125 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
126 endif
127 ifeq ($(DEBUG_FLAG),0)
128 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
129 endif
130 ifeq ($(BUILD),release)
131 __NDEBUG_DEFINE_p = -DNDEBUG
132 endif
133 ifeq ($(USE_EXCEPTIONS),0)
134 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
135 endif
136 ifeq ($(USE_RTTI),0)
137 __RTTI_DEFINE_p = -DwxNO_RTTI
138 endif
139 ifeq ($(USE_THREADS),0)
140 __THREAD_DEFINE_p = -DwxNO_THREADS
141 endif
142 ifeq ($(UNICODE),0)
143 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
144 endif
145 ifeq ($(UNICODE),1)
146 __UNICODE_DEFINE_p = -D_UNICODE
147 endif
148 ifeq ($(MSLU),1)
149 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
150 endif
151 ifeq ($(USE_GDIPLUS),1)
152 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
153 endif
154 ifeq ($(USE_CAIRO),1)
155 ____CAIRO_INCLUDEDIR_FILENAMES = -I$(CAIRO_ROOT)\include\cairo
156 endif
157 ifeq ($(SHARED),1)
158 __DLLFLAG_p = -DWXUSINGDLL
159 endif
160 ifeq ($(MONOLITHIC),0)
161 __WXLIB_CORE_p = \
162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
163 endif
164 ifeq ($(MONOLITHIC),0)
165 __WXLIB_BASE_p = \
166 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
167 endif
168 ifeq ($(MONOLITHIC),1)
169 __WXLIB_MONO_p = \
170 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
171 endif
172 ifeq ($(USE_GUI),1)
173 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
174 endif
175 ifeq ($(USE_GUI),1)
176 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
177 endif
178 ifeq ($(USE_GUI),1)
179 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
180 endif
181 ifeq ($(MSLU),1)
182 __UNICOWS_LIB_p = -lunicows
183 endif
184 ifeq ($(USE_GDIPLUS),1)
185 __GDIPLUS_LIB_p = -lgdiplus
186 endif
187 ifeq ($(USE_CAIRO),1)
188 __CAIRO_LIB_p = -lcairo
189 endif
190 ifeq ($(USE_CAIRO),1)
191 ____CAIRO_LIBDIR_FILENAMES = -L$(CAIRO_ROOT)\lib
192 endif
193 ifeq ($(BUILD),debug)
194 __OPTIMIZEFLAG = -O0
195 endif
196 ifeq ($(BUILD),release)
197 __OPTIMIZEFLAG = -O2
198 endif
199 ifeq ($(USE_RTTI),0)
200 __RTTIFLAG = -fno-rtti
201 endif
202 ifeq ($(USE_RTTI),1)
203 __RTTIFLAG =
204 endif
205 ifeq ($(USE_EXCEPTIONS),0)
206 __EXCEPTIONSFLAG = -fno-exceptions
207 endif
208 ifeq ($(USE_EXCEPTIONS),1)
209 __EXCEPTIONSFLAG =
210 endif
211 ifeq ($(BUILD),debug)
212 ifeq ($(DEBUG_INFO),default)
213 __DEBUGINFO = -g
214 endif
215 endif
216 ifeq ($(BUILD),release)
217 ifeq ($(DEBUG_INFO),default)
218 __DEBUGINFO =
219 endif
220 endif
221 ifeq ($(DEBUG_INFO),0)
222 __DEBUGINFO =
223 endif
224 ifeq ($(DEBUG_INFO),1)
225 __DEBUGINFO = -g
226 endif
227 ifeq ($(USE_THREADS),0)
228 __THREADSFLAG =
229 endif
230 ifeq ($(USE_THREADS),1)
231 __THREADSFLAG = -mthreads
232 endif
233
234
235 all: $(OBJS)
236 $(OBJS):
237 -if not exist $(OBJS) mkdir $(OBJS)
238
239 ### Targets: ###
240
241 all: $(OBJS)\my_dll.dll $(__wx_exe___depname) $(OBJS)\sdk_exe.exe
242
243 clean:
244 -if exist $(OBJS)\*.o del $(OBJS)\*.o
245 -if exist $(OBJS)\*.d del $(OBJS)\*.d
246 -if exist $(OBJS)\my_dll.dll del $(OBJS)\my_dll.dll
247 -if exist $(OBJS)\libmy_dll.a del $(OBJS)\libmy_dll.a
248 -if exist $(OBJS)\wx_exe.exe del $(OBJS)\wx_exe.exe
249 -if exist $(OBJS)\sdk_exe.exe del $(OBJS)\sdk_exe.exe
250
251 $(OBJS)\my_dll.dll: $(MY_DLL_OBJECTS)
252 $(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) -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
253
254 ifeq ($(SHARED),0)
255 $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample_rc.o $(OBJS)\my_dll.dll
256 $(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) -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
257 endif
258
259 $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll
260 $(CXX) -o $@ $(SDK_EXE_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(OBJS)\libmy_dll.a -luser32
261
262 $(OBJS)\my_dll_my_dll.o: ./my_dll.cpp
263 $(CXX) -c -o $@ $(MY_DLL_CXXFLAGS) $(CPPDEPS) $<
264
265 $(OBJS)\wx_exe_sample_rc.o: ./../../samples/sample.rc
266 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__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) $(__GFXCTX_DEFINE_p_3) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p_1) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../../samples --define NOPCH
267
268 $(OBJS)\wx_exe_wx_exe.o: ./wx_exe.cpp
269 $(CXX) -c -o $@ $(WX_EXE_CXXFLAGS) $(CPPDEPS) $<
270
271 $(OBJS)\sdk_exe_sdk_exe.o: ./sdk_exe.cpp
272 $(CXX) -c -o $@ $(SDK_EXE_CXXFLAGS) $(CPPDEPS) $<
273
274 .PHONY: all clean
275
276
277 SHELL := $(COMSPEC)
278
279 # Dependencies tracking:
280 -include $(OBJS)/*.d