1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 DEBUGRPT_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
25 -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
26 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28 $(OBJS)\debugrpt_sample_rc.o \
29 $(OBJS)\debugrpt_debugrpt.o
31 ### Conditionally set variables: ###
33 ifeq ($(GCC_VERSION),2.95)
34 GCCFLAGS = -fvtable-thunks
43 ifeq ($(DEBUG_FLAG),default)
47 ifeq ($(DEBUG_FLAG),1)
65 ifeq ($(MONOLITHIC),0)
68 ifeq ($(MONOLITHIC),1)
72 __OPTIMIZEFLAG_2 = -O0
74 ifeq ($(BUILD),release)
75 __OPTIMIZEFLAG_2 = -O2
78 __RTTIFLAG_5 = -fno-rtti
83 ifeq ($(USE_EXCEPTIONS),0)
84 __EXCEPTIONSFLAG_6 = -fno-exceptions
86 ifeq ($(USE_EXCEPTIONS),1)
90 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
93 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
96 ifeq ($(DEBUG_FLAG),default)
97 __DEBUG_DEFINE_p = -D__WXDEBUG__
100 ifeq ($(DEBUG_FLAG),1)
101 __DEBUG_DEFINE_p = -D__WXDEBUG__
103 ifeq ($(BUILD),debug)
104 ifeq ($(DEBUG_FLAG),default)
105 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
108 ifeq ($(DEBUG_FLAG),1)
109 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
111 ifeq ($(USE_EXCEPTIONS),0)
112 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
114 ifeq ($(USE_EXCEPTIONS),0)
115 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
118 __RTTI_DEFINE_p = -DwxNO_RTTI
121 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
123 ifeq ($(USE_THREADS),0)
124 __THREAD_DEFINE_p = -DwxNO_THREADS
126 ifeq ($(USE_THREADS),0)
127 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
130 __UNICODE_DEFINE_p = -D_UNICODE
133 __UNICODE_DEFINE_p_1 = --define _UNICODE
136 __DLLFLAG_p = -DWXUSINGDLL
139 __DLLFLAG_p_1 = --define WXUSINGDLL
141 ifeq ($(MONOLITHIC),0)
143 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_qa
145 ifeq ($(MONOLITHIC),0)
147 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
149 ifeq ($(MONOLITHIC),0)
151 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
153 ifeq ($(MONOLITHIC),0)
155 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
157 ifeq ($(MONOLITHIC),1)
159 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
162 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
165 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
168 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
171 __UNICOWS_LIB_p = -lunicows
173 ifeq ($(BUILD),debug)
174 ifeq ($(DEBUG_INFO),default)
178 ifeq ($(BUILD),release)
179 ifeq ($(DEBUG_INFO),default)
183 ifeq ($(DEBUG_INFO),0)
186 ifeq ($(DEBUG_INFO),1)
189 ifeq ($(USE_THREADS),0)
192 ifeq ($(USE_THREADS),1)
193 __THREADSFLAG = -mthreads
199 -if not exist $(OBJS) mkdir $(OBJS)
203 all: $(OBJS)\debugrpt.exe
206 -if exist $(OBJS)\*.o del $(OBJS)\*.o
207 -if exist $(OBJS)\debugrpt.exe del $(OBJS)\debugrpt.exe
209 $(OBJS)\debugrpt.exe: $(DEBUGRPT_OBJECTS) $(OBJS)\debugrpt_sample_rc.o
210 $(CXX) -o $@ $(DEBUGRPT_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_QA_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_XML_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
212 $(OBJS)\debugrpt_sample_rc.o: ./../../samples/sample.rc
213 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) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples
215 $(OBJS)\debugrpt_debugrpt.o: ./debugrpt.cpp
216 $(CXX) -c -o $@ $(DEBUGRPT_CXXFLAGS) $<