]> git.saurik.com Git - wxWidgets.git/blame - samples/clipboard/makefile.gcc
correct size of extra controls in pixels to dialogs units correctly (see #9679)
[wxWidgets.git] / samples / clipboard / makefile.gcc
CommitLineData
c9a93ef9
RR
1# =========================================================================\r
2# This makefile was generated by\r
7862af84 3# Bakefile 0.2.5 (http://www.bakefile.org)\r
c9a93ef9
RR
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
23CLIPBOARD_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \\r
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
25 $(__DEBUG_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 -W -Wall -I. \\r
28 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \\r
29 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r
30CLIPBOARD_OBJECTS = \\r
31 $(OBJS)\clipboard_clipboard.o \\r
32 $(OBJS)\clipboard_clipboard_rc.o\r
33\r
34### Conditionally set variables: ###\r
35\r
36ifeq ($(GCC_VERSION),2.95)\r
37GCCFLAGS = -fvtable-thunks\r
38endif\r
39ifeq ($(USE_GUI),0)\r
40PORTNAME = base\r
41endif\r
42ifeq ($(USE_GUI),1)\r
43PORTNAME = msw\r
44endif\r
45ifeq ($(BUILD),debug)\r
46ifeq ($(DEBUG_FLAG),default)\r
47WXDEBUGFLAG = d\r
48endif\r
49endif\r
50ifeq ($(DEBUG_FLAG),1)\r
51WXDEBUGFLAG = d\r
52endif\r
53ifeq ($(UNICODE),1)\r
54WXUNICODEFLAG = u\r
55endif\r
56ifeq ($(WXUNIV),1)\r
57WXUNIVNAME = univ\r
58endif\r
59ifeq ($(SHARED),1)\r
60WXDLLFLAG = dll\r
61endif\r
62ifeq ($(SHARED),0)\r
63LIBTYPE_SUFFIX = lib\r
64endif\r
65ifeq ($(SHARED),1)\r
66LIBTYPE_SUFFIX = dll\r
67endif\r
68ifeq ($(MONOLITHIC),0)\r
69EXTRALIBS_FOR_BASE = \r
70endif\r
71ifeq ($(MONOLITHIC),1)\r
72EXTRALIBS_FOR_BASE = \r
73endif\r
74ifeq ($(BUILD),debug)\r
75__OPTIMIZEFLAG_2 = -O0\r
76endif\r
77ifeq ($(BUILD),release)\r
78__OPTIMIZEFLAG_2 = -O2\r
79endif\r
80ifeq ($(USE_RTTI),0)\r
81__RTTIFLAG_5 = -fno-rtti\r
82endif\r
83ifeq ($(USE_RTTI),1)\r
84__RTTIFLAG_5 = \r
85endif\r
86ifeq ($(USE_EXCEPTIONS),0)\r
87__EXCEPTIONSFLAG_6 = -fno-exceptions\r
88endif\r
89ifeq ($(USE_EXCEPTIONS),1)\r
90__EXCEPTIONSFLAG_6 = \r
91endif\r
92ifeq ($(WXUNIV),1)\r
93__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
94endif\r
95ifeq ($(WXUNIV),1)\r
96__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r
97endif\r
98ifeq ($(BUILD),debug)\r
99ifeq ($(DEBUG_FLAG),default)\r
100__DEBUG_DEFINE_p = -D__WXDEBUG__\r
101endif\r
102endif\r
103ifeq ($(DEBUG_FLAG),1)\r
104__DEBUG_DEFINE_p = -D__WXDEBUG__\r
105endif\r
106ifeq ($(BUILD),debug)\r
107ifeq ($(DEBUG_FLAG),default)\r
108__DEBUG_DEFINE_p_1 = --define __WXDEBUG__\r
109endif\r
110endif\r
111ifeq ($(DEBUG_FLAG),1)\r
112__DEBUG_DEFINE_p_1 = --define __WXDEBUG__\r
113endif\r
114ifeq ($(USE_EXCEPTIONS),0)\r
115__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
116endif\r
117ifeq ($(USE_EXCEPTIONS),0)\r
118__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r
119endif\r
120ifeq ($(USE_RTTI),0)\r
121__RTTI_DEFINE_p = -DwxNO_RTTI\r
122endif\r
123ifeq ($(USE_RTTI),0)\r
124__RTTI_DEFINE_p_1 = --define wxNO_RTTI\r
125endif\r
126ifeq ($(USE_THREADS),0)\r
127__THREAD_DEFINE_p = -DwxNO_THREADS\r
128endif\r
129ifeq ($(USE_THREADS),0)\r
130__THREAD_DEFINE_p_1 = --define wxNO_THREADS\r
131endif\r
132ifeq ($(UNICODE),0)\r
133__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
134endif\r
135ifeq ($(UNICODE),1)\r
136__UNICODE_DEFINE_p = -D_UNICODE\r
137endif\r
138ifeq ($(UNICODE),0)\r
139__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r
140endif\r
141ifeq ($(UNICODE),1)\r
142__UNICODE_DEFINE_p_1 = --define _UNICODE\r
143endif\r
144ifeq ($(MSLU),1)\r
145__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
146endif\r
147ifeq ($(MSLU),1)\r
148__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r
149endif\r
150ifeq ($(USE_GDIPLUS),1)\r
151__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1\r
152endif\r
153ifeq ($(USE_GDIPLUS),1)\r
154__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1\r
155endif\r
156ifeq ($(SHARED),1)\r
157__DLLFLAG_p = -DWXUSINGDLL\r
158endif\r
159ifeq ($(SHARED),1)\r
160__DLLFLAG_p_1 = --define WXUSINGDLL\r
161endif\r
162ifeq ($(MONOLITHIC),0)\r
163__WXLIB_CORE_p = \\r
164 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
165endif\r
166ifeq ($(MONOLITHIC),0)\r
167__WXLIB_BASE_p = \\r
168 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
169endif\r
170ifeq ($(MONOLITHIC),1)\r
171__WXLIB_MONO_p = \\r
172 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
173endif\r
174ifeq ($(USE_GUI),1)\r
175__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
176endif\r
177ifeq ($(USE_GUI),1)\r
178__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
179endif\r
180ifeq ($(USE_GUI),1)\r
181__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
182endif\r
183ifeq ($(MSLU),1)\r
184__UNICOWS_LIB_p = -lunicows\r
185endif\r
186ifeq ($(USE_GDIPLUS),1)\r
187__GDIPLUS_LIB_p = -lgdiplus\r
188endif\r
189ifeq ($(BUILD),debug)\r
190ifeq ($(DEBUG_INFO),default)\r
191__DEBUGINFO = -g\r
192endif\r
193endif\r
194ifeq ($(BUILD),release)\r
195ifeq ($(DEBUG_INFO),default)\r
196__DEBUGINFO = \r
197endif\r
198endif\r
199ifeq ($(DEBUG_INFO),0)\r
200__DEBUGINFO = \r
201endif\r
202ifeq ($(DEBUG_INFO),1)\r
203__DEBUGINFO = -g\r
204endif\r
205ifeq ($(USE_THREADS),0)\r
206__THREADSFLAG = \r
207endif\r
208ifeq ($(USE_THREADS),1)\r
209__THREADSFLAG = -mthreads\r
210endif\r
211\r
212\r
213all: $(OBJS)\r
214$(OBJS):\r
215 -if not exist $(OBJS) mkdir $(OBJS)\r
216\r
217### Targets: ###\r
218\r
219all: $(OBJS)\clipboard.exe\r
220\r
221clean: \r
222 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
223 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
224 -if exist $(OBJS)\clipboard.exe del $(OBJS)\clipboard.exe\r
225\r
226$(OBJS)\clipboard.exe: $(CLIPBOARD_OBJECTS) $(OBJS)\clipboard_clipboard_rc.o\r
b44f5137 227 $(CXX) -o $@ $(CLIPBOARD_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet\r
c9a93ef9
RR
228\r
229$(OBJS)\clipboard_clipboard.o: ./clipboard.cpp\r
230 $(CXX) -c -o $@ $(CLIPBOARD_CXXFLAGS) $(CPPDEPS) $<\r
231\r
232$(OBJS)\clipboard_clipboard_rc.o: ./clipboard.rc\r
233 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH\r
234\r
235.PHONY: all clean\r
236\r
237\r
238SHELL := $(COMSPEC)\r
239\r
240# Dependencies tracking:\r
241-include $(OBJS)/*.d\r