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