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