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