]> git.saurik.com Git - wxWidgets.git/blame - samples/render/makefile.gcc
making sure it is only breaking at newlines for measuring
[wxWidgets.git] / samples / render / makefile.gcc
CommitLineData
2d611b5c
VS
1# =========================================================================
2# This makefile was generated by
25bb1412 3# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
2d611b5c
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
25bb1412 16WX_RELEASE_NODOT = 28
2d611b5c
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
3abcf424
RD
25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) $(__GFXCTX_DEFINE_p) \
26 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
27 -DNOPCH $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
28 $(CXXFLAGS)
2d611b5c
VS
29RENDER_OBJECTS = \
30 $(OBJS)\render_sample_rc.o \
31 $(OBJS)\render_render.o
8c9f8f91
JS
32RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
33 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
34 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 35 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
36 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -DWXUSINGDLL \
37 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
38 $(CXXFLAGS)
b17c1746
DE
39RENDDLL_OBJECTS = \
40 $(OBJS)\renddll_renddll.o
2d611b5c
VS
41
42### Conditionally set variables: ###
43
44ifeq ($(GCC_VERSION),2.95)
45GCCFLAGS = -fvtable-thunks
46endif
47ifeq ($(USE_GUI),0)
48PORTNAME = base
49endif
50ifeq ($(USE_GUI),1)
51PORTNAME = msw
52endif
53ifeq ($(BUILD),debug)
54ifeq ($(DEBUG_FLAG),default)
55WXDEBUGFLAG = d
56endif
57endif
58ifeq ($(DEBUG_FLAG),1)
59WXDEBUGFLAG = d
60endif
2d611b5c
VS
61ifeq ($(UNICODE),1)
62WXUNICODEFLAG = u
63endif
64ifeq ($(WXUNIV),1)
65WXUNIVNAME = univ
66endif
b17c1746
DE
67ifeq ($(SHARED),1)
68WXDLLFLAG = dll
2d611b5c 69endif
b14abf14
JS
70ifeq ($(SHARED),0)
71LIBTYPE_SUFFIX = lib
72endif
73ifeq ($(SHARED),1)
74LIBTYPE_SUFFIX = dll
75endif
dd65d8c8
RN
76ifeq ($(MONOLITHIC),0)
77EXTRALIBS_FOR_BASE =
78endif
79ifeq ($(MONOLITHIC),1)
80EXTRALIBS_FOR_BASE =
81endif
078c7a59
VS
82ifeq ($(BUILD),debug)
83ifeq ($(UNICODE),0)
314a6446 84PLUGINSUFFIX = d
078c7a59
VS
85endif
86endif
87ifeq ($(BUILD),debug)
88ifeq ($(UNICODE),1)
314a6446 89PLUGINSUFFIX = ud
078c7a59
VS
90endif
91endif
92ifeq ($(BUILD),release)
93ifeq ($(UNICODE),0)
94PLUGINSUFFIX =
95endif
96endif
97ifeq ($(BUILD),release)
98ifeq ($(UNICODE),1)
314a6446 99PLUGINSUFFIX = u
078c7a59
VS
100endif
101endif
b17c1746
DE
102ifeq ($(WXUNIV),1)
103__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
2d611b5c
VS
104endif
105ifeq ($(BUILD),debug)
106ifeq ($(DEBUG_FLAG),default)
107__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
108endif
109endif
110ifeq ($(DEBUG_FLAG),1)
111__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
112endif
8c9f8f91
JS
113ifeq ($(USE_EXCEPTIONS),0)
114__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
115endif
116ifeq ($(USE_RTTI),0)
117__RTTI_DEFINE_p_1 = --define wxNO_RTTI
118endif
119ifeq ($(USE_THREADS),0)
120__THREAD_DEFINE_p_1 = --define wxNO_THREADS
121endif
b17c1746
DE
122ifeq ($(UNICODE),1)
123__UNICODE_DEFINE_p_1 = --define _UNICODE
124endif
2113bc77
MW
125ifeq ($(MSLU),1)
126__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
127endif
3abcf424
RD
128ifeq ($(USE_GDIPLUS),1)
129__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
130endif
2d611b5c
VS
131ifeq ($(SHARED),1)
132__DLLFLAG_p = -DWXUSINGDLL
133endif
134ifeq ($(SHARED),1)
135__DLLFLAG_p_1 = --define WXUSINGDLL
136endif
b17c1746
DE
137ifeq ($(SHARED),1)
138__renddll___depname = \
25bb1412 139 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
b17c1746
DE
140endif
141ifeq ($(BUILD),debug)
142__OPTIMIZEFLAG = -O0
143endif
144ifeq ($(BUILD),release)
145__OPTIMIZEFLAG = -O2
146endif
8c9f8f91
JS
147ifeq ($(USE_RTTI),0)
148__RTTIFLAG = -fno-rtti
b71531ad 149endif
8c9f8f91
JS
150ifeq ($(USE_RTTI),1)
151__RTTIFLAG =
b71531ad
VZ
152endif
153ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 154__EXCEPTIONSFLAG = -fno-exceptions
b71531ad
VZ
155endif
156ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 157__EXCEPTIONSFLAG =
b71531ad 158endif
b17c1746
DE
159ifeq ($(WXUNIV),1)
160__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
2d611b5c
VS
161endif
162ifeq ($(BUILD),debug)
b17c1746
DE
163ifeq ($(DEBUG_FLAG),default)
164__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 165endif
2d611b5c 166endif
b17c1746
DE
167ifeq ($(DEBUG_FLAG),1)
168__DEBUG_DEFINE_p = -D__WXDEBUG__
2d611b5c 169endif
8c9f8f91
JS
170ifeq ($(USE_EXCEPTIONS),0)
171__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
172endif
173ifeq ($(USE_RTTI),0)
174__RTTI_DEFINE_p = -DwxNO_RTTI
175endif
176ifeq ($(USE_THREADS),0)
177__THREAD_DEFINE_p = -DwxNO_THREADS
178endif
2d611b5c 179ifeq ($(UNICODE),1)
b17c1746 180__UNICODE_DEFINE_p = -D_UNICODE
2d611b5c 181endif
2113bc77
MW
182ifeq ($(MSLU),1)
183__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
184endif
3abcf424
RD
185ifeq ($(USE_GDIPLUS),1)
186__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
187endif
2d611b5c
VS
188ifeq ($(MONOLITHIC),0)
189__WXLIB_CORE_p = \
c33fae85 190 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
2d611b5c 191endif
b17c1746 192ifeq ($(MONOLITHIC),0)
c33fae85
RN
193__WXLIB_BASE_p = \
194 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746 195endif
2d611b5c
VS
196ifeq ($(MONOLITHIC),1)
197__WXLIB_MONO_p = \
c33fae85 198 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
2d611b5c 199endif
b17c1746 200ifeq ($(USE_GUI),1)
9c2d002b 201__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
2d611b5c 202endif
b17c1746 203ifeq ($(USE_GUI),1)
9c2d002b 204__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
2d611b5c 205endif
b17c1746 206ifeq ($(USE_GUI),1)
9c2d002b 207__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
208endif
209ifeq ($(MSLU),1)
210__UNICOWS_LIB_p = -lunicows
211endif
3abcf424
RD
212ifeq ($(USE_GDIPLUS),1)
213__GDIPLUS_LIB_p = -lgdiplus
214endif
b17c1746
DE
215ifeq ($(BUILD),debug)
216ifeq ($(DEBUG_INFO),default)
217__DEBUGINFO = -g
218endif
219endif
220ifeq ($(BUILD),release)
221ifeq ($(DEBUG_INFO),default)
222__DEBUGINFO =
223endif
224endif
225ifeq ($(DEBUG_INFO),0)
226__DEBUGINFO =
227endif
228ifeq ($(DEBUG_INFO),1)
229__DEBUGINFO = -g
2d611b5c 230endif
8c9f8f91
JS
231ifeq ($(USE_THREADS),0)
232__THREADSFLAG =
233endif
234ifeq ($(USE_THREADS),1)
235__THREADSFLAG = -mthreads
236endif
2d611b5c 237
2d611b5c
VS
238
239all: $(OBJS)
240$(OBJS):
241 -if not exist $(OBJS) mkdir $(OBJS)
242
243### Targets: ###
244
245all: $(OBJS)\render.exe $(__renddll___depname)
246
2d611b5c
VS
247clean:
248 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 249 -if exist $(OBJS)\*.d del $(OBJS)\*.d
2d611b5c 250 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
25bb1412 251 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll
2d611b5c 252
b17c1746 253$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
3abcf424 254 $(CXX) -o $@ $(RENDER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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 -lodbc32
b17c1746 255
2d611b5c 256ifeq ($(SHARED),1)
25bb1412 257$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_RELEASE_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
3abcf424 258 $(CXX) -shared -fPIC -o $@ $(RENDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__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 -lodbc32
2d611b5c
VS
259endif
260
b17c1746 261$(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
3abcf424 262 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
b17c1746
DE
263
264$(OBJS)\render_render.o: ./render.cpp
0d90d6ea 265 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $(CPPDEPS) $<
b17c1746
DE
266
267$(OBJS)\renddll_renddll.o: ./renddll.cpp
0d90d6ea 268 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $(CPPDEPS) $<
2d611b5c
VS
269
270.PHONY: all clean
b14abf14 271
8c9f8f91 272
0d90d6ea
JS
273# Dependencies tracking:
274-include $(OBJS)/*.d