]> git.saurik.com Git - wxWidgets.git/blob - samples/render/makefile.gcc
Source cleaning.
[wxWidgets.git] / samples / render / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (http://bakefile.sourceforge.net)
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 WX_RELEASE_NODOT = 25
16 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
23 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
24 -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
25 -DNOPCH $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
26 $(CPPFLAGS) $(CXXFLAGS)
27 RENDER_OBJECTS = \
28 $(OBJS)\render_sample_rc.o \
29 $(OBJS)\render_render.o
30 RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
31 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
32 -I.\..\..\include -I$(SETUPHDIR) -W -Wall -DWXUSINGDLL $(__EXCEPTIONSFLAG) \
33 $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
34 RENDDLL_OBJECTS = \
35 $(OBJS)\renddll_renddll.o
36
37 ### Conditionally set variables: ###
38
39 ifeq ($(GCC_VERSION),2.95)
40 GCCFLAGS = -fvtable-thunks
41 endif
42 ifeq ($(USE_GUI),0)
43 PORTNAME = base
44 endif
45 ifeq ($(USE_GUI),1)
46 PORTNAME = msw
47 endif
48 ifeq ($(BUILD),debug)
49 ifeq ($(DEBUG_FLAG),default)
50 WXDEBUGFLAG = d
51 endif
52 endif
53 ifeq ($(DEBUG_FLAG),1)
54 WXDEBUGFLAG = d
55 endif
56 ifeq ($(UNICODE),1)
57 WXUNICODEFLAG = u
58 endif
59 ifeq ($(WXUNIV),1)
60 WXUNIVNAME = univ
61 endif
62 ifeq ($(SHARED),1)
63 WXDLLFLAG = dll
64 endif
65 ifeq ($(SHARED),0)
66 LIBTYPE_SUFFIX = lib
67 endif
68 ifeq ($(SHARED),1)
69 LIBTYPE_SUFFIX = dll
70 endif
71 ifeq ($(MONOLITHIC),0)
72 EXTRALIBS_FOR_BASE =
73 endif
74 ifeq ($(MONOLITHIC),1)
75 EXTRALIBS_FOR_BASE =
76 endif
77 ifeq ($(BUILD),debug)
78 ifeq ($(UNICODE),0)
79 PLUGINSUFFIX = d
80 endif
81 endif
82 ifeq ($(BUILD),debug)
83 ifeq ($(UNICODE),1)
84 PLUGINSUFFIX = ud
85 endif
86 endif
87 ifeq ($(BUILD),release)
88 ifeq ($(UNICODE),0)
89 PLUGINSUFFIX =
90 endif
91 endif
92 ifeq ($(BUILD),release)
93 ifeq ($(UNICODE),1)
94 PLUGINSUFFIX = u
95 endif
96 endif
97 ifeq ($(WXUNIV),1)
98 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
99 endif
100 ifeq ($(BUILD),debug)
101 ifeq ($(DEBUG_FLAG),default)
102 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
103 endif
104 endif
105 ifeq ($(DEBUG_FLAG),1)
106 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
107 endif
108 ifeq ($(UNICODE),1)
109 __UNICODE_DEFINE_p_1 = --define _UNICODE
110 endif
111 ifeq ($(SHARED),1)
112 __DLLFLAG_p = -DWXUSINGDLL
113 endif
114 ifeq ($(SHARED),1)
115 __DLLFLAG_p_1 = --define WXUSINGDLL
116 endif
117 ifeq ($(SHARED),1)
118 __renddll___depname = \
119 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
120 endif
121 ifeq ($(BUILD),debug)
122 __OPTIMIZEFLAG = -O0
123 endif
124 ifeq ($(BUILD),release)
125 __OPTIMIZEFLAG = -O2
126 endif
127 ifeq ($(USE_EXCEPTIONS),0)
128 __EXCEPTIONSFLAG = -fno-rtti
129 endif
130 ifeq ($(USE_EXCEPTIONS),1)
131 __EXCEPTIONSFLAG =
132 endif
133 ifeq ($(USE_EXCEPTIONS),0)
134 __EXCEPTIONSFLAG_0 = -fno-exceptions
135 endif
136 ifeq ($(USE_EXCEPTIONS),1)
137 __EXCEPTIONSFLAG_0 =
138 endif
139 ifeq ($(WXUNIV),1)
140 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
141 endif
142 ifeq ($(BUILD),debug)
143 ifeq ($(DEBUG_FLAG),default)
144 __DEBUG_DEFINE_p = -D__WXDEBUG__
145 endif
146 endif
147 ifeq ($(DEBUG_FLAG),1)
148 __DEBUG_DEFINE_p = -D__WXDEBUG__
149 endif
150 ifeq ($(UNICODE),1)
151 __UNICODE_DEFINE_p = -D_UNICODE
152 endif
153 ifeq ($(MONOLITHIC),0)
154 __WXLIB_CORE_p = \
155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
156 endif
157 ifeq ($(MONOLITHIC),0)
158 __WXLIB_BASE_p = \
159 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
160 endif
161 ifeq ($(MONOLITHIC),1)
162 __WXLIB_MONO_p = \
163 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
164 endif
165 ifeq ($(USE_GUI),1)
166 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
167 endif
168 ifeq ($(USE_GUI),1)
169 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
170 endif
171 ifeq ($(USE_GUI),1)
172 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
173 endif
174 ifeq ($(MSLU),1)
175 __UNICOWS_LIB_p = -lunicows
176 endif
177 ifeq ($(BUILD),debug)
178 ifeq ($(DEBUG_INFO),default)
179 __DEBUGINFO = -g
180 endif
181 endif
182 ifeq ($(BUILD),release)
183 ifeq ($(DEBUG_INFO),default)
184 __DEBUGINFO =
185 endif
186 endif
187 ifeq ($(DEBUG_INFO),0)
188 __DEBUGINFO =
189 endif
190 ifeq ($(DEBUG_INFO),1)
191 __DEBUGINFO = -g
192 endif
193
194
195 all: $(OBJS)
196 $(OBJS):
197 -if not exist $(OBJS) mkdir $(OBJS)
198
199 ### Targets: ###
200
201 all: $(OBJS)\render.exe $(__renddll___depname)
202
203 clean:
204 -if exist $(OBJS)\*.o del $(OBJS)\*.o
205 -if exist $(OBJS)\render.exe del $(OBJS)\render.exe
206 -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll
207
208 $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o
209 $(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$(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
210
211 ifeq ($(SHARED),1)
212 $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS)
213 $(CXX) -shared -fPIC -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$(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
214 endif
215
216 $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc
217 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
218
219 $(OBJS)\render_render.o: ./render.cpp
220 $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $<
221
222 $(OBJS)\renddll_renddll.o: ./renddll.cpp
223 $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $<
224
225 .PHONY: all clean
226