]>
Commit | Line | Data |
---|---|---|
2d611b5c VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
25bb1412 | 3 | # Bakefile 0.2.1 (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 |
ae4ccf12 | 16 | WX_RELEASE_NODOT = 29 |
2d611b5c VS |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 19 | LIBDIRNAME = .\..\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
34f7e40f JS |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
22 | STUDIO_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \ |
23 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
24 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
2113bc77 | 25 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
3abcf424 RD |
26 | $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\..\include -W -Wall -I. \ |
27 | $(__DLLFLAG_p) -I.\..\..\..\..\samples -DNOPCH -I.\..\..\..\include \ | |
28 | $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) \ | |
29 | $(CXXFLAGS) | |
34f7e40f JS |
30 | STUDIO_OBJECTS = \ |
31 | $(OBJS)\studio_studio.o \ | |
32 | $(OBJS)\studio_doc.o \ | |
33 | $(OBJS)\studio_shapes.o \ | |
34 | $(OBJS)\studio_symbols.o \ | |
35 | $(OBJS)\studio_view.o \ | |
36 | $(OBJS)\studio_cspalette.o \ | |
37 | $(OBJS)\studio_mainfrm.o \ | |
38 | $(OBJS)\studio_project.o \ | |
39 | $(OBJS)\studio_dialogs.o \ | |
40 | $(OBJS)\studio_csprint.o \ | |
41 | $(OBJS)\studio_studio_rc.o | |
2d611b5c VS |
42 | |
43 | ### Conditionally set variables: ### | |
44 | ||
45 | ifeq ($(GCC_VERSION),2.95) | |
46 | GCCFLAGS = -fvtable-thunks | |
47 | endif | |
48 | ifeq ($(USE_GUI),0) | |
49 | PORTNAME = base | |
50 | endif | |
51 | ifeq ($(USE_GUI),1) | |
52 | PORTNAME = msw | |
53 | endif | |
54 | ifeq ($(BUILD),debug) | |
55 | ifeq ($(DEBUG_FLAG),default) | |
56 | WXDEBUGFLAG = d | |
57 | endif | |
58 | endif | |
59 | ifeq ($(DEBUG_FLAG),1) | |
60 | WXDEBUGFLAG = d | |
61 | endif | |
2d611b5c VS |
62 | ifeq ($(UNICODE),1) |
63 | WXUNICODEFLAG = u | |
64 | endif | |
65 | ifeq ($(WXUNIV),1) | |
66 | WXUNIVNAME = univ | |
67 | endif | |
b17c1746 DE |
68 | ifeq ($(SHARED),1) |
69 | WXDLLFLAG = dll | |
2d611b5c | 70 | endif |
b14abf14 JS |
71 | ifeq ($(SHARED),0) |
72 | LIBTYPE_SUFFIX = lib | |
73 | endif | |
74 | ifeq ($(SHARED),1) | |
75 | LIBTYPE_SUFFIX = dll | |
76 | endif | |
dd65d8c8 RN |
77 | ifeq ($(MONOLITHIC),0) |
78 | EXTRALIBS_FOR_BASE = | |
79 | endif | |
80 | ifeq ($(MONOLITHIC),1) | |
81 | EXTRALIBS_FOR_BASE = | |
82 | endif | |
b17c1746 DE |
83 | ifeq ($(BUILD),debug) |
84 | __OPTIMIZEFLAG_2 = -O0 | |
2d611b5c VS |
85 | endif |
86 | ifeq ($(BUILD),release) | |
b17c1746 | 87 | __OPTIMIZEFLAG_2 = -O2 |
2d611b5c | 88 | endif |
8c9f8f91 JS |
89 | ifeq ($(USE_RTTI),0) |
90 | __RTTIFLAG_5 = -fno-rtti | |
2d611b5c | 91 | endif |
8c9f8f91 JS |
92 | ifeq ($(USE_RTTI),1) |
93 | __RTTIFLAG_5 = | |
2d611b5c | 94 | endif |
b17c1746 | 95 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 96 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
97 | endif |
98 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 99 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
100 | endif |
101 | ifeq ($(WXUNIV),1) | |
102 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
103 | endif | |
104 | ifeq ($(WXUNIV),1) | |
105 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
2d611b5c VS |
106 | endif |
107 | ifeq ($(BUILD),debug) | |
108 | ifeq ($(DEBUG_FLAG),default) | |
109 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
110 | endif | |
111 | endif | |
112 | ifeq ($(DEBUG_FLAG),1) | |
113 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
114 | endif | |
115 | ifeq ($(BUILD),debug) | |
116 | ifeq ($(DEBUG_FLAG),default) | |
117 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
118 | endif | |
119 | endif | |
120 | ifeq ($(DEBUG_FLAG),1) | |
121 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
122 | endif | |
8c9f8f91 JS |
123 | ifeq ($(USE_EXCEPTIONS),0) |
124 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
125 | endif | |
126 | ifeq ($(USE_EXCEPTIONS),0) | |
127 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
128 | endif | |
129 | ifeq ($(USE_RTTI),0) | |
130 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
131 | endif | |
132 | ifeq ($(USE_RTTI),0) | |
133 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
134 | endif | |
135 | ifeq ($(USE_THREADS),0) | |
136 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
137 | endif | |
138 | ifeq ($(USE_THREADS),0) | |
139 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
140 | endif | |
b17c1746 DE |
141 | ifeq ($(UNICODE),1) |
142 | __UNICODE_DEFINE_p = -D_UNICODE | |
143 | endif | |
144 | ifeq ($(UNICODE),1) | |
145 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
146 | endif | |
2113bc77 MW |
147 | ifeq ($(MSLU),1) |
148 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
149 | endif | |
150 | ifeq ($(MSLU),1) | |
151 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1 | |
152 | endif | |
3abcf424 RD |
153 | ifeq ($(USE_GDIPLUS),1) |
154 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
155 | endif | |
156 | ifeq ($(USE_GDIPLUS),1) | |
157 | __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1 | |
158 | endif | |
2d611b5c VS |
159 | ifeq ($(SHARED),1) |
160 | __DLLFLAG_p = -DWXUSINGDLL | |
161 | endif | |
162 | ifeq ($(SHARED),1) | |
163 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
164 | endif | |
b17c1746 DE |
165 | ifeq ($(MONOLITHIC),0) |
166 | __WXLIB_ADV_p = \ | |
c33fae85 | 167 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv |
a4ad36cd | 168 | endif |
b17c1746 DE |
169 | ifeq ($(MONOLITHIC),0) |
170 | __WXLIB_HTML_p = \ | |
c33fae85 | 171 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html |
a4ad36cd | 172 | endif |
b17c1746 | 173 | ifeq ($(MONOLITHIC),0) |
ebef1625 MW |
174 | __WXLIB_XML_p = \ |
175 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
176 | endif | |
177 | ifeq ($(MONOLITHIC),0) | |
b17c1746 | 178 | __WXLIB_CORE_p = \ |
c33fae85 | 179 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
a4ad36cd | 180 | endif |
b17c1746 | 181 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
182 | __WXLIB_BASE_p = \ |
183 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
2d611b5c | 184 | endif |
b17c1746 DE |
185 | ifeq ($(MONOLITHIC),1) |
186 | __WXLIB_MONO_p = \ | |
c33fae85 | 187 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
2d611b5c VS |
188 | endif |
189 | ifeq ($(USE_GUI),1) | |
9c2d002b | 190 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
2d611b5c | 191 | endif |
b17c1746 | 192 | ifeq ($(USE_GUI),1) |
9c2d002b | 193 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
2d611b5c | 194 | endif |
b17c1746 | 195 | ifeq ($(USE_GUI),1) |
9c2d002b | 196 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
2d611b5c | 197 | endif |
19c35fa5 VS |
198 | ifeq ($(MSLU),1) |
199 | __UNICOWS_LIB_p = -lunicows | |
200 | endif | |
3abcf424 RD |
201 | ifeq ($(USE_GDIPLUS),1) |
202 | __GDIPLUS_LIB_p = -lgdiplus | |
203 | endif | |
b17c1746 DE |
204 | ifeq ($(BUILD),debug) |
205 | ifeq ($(DEBUG_INFO),default) | |
206 | __DEBUGINFO = -g | |
2d611b5c | 207 | endif |
ec08d395 | 208 | endif |
b17c1746 DE |
209 | ifeq ($(BUILD),release) |
210 | ifeq ($(DEBUG_INFO),default) | |
211 | __DEBUGINFO = | |
2d611b5c | 212 | endif |
2d611b5c | 213 | endif |
b17c1746 DE |
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 | ||
34f7e40f | 234 | all: $(OBJS)\studio.exe data |
2d611b5c | 235 | |
b17c1746 DE |
236 | clean: |
237 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 238 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
b17c1746 | 239 | -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe |
2d611b5c | 240 | |
b17c1746 | 241 | $(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio_rc.o |
3abcf424 | 242 | $(CXX) -o $@ $(STUDIO_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_ogl -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_deprecated $(__WXLIB_ADV_p) $(__WXLIB_HTML_p) $(__WXLIB_XML_p) $(__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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
2d611b5c | 243 | |
b17c1746 DE |
244 | data: |
245 | if not exist $(OBJS) mkdir $(OBJS) | |
246 | for %%f in (studio_resources.wxr) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS) | |
247 | ||
248 | $(OBJS)\studio_studio.o: ./studio.cpp | |
0d90d6ea | 249 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $< |
2d611b5c | 250 | |
1c3a6972 | 251 | $(OBJS)\studio_doc.o: ./doc.cpp |
0d90d6ea | 252 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $< |
2d611b5c | 253 | |
b17c1746 | 254 | $(OBJS)\studio_shapes.o: ./shapes.cpp |
0d90d6ea | 255 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $< |
2d611b5c | 256 | |
b17c1746 | 257 | $(OBJS)\studio_symbols.o: ./symbols.cpp |
0d90d6ea | 258 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $< |
2d611b5c | 259 | |
b17c1746 | 260 | $(OBJS)\studio_view.o: ./view.cpp |
0d90d6ea | 261 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $< |
2d611b5c | 262 | |
b17c1746 | 263 | $(OBJS)\studio_cspalette.o: ./cspalette.cpp |
0d90d6ea | 264 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $< |
2d611b5c | 265 | |
b17c1746 | 266 | $(OBJS)\studio_mainfrm.o: ./mainfrm.cpp |
0d90d6ea | 267 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $< |
2d611b5c | 268 | |
b17c1746 | 269 | $(OBJS)\studio_project.o: ./project.cpp |
0d90d6ea | 270 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $< |
2d611b5c | 271 | |
b17c1746 | 272 | $(OBJS)\studio_dialogs.o: ./dialogs.cpp |
0d90d6ea | 273 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $< |
2d611b5c | 274 | |
b17c1746 | 275 | $(OBJS)\studio_csprint.o: ./csprint.cpp |
0d90d6ea | 276 | $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $< |
2d611b5c | 277 | |
b17c1746 | 278 | $(OBJS)\studio_studio_rc.o: ./studio.rc |
3abcf424 | 279 | 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) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../../../samples --define NOPCH --include-dir ./../../../include |
2d611b5c VS |
280 | |
281 | .PHONY: all clean data | |
b14abf14 | 282 | |
8c9f8f91 | 283 | |
0d90d6ea JS |
284 | # Dependencies tracking: |
285 | -include $(OBJS)/*.d |