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