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