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