1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 STUDIO_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I.\..\..\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
24 $(__DLLFLAG_p) -I.\..\..\..\..\samples -DNOPCH -I.\..\..\..\include \
25 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy \
26 $(CPPFLAGS) $(CXXFLAGS)
28 $(OBJS)\studio_studio.o \
29 $(OBJS)\studio_doc.o \
30 $(OBJS)\studio_shapes.o \
31 $(OBJS)\studio_symbols.o \
32 $(OBJS)\studio_view.o \
33 $(OBJS)\studio_cspalette.o \
34 $(OBJS)\studio_mainfrm.o \
35 $(OBJS)\studio_project.o \
36 $(OBJS)\studio_dialogs.o \
37 $(OBJS)\studio_csprint.o \
38 $(OBJS)\studio_studio_rc.o
40 ### Conditionally set variables: ###
42 ifeq ($(GCC_VERSION),2.95)
43 GCCFLAGS = -fvtable-thunks
52 ifeq ($(DEBUG_FLAG),default)
56 ifeq ($(DEBUG_FLAG),1)
74 ifeq ($(MONOLITHIC),0)
77 ifeq ($(MONOLITHIC),1)
81 __OPTIMIZEFLAG_2 = -O0
83 ifeq ($(BUILD),release)
84 __OPTIMIZEFLAG_2 = -O2
86 ifeq ($(USE_EXCEPTIONS),0)
87 __EXCEPTIONSFLAG_4 = -fno-rtti
89 ifeq ($(USE_EXCEPTIONS),1)
92 ifeq ($(USE_EXCEPTIONS),0)
93 __EXCEPTIONSFLAG_5 = -fno-exceptions
95 ifeq ($(USE_EXCEPTIONS),1)
99 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
102 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
104 ifeq ($(BUILD),debug)
105 ifeq ($(DEBUG_FLAG),default)
106 __DEBUG_DEFINE_p = -D__WXDEBUG__
109 ifeq ($(DEBUG_FLAG),1)
110 __DEBUG_DEFINE_p = -D__WXDEBUG__
112 ifeq ($(BUILD),debug)
113 ifeq ($(DEBUG_FLAG),default)
114 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
117 ifeq ($(DEBUG_FLAG),1)
118 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
121 __UNICODE_DEFINE_p = -D_UNICODE
124 __UNICODE_DEFINE_p_1 = --define _UNICODE
127 __DLLFLAG_p = -DWXUSINGDLL
130 __DLLFLAG_p_1 = --define WXUSINGDLL
132 ifeq ($(MONOLITHIC),0)
134 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
136 ifeq ($(MONOLITHIC),0)
138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
140 ifeq ($(MONOLITHIC),0)
142 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
144 ifeq ($(MONOLITHIC),0)
146 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
148 ifeq ($(MONOLITHIC),1)
150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
153 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
156 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
159 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
162 __UNICOWS_LIB_p = -lunicows
164 ifeq ($(BUILD),debug)
165 ifeq ($(DEBUG_INFO),default)
169 ifeq ($(BUILD),release)
170 ifeq ($(DEBUG_INFO),default)
174 ifeq ($(DEBUG_INFO),0)
177 ifeq ($(DEBUG_INFO),1)
184 -if not exist $(OBJS) mkdir $(OBJS)
188 all: $(OBJS)\studio.exe data
191 -if exist $(OBJS)\*.o del $(OBJS)\*.o
192 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
194 $(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio_rc.o
195 $(CXX) -o $@ $(STUDIO_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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_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
198 if not exist $(OBJS) mkdir $(OBJS)
199 for %%f in (studio_resources.wxr) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
201 $(OBJS)\studio_studio.o: ./studio.cpp
202 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
204 $(OBJS)\studio_doc.o: ./doc.cpp
205 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
207 $(OBJS)\studio_shapes.o: ./shapes.cpp
208 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
210 $(OBJS)\studio_symbols.o: ./symbols.cpp
211 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
213 $(OBJS)\studio_view.o: ./view.cpp
214 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
216 $(OBJS)\studio_cspalette.o: ./cspalette.cpp
217 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
219 $(OBJS)\studio_mainfrm.o: ./mainfrm.cpp
220 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
222 $(OBJS)\studio_project.o: ./project.cpp
223 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
225 $(OBJS)\studio_dialogs.o: ./dialogs.cpp
226 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
228 $(OBJS)\studio_csprint.o: ./csprint.cpp
229 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
231 $(OBJS)\studio_studio_rc.o: ./studio.rc
232 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 --define NOPCH --include-dir ./../../../include
234 .PHONY: all clean data