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