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