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