1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.2 (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 # -------------------------------------------------------------------------
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 STUDIO_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I.\..\..\..\..\include -I$(SETUPHDIR) -Wall -I. \
22 $(__DLLFLAG_p) -I.\..\..\..\..\samples -I.\..\..\..\include \
23 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
25 $(OBJS)\studio_studio.o \
26 $(OBJS)\studio_doc.o \
27 $(OBJS)\studio_shapes.o \
28 $(OBJS)\studio_symbols.o \
29 $(OBJS)\studio_view.o \
30 $(OBJS)\studio_cspalette.o \
31 $(OBJS)\studio_mainfrm.o \
32 $(OBJS)\studio_project.o \
33 $(OBJS)\studio_dialogs.o \
34 $(OBJS)\studio_csprint.o \
35 $(OBJS)\studio_studio_rc.o
37 ### Conditionally set variables: ###
39 ifeq ($(GCC_VERSION),2.95)
40 GCCFLAGS = -fvtable-thunks
49 ifeq ($(DEBUG_FLAG),default)
53 ifeq ($(DEBUG_FLAG),1)
66 __OPTIMIZEFLAG_2 = -O0
68 ifeq ($(BUILD),release)
69 __OPTIMIZEFLAG_2 = -O2
71 ifeq ($(USE_EXCEPTIONS),0)
72 __EXCEPTIONSFLAG_4 = -fno-rtti
74 ifeq ($(USE_EXCEPTIONS),1)
77 ifeq ($(USE_EXCEPTIONS),0)
78 __EXCEPTIONSFLAG_5 = -fno-exceptions
80 ifeq ($(USE_EXCEPTIONS),1)
84 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
87 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
90 ifeq ($(DEBUG_FLAG),default)
91 __DEBUG_DEFINE_p = -D__WXDEBUG__
94 ifeq ($(DEBUG_FLAG),1)
95 __DEBUG_DEFINE_p = -D__WXDEBUG__
98 ifeq ($(DEBUG_FLAG),default)
99 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
102 ifeq ($(DEBUG_FLAG),1)
103 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
106 __UNICODE_DEFINE_p = -D_UNICODE
109 __UNICODE_DEFINE_p_1 = --define _UNICODE
112 __DLLFLAG_p = -DWXUSINGDLL
115 __DLLFLAG_p_1 = --define WXUSINGDLL
117 ifeq ($(MONOLITHIC),0)
119 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv
121 ifeq ($(MONOLITHIC),0)
123 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
125 ifeq ($(MONOLITHIC),0)
127 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
129 ifeq ($(MONOLITHIC),0)
130 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
132 ifeq ($(MONOLITHIC),1)
134 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
137 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
140 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
143 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
146 __UNICOWS_LIB_p = -lunicows
149 LIBDIRNAME = .\..\..\..\..\lib\gcc_lib$(CFG)
152 LIBDIRNAME = .\..\..\..\..\lib\gcc_dll$(CFG)
154 ifeq ($(BUILD),debug)
155 ifeq ($(DEBUG_INFO),default)
159 ifeq ($(BUILD),release)
160 ifeq ($(DEBUG_INFO),default)
164 ifeq ($(DEBUG_INFO),0)
167 ifeq ($(DEBUG_INFO),1)
174 -if not exist $(OBJS) mkdir $(OBJS)
178 all: $(OBJS)\studio.exe data
181 -if exist $(OBJS)\*.o del $(OBJS)\*.o
182 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
184 $(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio_rc.o
185 $(CXX) -o $@ $(STUDIO_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_ogl -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_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$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
188 if not exist $(OBJS) mkdir $(OBJS)
189 for %%f in (studio_resources.wxr) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
191 $(OBJS)\studio_studio.o: ./studio.cpp
192 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
194 $(OBJS)\studio_doc.o: ./doc.cpp
195 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
197 $(OBJS)\studio_shapes.o: ./shapes.cpp
198 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
200 $(OBJS)\studio_symbols.o: ./symbols.cpp
201 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
203 $(OBJS)\studio_view.o: ./view.cpp
204 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
206 $(OBJS)\studio_cspalette.o: ./cspalette.cpp
207 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
209 $(OBJS)\studio_mainfrm.o: ./mainfrm.cpp
210 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
212 $(OBJS)\studio_project.o: ./project.cpp
213 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
215 $(OBJS)\studio_dialogs.o: ./dialogs.cpp
216 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
218 $(OBJS)\studio_csprint.o: ./csprint.cpp
219 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
221 $(OBJS)\studio_studio_rc.o: ./studio.rc
222 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 --include-dir ./../../../include
224 .PHONY: all clean data