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