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 CONSOLE_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 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
27 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
28 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
30 $(OBJS)\console_console.o
32 ### Conditionally set variables: ###
34 ifeq ($(GCC_VERSION),2.95)
35 GCCFLAGS = -fvtable-thunks
44 ifeq ($(DEBUG_FLAG),default)
48 ifeq ($(DEBUG_FLAG),1)
66 ifeq ($(MONOLITHIC),0)
69 ifeq ($(MONOLITHIC),1)
73 __OPTIMIZEFLAG_2 = -O0
75 ifeq ($(BUILD),release)
76 __OPTIMIZEFLAG_2 = -O2
79 __RTTIFLAG_5 = -fno-rtti
84 ifeq ($(USE_EXCEPTIONS),0)
85 __EXCEPTIONSFLAG_6 = -fno-exceptions
87 ifeq ($(USE_EXCEPTIONS),1)
91 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
94 ifeq ($(DEBUG_FLAG),default)
95 __DEBUG_DEFINE_p = -D__WXDEBUG__
98 ifeq ($(DEBUG_FLAG),1)
99 __DEBUG_DEFINE_p = -D__WXDEBUG__
101 ifeq ($(USE_EXCEPTIONS),0)
102 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
105 __RTTI_DEFINE_p = -DwxNO_RTTI
107 ifeq ($(USE_THREADS),0)
108 __THREAD_DEFINE_p = -DwxNO_THREADS
111 __UNICODE_DEFINE_p = -D_UNICODE
114 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
116 ifeq ($(USE_GDIPLUS),1)
117 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
120 __DLLFLAG_p = -DWXUSINGDLL
122 ifeq ($(MONOLITHIC),0)
124 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
126 ifeq ($(MONOLITHIC),0)
129 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
132 ifeq ($(MONOLITHIC),0)
134 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
136 ifeq ($(MONOLITHIC),1)
138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
141 __UNICOWS_LIB_p = -lunicows
143 ifeq ($(USE_GDIPLUS),1)
144 __GDIPLUS_LIB_p = -lgdiplus
146 ifeq ($(BUILD),debug)
147 ifeq ($(DEBUG_INFO),default)
151 ifeq ($(BUILD),release)
152 ifeq ($(DEBUG_INFO),default)
156 ifeq ($(DEBUG_INFO),0)
159 ifeq ($(DEBUG_INFO),1)
162 ifeq ($(USE_THREADS),0)
165 ifeq ($(USE_THREADS),1)
166 __THREADSFLAG = -mthreads
172 -if not exist $(OBJS) mkdir $(OBJS)
176 all: $(OBJS)\console.exe data
179 -if exist $(OBJS)\*.o del $(OBJS)\*.o
180 -if exist $(OBJS)\*.d del $(OBJS)\*.d
181 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
183 $(OBJS)\console.exe: $(CONSOLE_OBJECTS)
184 $(CXX) -o $@ $(CONSOLE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_NET_p) $(__WXLIB_ODBC_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
187 if not exist $(OBJS) mkdir $(OBJS)
188 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
190 $(OBJS)\console_console.o: ./console.cpp
191 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $(CPPDEPS) $<
193 .PHONY: all clean data
196 # Dependencies tracking: