1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 include ../../../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
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) \
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
43 ### Conditionally set variables: ###
45 ifeq ($(GCC_VERSION),2.95)
46 GCCFLAGS = -fvtable-thunks
55 ifeq ($(DEBUG_FLAG),default)
59 ifeq ($(DEBUG_FLAG),1)
77 ifeq ($(MONOLITHIC),0)
80 ifeq ($(MONOLITHIC),1)
84 __OPTIMIZEFLAG_2 = -O0
86 ifeq ($(BUILD),release)
87 __OPTIMIZEFLAG_2 = -O2
90 __RTTIFLAG_5 = -fno-rtti
95 ifeq ($(USE_EXCEPTIONS),0)
96 __EXCEPTIONSFLAG_6 = -fno-exceptions
98 ifeq ($(USE_EXCEPTIONS),1)
102 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
105 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
107 ifeq ($(BUILD),debug)
108 ifeq ($(DEBUG_FLAG),default)
109 __DEBUG_DEFINE_p = -D__WXDEBUG__
112 ifeq ($(DEBUG_FLAG),1)
113 __DEBUG_DEFINE_p = -D__WXDEBUG__
115 ifeq ($(BUILD),debug)
116 ifeq ($(DEBUG_FLAG),default)
117 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
120 ifeq ($(DEBUG_FLAG),1)
121 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
123 ifeq ($(USE_EXCEPTIONS),0)
124 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
126 ifeq ($(USE_EXCEPTIONS),0)
127 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
130 __RTTI_DEFINE_p = -DwxNO_RTTI
133 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
135 ifeq ($(USE_THREADS),0)
136 __THREAD_DEFINE_p = -DwxNO_THREADS
138 ifeq ($(USE_THREADS),0)
139 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
142 __UNICODE_DEFINE_p = -D_UNICODE
145 __UNICODE_DEFINE_p_1 = --define _UNICODE
148 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
151 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
153 ifeq ($(USE_GDIPLUS),1)
154 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
156 ifeq ($(USE_GDIPLUS),1)
157 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
160 __DLLFLAG_p = -DWXUSINGDLL
163 __DLLFLAG_p_1 = --define WXUSINGDLL
165 ifeq ($(MONOLITHIC),0)
167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
169 ifeq ($(MONOLITHIC),0)
171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
173 ifeq ($(MONOLITHIC),0)
175 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
177 ifeq ($(MONOLITHIC),0)
179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
181 ifeq ($(MONOLITHIC),0)
183 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
185 ifeq ($(MONOLITHIC),1)
187 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
190 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
193 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
196 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
199 __UNICOWS_LIB_p = -lunicows
201 ifeq ($(USE_GDIPLUS),1)
202 __GDIPLUS_LIB_p = -lgdiplus
204 ifeq ($(BUILD),debug)
205 ifeq ($(DEBUG_INFO),default)
209 ifeq ($(BUILD),release)
210 ifeq ($(DEBUG_INFO),default)
214 ifeq ($(DEBUG_INFO),0)
217 ifeq ($(DEBUG_INFO),1)
220 ifeq ($(USE_THREADS),0)
223 ifeq ($(USE_THREADS),1)
224 __THREADSFLAG = -mthreads
230 -if not exist $(OBJS) mkdir $(OBJS)
234 all: $(OBJS)\studio.exe data
237 -if exist $(OBJS)\*.o del $(OBJS)\*.o
238 -if exist $(OBJS)\*.d del $(OBJS)\*.d
239 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
241 $(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio_rc.o
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
245 if not exist $(OBJS) mkdir $(OBJS)
246 for %%f in (studio_resources.wxr) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
248 $(OBJS)\studio_studio.o: ./studio.cpp
249 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
251 $(OBJS)\studio_doc.o: ./doc.cpp
252 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
254 $(OBJS)\studio_shapes.o: ./shapes.cpp
255 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
257 $(OBJS)\studio_symbols.o: ./symbols.cpp
258 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
260 $(OBJS)\studio_view.o: ./view.cpp
261 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
263 $(OBJS)\studio_cspalette.o: ./cspalette.cpp
264 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
266 $(OBJS)\studio_mainfrm.o: ./mainfrm.cpp
267 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
269 $(OBJS)\studio_project.o: ./project.cpp
270 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
272 $(OBJS)\studio_dialogs.o: ./dialogs.cpp
273 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
275 $(OBJS)\studio_csprint.o: ./csprint.cpp
276 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
278 $(OBJS)\studio_studio_rc.o: ./studio.rc
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
281 .PHONY: all clean data
284 # Dependencies tracking: