1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.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 # -------------------------------------------------------------------------
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 STUDIO_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I.\..\..\..\..\include -I$(SETUPHDIR) -I. \
22 $(__DLLFLAG_p) -I.\..\..\..\..\samples -I.\..\..\..\include $(CXXFLAGS)
24 $(OBJS)\studio_studio.o \
25 $(OBJS)\studio_doc.o \
26 $(OBJS)\studio_shapes.o \
27 $(OBJS)\studio_symbols.o \
28 $(OBJS)\studio_view.o \
29 $(OBJS)\studio_cspalette.o \
30 $(OBJS)\studio_mainfrm.o \
31 $(OBJS)\studio_project.o \
32 $(OBJS)\studio_dialogs.o \
33 $(OBJS)\studio_csprint.o \
34 $(OBJS)\studio_studio_rc.o
36 ### Conditionally set variables: ###
38 ifeq ($(GCC_VERSION),2.95)
39 GCCFLAGS = -fvtable-thunks
42 LIBDIRNAME = .\..\..\..\..\lib\gcc_lib$(CFG)
45 LIBDIRNAME = .\..\..\..\..\lib\gcc_dll$(CFG)
54 ifeq ($(DEBUG_FLAG),default)
58 ifeq ($(DEBUG_FLAG),1)
71 ifeq ($(DEBUG_INFO),default)
75 ifeq ($(BUILD),release)
76 ifeq ($(DEBUG_INFO),default)
80 ifeq ($(DEBUG_INFO),0)
83 ifeq ($(DEBUG_INFO),1)
87 ifeq ($(DEBUG_FLAG),default)
88 __DEBUG_DEFINE_p = -D__WXDEBUG__
91 ifeq ($(DEBUG_FLAG),1)
92 __DEBUG_DEFINE_p = -D__WXDEBUG__
95 ifeq ($(DEBUG_FLAG),default)
96 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
99 ifeq ($(DEBUG_FLAG),1)
100 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
103 __DLLFLAG_p = -DWXUSINGDLL
106 __DLLFLAG_p_1 = --define WXUSINGDLL
109 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
112 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
115 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
117 ifeq ($(BUILD),debug)
118 __OPTIMIZEFLAG_2 = -O0
120 ifeq ($(BUILD),release)
121 __OPTIMIZEFLAG_2 = -O2
124 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
127 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=1
130 __UNICOWS_LIB_p = -lunicows
132 ifeq ($(MONOLITHIC),0)
134 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv
136 ifeq ($(MONOLITHIC),0)
137 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
139 ifeq ($(MONOLITHIC),0)
141 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
143 ifeq ($(MONOLITHIC),1)
145 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
148 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
151 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
157 -if not exist $(OBJS) mkdir $(OBJS)
161 all: $(OBJS)\studio.exe data
163 $(OBJS)\studio_cspalette.o: ./cspalette.cpp
164 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
166 $(OBJS)\studio_csprint.o: ./csprint.cpp
167 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
169 $(OBJS)\studio_dialogs.o: ./dialogs.cpp
170 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
172 $(OBJS)\studio_doc.o: ./doc.cpp
173 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
175 $(OBJS)\studio_mainfrm.o: ./mainfrm.cpp
176 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
178 $(OBJS)\studio_project.o: ./project.cpp
179 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
181 $(OBJS)\studio_shapes.o: ./shapes.cpp
182 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
184 $(OBJS)\studio_studio.o: ./studio.cpp
185 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
187 $(OBJS)\studio_studio_rc.o: ./studio.rc
188 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
190 $(OBJS)\studio_symbols.o: ./symbols.cpp
191 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
193 $(OBJS)\studio_view.o: ./view.cpp
194 $(CXX) -c -o $@ $(STUDIO_CXXFLAGS) $<
197 -if exist $(OBJS)\*.o del $(OBJS)\*.o
198 -if exist $(OBJS)\studio.exe del $(OBJS)\studio.exe
201 if not exist $(OBJS) mkdir $(OBJS)
202 for %%f in (studio_resources.wxr) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
204 $(OBJS)\studio.exe: $(STUDIO_OBJECTS) $(OBJS)\studio_studio_rc.o
205 $(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_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 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
207 .PHONY: all clean data