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 CONSOLE_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) -DwxUSE_GUI=0 $(__RTTIFLAG_5) \
26 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28 $(OBJS)\console_console.o
30 ### Conditionally set variables: ###
32 ifeq ($(GCC_VERSION),2.95)
33 GCCFLAGS = -fvtable-thunks
42 ifeq ($(DEBUG_FLAG),default)
46 ifeq ($(DEBUG_FLAG),1)
64 ifeq ($(MONOLITHIC),0)
67 ifeq ($(MONOLITHIC),1)
71 __OPTIMIZEFLAG_2 = -O0
73 ifeq ($(BUILD),release)
74 __OPTIMIZEFLAG_2 = -O2
77 __RTTIFLAG_5 = -fno-rtti
82 ifeq ($(USE_EXCEPTIONS),0)
83 __EXCEPTIONSFLAG_6 = -fno-exceptions
85 ifeq ($(USE_EXCEPTIONS),1)
89 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
92 ifeq ($(DEBUG_FLAG),default)
93 __DEBUG_DEFINE_p = -D__WXDEBUG__
96 ifeq ($(DEBUG_FLAG),1)
97 __DEBUG_DEFINE_p = -D__WXDEBUG__
99 ifeq ($(USE_EXCEPTIONS),0)
100 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
103 __RTTI_DEFINE_p = -DwxNO_RTTI
105 ifeq ($(USE_THREADS),0)
106 __THREAD_DEFINE_p = -DwxNO_THREADS
109 __UNICODE_DEFINE_p = -D_UNICODE
112 __DLLFLAG_p = -DWXUSINGDLL
114 ifeq ($(MONOLITHIC),0)
116 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
118 ifeq ($(MONOLITHIC),0)
121 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
124 ifeq ($(MONOLITHIC),0)
126 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
128 ifeq ($(MONOLITHIC),1)
130 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
133 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
136 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
139 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
142 __UNICOWS_LIB_p = -lunicows
144 ifeq ($(BUILD),debug)
145 ifeq ($(DEBUG_INFO),default)
149 ifeq ($(BUILD),release)
150 ifeq ($(DEBUG_INFO),default)
154 ifeq ($(DEBUG_INFO),0)
157 ifeq ($(DEBUG_INFO),1)
160 ifeq ($(USE_THREADS),0)
163 ifeq ($(USE_THREADS),1)
164 __THREADSFLAG = -mthreads
170 -if not exist $(OBJS) mkdir $(OBJS)
174 all: $(OBJS)\console.exe data
177 -if exist $(OBJS)\*.o del $(OBJS)\*.o
178 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
180 $(OBJS)\console.exe: $(CONSOLE_OBJECTS)
181 $(CXX) -o $@ $(CONSOLE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_NET_p) $(__WXLIB_ODBC_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
184 if not exist $(OBJS) mkdir $(OBJS)
185 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
187 $(OBJS)\console_console.o: ./console.cpp
188 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
190 .PHONY: all clean data