]>
Commit | Line | Data |
---|---|---|
2d611b5c VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
b17c1746 | 3 | # Bakefile 0.1.2 (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 | ||
2d611b5c VS |
15 | OBJS = \ |
16 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b17c1746 DE |
17 | SETUPHDIR = \ |
18 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 VS |
19 | RENDER_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ |
20 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
21 | -I.\..\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \ | |
b17c1746 | 22 | $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) |
2d611b5c VS |
23 | RENDER_OBJECTS = \ |
24 | $(OBJS)\render_sample_rc.o \ | |
25 | $(OBJS)\render_render.o | |
b17c1746 DE |
26 | RENDDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ |
27 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
28 | -I.\..\..\include -I$(SETUPHDIR) -Wall -DWXUSINGDLL $(__EXCEPTIONSFLAG) \ | |
29 | $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) | |
30 | RENDDLL_OBJECTS = \ | |
31 | $(OBJS)\renddll_renddll.o | |
2d611b5c VS |
32 | |
33 | ### Conditionally set variables: ### | |
34 | ||
35 | ifeq ($(GCC_VERSION),2.95) | |
36 | GCCFLAGS = -fvtable-thunks | |
37 | endif | |
38 | ifeq ($(USE_GUI),0) | |
39 | PORTNAME = base | |
40 | endif | |
41 | ifeq ($(USE_GUI),1) | |
42 | PORTNAME = msw | |
43 | endif | |
44 | ifeq ($(BUILD),debug) | |
45 | ifeq ($(DEBUG_FLAG),default) | |
46 | WXDEBUGFLAG = d | |
47 | endif | |
48 | endif | |
49 | ifeq ($(DEBUG_FLAG),1) | |
50 | WXDEBUGFLAG = d | |
51 | endif | |
2d611b5c VS |
52 | ifeq ($(UNICODE),1) |
53 | WXUNICODEFLAG = u | |
54 | endif | |
55 | ifeq ($(WXUNIV),1) | |
56 | WXUNIVNAME = univ | |
57 | endif | |
b17c1746 DE |
58 | ifeq ($(SHARED),1) |
59 | WXDLLFLAG = dll | |
2d611b5c | 60 | endif |
078c7a59 VS |
61 | ifeq ($(BUILD),debug) |
62 | ifeq ($(UNICODE),0) | |
63 | PLUGINSUFFIX = _d | |
64 | endif | |
65 | endif | |
66 | ifeq ($(BUILD),debug) | |
67 | ifeq ($(UNICODE),1) | |
68 | PLUGINSUFFIX = _ud | |
69 | endif | |
70 | endif | |
71 | ifeq ($(BUILD),release) | |
72 | ifeq ($(UNICODE),0) | |
73 | PLUGINSUFFIX = | |
74 | endif | |
75 | endif | |
76 | ifeq ($(BUILD),release) | |
77 | ifeq ($(UNICODE),1) | |
78 | PLUGINSUFFIX = _u | |
79 | endif | |
80 | endif | |
b17c1746 DE |
81 | ifeq ($(WXUNIV),1) |
82 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
2d611b5c VS |
83 | endif |
84 | ifeq ($(BUILD),debug) | |
85 | ifeq ($(DEBUG_FLAG),default) | |
86 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
87 | endif | |
88 | endif | |
89 | ifeq ($(DEBUG_FLAG),1) | |
90 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
91 | endif | |
b17c1746 DE |
92 | ifeq ($(UNICODE),1) |
93 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
94 | endif | |
2d611b5c VS |
95 | ifeq ($(SHARED),1) |
96 | __DLLFLAG_p = -DWXUSINGDLL | |
97 | endif | |
98 | ifeq ($(SHARED),1) | |
99 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
100 | endif | |
b17c1746 DE |
101 | ifeq ($(SHARED),1) |
102 | __renddll___depname = \ | |
078c7a59 | 103 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_gcc.dll |
b17c1746 DE |
104 | endif |
105 | ifeq ($(BUILD),debug) | |
106 | __OPTIMIZEFLAG = -O0 | |
107 | endif | |
108 | ifeq ($(BUILD),release) | |
109 | __OPTIMIZEFLAG = -O2 | |
110 | endif | |
b71531ad | 111 | ifeq ($(USE_EXCEPTIONS),0) |
b17c1746 | 112 | __EXCEPTIONSFLAG = -fno-rtti |
b71531ad VZ |
113 | endif |
114 | ifeq ($(USE_EXCEPTIONS),1) | |
115 | __EXCEPTIONSFLAG = | |
116 | endif | |
117 | ifeq ($(USE_EXCEPTIONS),0) | |
b17c1746 | 118 | __EXCEPTIONSFLAG_0 = -fno-exceptions |
b71531ad VZ |
119 | endif |
120 | ifeq ($(USE_EXCEPTIONS),1) | |
121 | __EXCEPTIONSFLAG_0 = | |
122 | endif | |
b17c1746 DE |
123 | ifeq ($(WXUNIV),1) |
124 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
2d611b5c VS |
125 | endif |
126 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
127 | ifeq ($(DEBUG_FLAG),default) |
128 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
2d611b5c | 129 | endif |
2d611b5c | 130 | endif |
b17c1746 DE |
131 | ifeq ($(DEBUG_FLAG),1) |
132 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
2d611b5c VS |
133 | endif |
134 | ifeq ($(UNICODE),1) | |
b17c1746 | 135 | __UNICODE_DEFINE_p = -D_UNICODE |
2d611b5c | 136 | endif |
b17c1746 DE |
137 | ifeq ($(SHARED),0) |
138 | LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG) | |
2c02ec05 | 139 | endif |
b17c1746 DE |
140 | ifeq ($(SHARED),1) |
141 | LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG) | |
2d611b5c VS |
142 | endif |
143 | ifeq ($(MONOLITHIC),0) | |
144 | __WXLIB_CORE_p = \ | |
145 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
146 | endif | |
b17c1746 DE |
147 | ifeq ($(MONOLITHIC),0) |
148 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
149 | endif | |
2d611b5c VS |
150 | ifeq ($(MONOLITHIC),1) |
151 | __WXLIB_MONO_p = \ | |
152 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
153 | endif | |
b17c1746 DE |
154 | ifeq ($(USE_GUI),1) |
155 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
2d611b5c | 156 | endif |
b17c1746 DE |
157 | ifeq ($(USE_GUI),1) |
158 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
2d611b5c | 159 | endif |
b17c1746 DE |
160 | ifeq ($(USE_GUI),1) |
161 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
162 | endif | |
163 | ifeq ($(MSLU),1) | |
164 | __UNICOWS_LIB_p = -lunicows | |
165 | endif | |
166 | ifeq ($(BUILD),debug) | |
167 | ifeq ($(DEBUG_INFO),default) | |
168 | __DEBUGINFO = -g | |
169 | endif | |
170 | endif | |
171 | ifeq ($(BUILD),release) | |
172 | ifeq ($(DEBUG_INFO),default) | |
173 | __DEBUGINFO = | |
174 | endif | |
175 | endif | |
176 | ifeq ($(DEBUG_INFO),0) | |
177 | __DEBUGINFO = | |
178 | endif | |
179 | ifeq ($(DEBUG_INFO),1) | |
180 | __DEBUGINFO = -g | |
2d611b5c VS |
181 | endif |
182 | ||
2d611b5c VS |
183 | |
184 | all: $(OBJS) | |
185 | $(OBJS): | |
186 | -if not exist $(OBJS) mkdir $(OBJS) | |
187 | ||
188 | ### Targets: ### | |
189 | ||
190 | all: $(OBJS)\render.exe $(__renddll___depname) | |
191 | ||
2d611b5c VS |
192 | clean: |
193 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
194 | -if exist $(OBJS)\render.exe del $(OBJS)\render.exe | |
078c7a59 | 195 | -if exist $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_gcc.dll del $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_gcc.dll |
2d611b5c | 196 | |
b17c1746 | 197 | $(OBJS)\render.exe: $(RENDER_OBJECTS) $(OBJS)\render_sample_rc.o |
b92ca05a | 198 | $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
b17c1746 | 199 | |
2d611b5c | 200 | ifeq ($(SHARED),1) |
078c7a59 | 201 | $(OBJS)\renddll_$(PORTNAME)$(WXUNIVNAME)$(PLUGINSUFFIX)251_gcc.dll: $(RENDDLL_OBJECTS) |
b92ca05a | 202 | $(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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
2d611b5c VS |
203 | endif |
204 | ||
b17c1746 DE |
205 | $(OBJS)\render_sample_rc.o: ./../../samples/sample.rc |
206 | 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 | |
207 | ||
208 | $(OBJS)\render_render.o: ./render.cpp | |
209 | $(CXX) -c -o $@ $(RENDER_CXXFLAGS) $< | |
210 | ||
211 | $(OBJS)\renddll_renddll.o: ./renddll.cpp | |
212 | $(CXX) -c -o $@ $(RENDDLL_CXXFLAGS) $< | |
2d611b5c VS |
213 | |
214 | .PHONY: all clean |