]>
Commit | Line | Data |
---|---|---|
2d611b5c VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c4839ccf | 3 | # Bakefile 0.1.4 (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 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
ab921f5f | 16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)3 |
2d611b5c VS |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 VS |
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 \ | |
c33fae85 | 24 | -DNOPCH $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) |
2d611b5c VS |
25 | RENDER_OBJECTS = \ |
26 | $(OBJS)\render_sample_rc.o \ | |
27 | $(OBJS)\render_render.o | |
b17c1746 DE |
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 | |
2d611b5c VS |
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 | |
2d611b5c VS |
54 | ifeq ($(UNICODE),1) |
55 | WXUNICODEFLAG = u | |
56 | endif | |
57 | ifeq ($(WXUNIV),1) | |
58 | WXUNIVNAME = univ | |
59 | endif | |
b17c1746 DE |
60 | ifeq ($(SHARED),1) |
61 | WXDLLFLAG = dll | |
2d611b5c | 62 | endif |
dd65d8c8 RN |
63 | ifeq ($(MONOLITHIC),0) |
64 | EXTRALIBS_FOR_BASE = | |
65 | endif | |
66 | ifeq ($(MONOLITHIC),1) | |
67 | EXTRALIBS_FOR_BASE = | |
68 | endif | |
078c7a59 VS |
69 | ifeq ($(BUILD),debug) |
70 | ifeq ($(UNICODE),0) | |
314a6446 | 71 | PLUGINSUFFIX = d |
078c7a59 VS |
72 | endif |
73 | endif | |
74 | ifeq ($(BUILD),debug) | |
75 | ifeq ($(UNICODE),1) | |
314a6446 | 76 | PLUGINSUFFIX = ud |
078c7a59 VS |
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) | |
314a6446 | 86 | PLUGINSUFFIX = u |
078c7a59 VS |
87 | endif |
88 | endif | |
b17c1746 DE |
89 | ifeq ($(WXUNIV),1) |
90 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
2d611b5c VS |
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 | |
b17c1746 DE |
100 | ifeq ($(UNICODE),1) |
101 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
102 | endif | |
2d611b5c VS |
103 | ifeq ($(SHARED),1) |
104 | __DLLFLAG_p = -DWXUSINGDLL | |
105 | endif | |
106 | ifeq ($(SHARED),1) | |
107 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
108 | endif | |
b17c1746 DE |
109 | ifeq ($(SHARED),1) |
110 | __renddll___depname = \ | |
c33fae85 | 111 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll |
b17c1746 DE |
112 | endif |
113 | ifeq ($(BUILD),debug) | |
114 | __OPTIMIZEFLAG = -O0 | |
115 | endif | |
116 | ifeq ($(BUILD),release) | |
117 | __OPTIMIZEFLAG = -O2 | |
118 | endif | |
b71531ad | 119 | ifeq ($(USE_EXCEPTIONS),0) |
b17c1746 | 120 | __EXCEPTIONSFLAG = -fno-rtti |
b71531ad VZ |
121 | endif |
122 | ifeq ($(USE_EXCEPTIONS),1) | |
123 | __EXCEPTIONSFLAG = | |
124 | endif | |
125 | ifeq ($(USE_EXCEPTIONS),0) | |
b17c1746 | 126 | __EXCEPTIONSFLAG_0 = -fno-exceptions |
b71531ad VZ |
127 | endif |
128 | ifeq ($(USE_EXCEPTIONS),1) | |
129 | __EXCEPTIONSFLAG_0 = | |
130 | endif | |
b17c1746 DE |
131 | ifeq ($(WXUNIV),1) |
132 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
2d611b5c VS |
133 | endif |
134 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
135 | ifeq ($(DEBUG_FLAG),default) |
136 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
2d611b5c | 137 | endif |
2d611b5c | 138 | endif |
b17c1746 DE |
139 | ifeq ($(DEBUG_FLAG),1) |
140 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
2d611b5c VS |
141 | endif |
142 | ifeq ($(UNICODE),1) | |
b17c1746 | 143 | __UNICODE_DEFINE_p = -D_UNICODE |
2d611b5c | 144 | endif |
b17c1746 DE |
145 | ifeq ($(SHARED),0) |
146 | LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG) | |
2c02ec05 | 147 | endif |
b17c1746 DE |
148 | ifeq ($(SHARED),1) |
149 | LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG) | |
2d611b5c VS |
150 | endif |
151 | ifeq ($(MONOLITHIC),0) | |
152 | __WXLIB_CORE_p = \ | |
c33fae85 | 153 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
2d611b5c | 154 | endif |
b17c1746 | 155 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
156 | __WXLIB_BASE_p = \ |
157 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 | 158 | endif |
2d611b5c VS |
159 | ifeq ($(MONOLITHIC),1) |
160 | __WXLIB_MONO_p = \ | |
c33fae85 | 161 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
2d611b5c | 162 | endif |
b17c1746 | 163 | ifeq ($(USE_GUI),1) |
9c2d002b | 164 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
2d611b5c | 165 | endif |
b17c1746 | 166 | ifeq ($(USE_GUI),1) |
9c2d002b | 167 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
2d611b5c | 168 | endif |
b17c1746 | 169 | ifeq ($(USE_GUI),1) |
9c2d002b | 170 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
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 | |
2d611b5c VS |
190 | endif |
191 | ||
2d611b5c VS |
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 | ||
2d611b5c VS |
201 | clean: |
202 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
203 | -if exist $(OBJS)\render.exe del $(OBJS)\render.exe | |
c33fae85 | 204 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll |
2d611b5c | 205 | |
b17c1746 | 206 | $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o |
dd65d8c8 | 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 |
b17c1746 | 208 | |
2d611b5c | 209 | ifeq ($(SHARED),1) |
c33fae85 | 210 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS) |
dd65d8c8 | 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 |
2d611b5c VS |
212 | endif |
213 | ||
b17c1746 DE |
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) $< | |
2d611b5c VS |
222 | |
223 | .PHONY: all clean |