]>
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 |
078c7a59 VS |
63 | ifeq ($(BUILD),debug) |
64 | ifeq ($(UNICODE),0) | |
314a6446 | 65 | PLUGINSUFFIX = d |
078c7a59 VS |
66 | endif |
67 | endif | |
68 | ifeq ($(BUILD),debug) | |
69 | ifeq ($(UNICODE),1) | |
314a6446 | 70 | PLUGINSUFFIX = ud |
078c7a59 VS |
71 | endif |
72 | endif | |
73 | ifeq ($(BUILD),release) | |
74 | ifeq ($(UNICODE),0) | |
75 | PLUGINSUFFIX = | |
76 | endif | |
77 | endif | |
78 | ifeq ($(BUILD),release) | |
79 | ifeq ($(UNICODE),1) | |
314a6446 | 80 | PLUGINSUFFIX = u |
078c7a59 VS |
81 | endif |
82 | endif | |
b17c1746 DE |
83 | ifeq ($(WXUNIV),1) |
84 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
2d611b5c VS |
85 | endif |
86 | ifeq ($(BUILD),debug) | |
87 | ifeq ($(DEBUG_FLAG),default) | |
88 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
89 | endif | |
90 | endif | |
91 | ifeq ($(DEBUG_FLAG),1) | |
92 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
93 | endif | |
b17c1746 DE |
94 | ifeq ($(UNICODE),1) |
95 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
96 | endif | |
2d611b5c VS |
97 | ifeq ($(SHARED),1) |
98 | __DLLFLAG_p = -DWXUSINGDLL | |
99 | endif | |
100 | ifeq ($(SHARED),1) | |
101 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
102 | endif | |
b17c1746 DE |
103 | ifeq ($(SHARED),1) |
104 | __renddll___depname = \ | |
c33fae85 | 105 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll |
b17c1746 DE |
106 | endif |
107 | ifeq ($(BUILD),debug) | |
108 | __OPTIMIZEFLAG = -O0 | |
109 | endif | |
110 | ifeq ($(BUILD),release) | |
111 | __OPTIMIZEFLAG = -O2 | |
112 | endif | |
b71531ad | 113 | ifeq ($(USE_EXCEPTIONS),0) |
b17c1746 | 114 | __EXCEPTIONSFLAG = -fno-rtti |
b71531ad VZ |
115 | endif |
116 | ifeq ($(USE_EXCEPTIONS),1) | |
117 | __EXCEPTIONSFLAG = | |
118 | endif | |
119 | ifeq ($(USE_EXCEPTIONS),0) | |
b17c1746 | 120 | __EXCEPTIONSFLAG_0 = -fno-exceptions |
b71531ad VZ |
121 | endif |
122 | ifeq ($(USE_EXCEPTIONS),1) | |
123 | __EXCEPTIONSFLAG_0 = | |
124 | endif | |
b17c1746 DE |
125 | ifeq ($(WXUNIV),1) |
126 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
2d611b5c VS |
127 | endif |
128 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
129 | ifeq ($(DEBUG_FLAG),default) |
130 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
2d611b5c | 131 | endif |
2d611b5c | 132 | endif |
b17c1746 DE |
133 | ifeq ($(DEBUG_FLAG),1) |
134 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
2d611b5c VS |
135 | endif |
136 | ifeq ($(UNICODE),1) | |
b17c1746 | 137 | __UNICODE_DEFINE_p = -D_UNICODE |
2d611b5c | 138 | endif |
b17c1746 DE |
139 | ifeq ($(SHARED),0) |
140 | LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG) | |
2c02ec05 | 141 | endif |
b17c1746 DE |
142 | ifeq ($(SHARED),1) |
143 | LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG) | |
2d611b5c VS |
144 | endif |
145 | ifeq ($(MONOLITHIC),0) | |
146 | __WXLIB_CORE_p = \ | |
c33fae85 | 147 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
2d611b5c | 148 | endif |
b17c1746 | 149 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
150 | __WXLIB_BASE_p = \ |
151 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 | 152 | endif |
2d611b5c VS |
153 | ifeq ($(MONOLITHIC),1) |
154 | __WXLIB_MONO_p = \ | |
c33fae85 | 155 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
2d611b5c | 156 | endif |
b17c1746 | 157 | ifeq ($(USE_GUI),1) |
9c2d002b | 158 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
2d611b5c | 159 | endif |
b17c1746 | 160 | ifeq ($(USE_GUI),1) |
9c2d002b | 161 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
2d611b5c | 162 | endif |
b17c1746 | 163 | ifeq ($(USE_GUI),1) |
9c2d002b | 164 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
165 | endif |
166 | ifeq ($(MSLU),1) | |
167 | __UNICOWS_LIB_p = -lunicows | |
168 | endif | |
169 | ifeq ($(BUILD),debug) | |
170 | ifeq ($(DEBUG_INFO),default) | |
171 | __DEBUGINFO = -g | |
172 | endif | |
173 | endif | |
174 | ifeq ($(BUILD),release) | |
175 | ifeq ($(DEBUG_INFO),default) | |
176 | __DEBUGINFO = | |
177 | endif | |
178 | endif | |
179 | ifeq ($(DEBUG_INFO),0) | |
180 | __DEBUGINFO = | |
181 | endif | |
182 | ifeq ($(DEBUG_INFO),1) | |
183 | __DEBUGINFO = -g | |
2d611b5c VS |
184 | endif |
185 | ||
2d611b5c VS |
186 | |
187 | all: $(OBJS) | |
188 | $(OBJS): | |
189 | -if not exist $(OBJS) mkdir $(OBJS) | |
190 | ||
191 | ### Targets: ### | |
192 | ||
193 | all: $(OBJS)\render.exe $(__renddll___depname) | |
194 | ||
2d611b5c VS |
195 | clean: |
196 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
197 | -if exist $(OBJS)\render.exe del $(OBJS)\render.exe | |
c33fae85 | 198 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll |
2d611b5c | 199 | |
b17c1746 | 200 | $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o |
9c2d002b | 201 | $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
b17c1746 | 202 | |
2d611b5c | 203 | ifeq ($(SHARED),1) |
c33fae85 | 204 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)$(WX_VERSION_NODOT)_gcc.dll: $(RENDDLL_OBJECTS) |
9c2d002b | 205 | $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
2d611b5c VS |
206 | endif |
207 | ||
b17c1746 DE |
208 | $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc |
209 | 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 | |
210 | ||
211 | $(OBJS)\render_render.o: ./render.cpp | |
212 | $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $< | |
213 | ||
214 | $(OBJS)\renddll_renddll.o: ./renddll.cpp | |
215 | $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $< | |
2d611b5c VS |
216 | |
217 | .PHONY: all clean |