]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/render/makefile.gcc
Applied patch #876800: "Alphabetical order of tabs in widgets sample".
[wxWidgets.git] / samples / render / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.1 (http://bakefile.sourceforge.net)
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
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
18 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
19 -I.\..\..\include -I$(SETUPHDIR) -Wall -DWXUSINGDLL $(__EXCEPTIONSFLAG_0) \
20 $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
21RENDDLL_OBJECTS = \
22 $(OBJS)\renddll_renddll.o
23RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
24 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
25 -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
26 $(__EXCEPTIONSFLAG_0) $(__EXCEPTIONSFLAG) $(CPPFLAGS) $(CXXFLAGS)
27RENDER_OBJECTS = \
28 $(OBJS)\render_sample_rc.o \
29 $(OBJS)\render_render.o
30SETUPHDIR = \
31 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
32
33### Conditionally set variables: ###
34
35ifeq ($(GCC_VERSION),2.95)
36GCCFLAGS = -fvtable-thunks
37endif
38ifeq ($(SHARED),0)
39LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
40endif
41ifeq ($(SHARED),1)
42LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
43endif
44ifeq ($(USE_GUI),0)
45PORTNAME = base
46endif
47ifeq ($(USE_GUI),1)
48PORTNAME = msw
49endif
50ifeq ($(BUILD),debug)
51ifeq ($(DEBUG_FLAG),default)
52WXDEBUGFLAG = d
53endif
54endif
55ifeq ($(DEBUG_FLAG),1)
56WXDEBUGFLAG = d
57endif
58ifeq ($(SHARED),1)
59WXDLLFLAG = dll
60endif
61ifeq ($(UNICODE),1)
62WXUNICODEFLAG = u
63endif
64ifeq ($(WXUNIV),1)
65WXUNIVNAME = univ
66endif
67ifeq ($(BUILD),debug)
68ifeq ($(DEBUG_INFO),default)
69__DEBUGINFO = -g
70endif
71endif
72ifeq ($(BUILD),release)
73ifeq ($(DEBUG_INFO),default)
74__DEBUGINFO =
75endif
76endif
77ifeq ($(DEBUG_INFO),0)
78__DEBUGINFO =
79endif
80ifeq ($(DEBUG_INFO),1)
81__DEBUGINFO = -g
82endif
83ifeq ($(BUILD),debug)
84ifeq ($(DEBUG_FLAG),default)
85__DEBUG_DEFINE_p = -D__WXDEBUG__
86endif
87endif
88ifeq ($(DEBUG_FLAG),1)
89__DEBUG_DEFINE_p = -D__WXDEBUG__
90endif
91ifeq ($(BUILD),debug)
92ifeq ($(DEBUG_FLAG),default)
93__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
94endif
95endif
96ifeq ($(DEBUG_FLAG),1)
97__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
98endif
99ifeq ($(SHARED),1)
100__DLLFLAG_p = -DWXUSINGDLL
101endif
102ifeq ($(SHARED),1)
103__DLLFLAG_p_1 = --define WXUSINGDLL
104endif
105ifeq ($(USE_EXCEPTIONS),0)
106__EXCEPTIONSFLAG = -fno-exceptions
107endif
108ifeq ($(USE_EXCEPTIONS),1)
109__EXCEPTIONSFLAG =
110endif
111ifeq ($(USE_EXCEPTIONS),0)
112__EXCEPTIONSFLAG_0 = -fno-rtti
113endif
114ifeq ($(USE_EXCEPTIONS),1)
115__EXCEPTIONSFLAG_0 =
116endif
117ifeq ($(USE_GUI),1)
118__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
119endif
120ifeq ($(USE_GUI),1)
121__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
122endif
123ifeq ($(USE_GUI),1)
124__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
125endif
126ifeq ($(BUILD),debug)
127__OPTIMIZEFLAG = -O0
128endif
129ifeq ($(BUILD),release)
130__OPTIMIZEFLAG = -O2
131endif
132ifeq ($(UNICODE),1)
133__UNICODE_DEFINE_p = -D_UNICODE
134endif
135ifeq ($(UNICODE),1)
136__UNICODE_DEFINE_p_1 = --define _UNICODE
137endif
138ifeq ($(MSLU),1)
139__UNICOWS_LIB_p = -lunicows
140endif
141ifeq ($(MONOLITHIC),0)
142__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
143endif
144ifeq ($(MONOLITHIC),0)
145__WXLIB_CORE_p = \
146 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
147endif
148ifeq ($(MONOLITHIC),1)
149__WXLIB_MONO_p = \
150 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
151endif
152ifeq ($(WXUNIV),1)
153__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
154endif
155ifeq ($(WXUNIV),1)
156__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
157endif
158ifeq ($(SHARED),1)
159__renddll___depname = \
160 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_gcc.dll
161endif
162
163
164all: $(OBJS)
165$(OBJS):
166 -if not exist $(OBJS) mkdir $(OBJS)
167
168### Targets: ###
169
170all: $(OBJS)\render.exe $(__renddll___depname)
171
172$(OBJS)\renddll_renddll.o: ./renddll.cpp
173 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $<
174
175$(OBJS)\render_render.o: ./render.cpp
176 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $<
177
178$(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
179 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
180
181clean:
182 -if exist $(OBJS)\*.o del $(OBJS)\*.o
183 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
184 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_gcc.dll
185
186ifeq ($(SHARED),1)
187$(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)251_gcc.dll: $(RENDDLL_OBJECTS)
188 $(CXX) -shared -o $@ $(RENDDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
189endif
190
191$(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
192 $(CXX) -o $@ $(RENDER_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
193
194.PHONY: all clean