1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (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 -I$(SETUPHDIR) -I.\..\..\..\..\include -W -Wall -I. $(__DLLFLAG_p) \
27 -I.\..\..\..\..\samples -DNOPCH -I.\..\..\..\include $(__RTTIFLAG_5) \
28 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
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
42 ### Conditionally set variables: ###
44 ifeq ($(GCC_VERSION),2.95)
45 GCCFLAGS = -fvtable-thunks
54 ifeq ($(DEBUG_FLAG),default)
58 ifeq ($(DEBUG_FLAG),1)
76 ifeq ($(MONOLITHIC),0)
79 ifeq ($(MONOLITHIC),1)
83 __OPTIMIZEFLAG_2 = -O0
85 ifeq ($(BUILD),release)
86 __OPTIMIZEFLAG_2 = -O2
89 __RTTIFLAG_5 = -fno-rtti
94 ifeq ($(USE_EXCEPTIONS),0)
95 __EXCEPTIONSFLAG_6 = -fno-exceptions
97 ifeq ($(USE_EXCEPTIONS),1)
101 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
104 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
106 ifeq ($(BUILD),debug)
107 ifeq ($(DEBUG_FLAG),default)
108 __DEBUG_DEFINE_p = -D__WXDEBUG__
111 ifeq ($(DEBUG_FLAG),1)
112 __DEBUG_DEFINE_p = -D__WXDEBUG__
114 ifeq ($(BUILD),debug)
115 ifeq ($(DEBUG_FLAG),default)
116 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
119 ifeq ($(DEBUG_FLAG),1)
120 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
122 ifeq ($(USE_EXCEPTIONS),0)
123 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
125 ifeq ($(USE_EXCEPTIONS),0)
126 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
129 __RTTI_DEFINE_p = -DwxNO_RTTI
132 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
134 ifeq ($(USE_THREADS),0)
135 __THREAD_DEFINE_p = -DwxNO_THREADS
137 ifeq ($(USE_THREADS),0)
138 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
141 __UNICODE_DEFINE_p = -D_UNICODE
144 __UNICODE_DEFINE_p_1 = --define _UNICODE
147 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
150 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
153 __DLLFLAG_p = -DWXUSINGDLL
156 __DLLFLAG_p_1 = --define WXUSINGDLL
158 ifeq ($(MONOLITHIC),0)
160 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
162 ifeq ($(MONOLITHIC),0)
164 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
166 ifeq ($(MONOLITHIC),0)
168 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
170 ifeq ($(MONOLITHIC),0)
172 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
174 ifeq ($(MONOLITHIC),0)
176 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
178 ifeq ($(MONOLITHIC),1)
180 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
183 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
186 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
189 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
192 __UNICOWS_LIB_p = -lunicows
194 ifeq ($(BUILD),debug)
195 ifeq ($(DEBUG_INFO),default)
199 ifeq ($(BUILD),release)
200 ifeq ($(DEBUG_INFO),default)
204 ifeq ($(DEBUG_INFO),0)
207 ifeq ($(DEBUG_INFO),1)
210 ifeq ($(USE_THREADS),0)
213 ifeq ($(USE_THREADS),1)
214 __THREADSFLAG = -mthreads
220 -if not exist $(OBJS) mkdir $(OBJS)
224 all: $(OBJS)\studio.exe data
227 -if exist $(OBJS)\*.o del $(OBJS)\*.o
228 -if exist $(OBJS)\*.d del $(OBJS)\*.d
229 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
231 $(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio_rc.o
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
235 if not exist $(OBJS) mkdir $(OBJS)
236 for %%f in (studio_resources.wxr) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
238 $(OBJS)\studio_studio.o: ./studio.cpp
239 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
241 $(OBJS)\studio_doc.o: ./doc.cpp
242 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
244 $(OBJS)\studio_shapes.o: ./shapes.cpp
245 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
247 $(OBJS)\studio_symbols.o: ./symbols.cpp
248 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
250 $(OBJS)\studio_view.o: ./view.cpp
251 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
253 $(OBJS)\studio_cspalette.o: ./cspalette.cpp
254 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
256 $(OBJS)\studio_mainfrm.o: ./mainfrm.cpp
257 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
259 $(OBJS)\studio_project.o: ./project.cpp
260 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
262 $(OBJS)\studio_dialogs.o: ./dialogs.cpp
263 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
265 $(OBJS)\studio_csprint.o: ./csprint.cpp
266 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $(CPPDEPS) $<
268 $(OBJS)\studio_studio_rc.o: ./studio.rc
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
271 .PHONY: all clean data
274 # Dependencies tracking: