1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
24 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) \
25 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\console_console.o
29 ### Conditionally set variables: ###
31 ifeq ($(GCC_VERSION),2.95)
32 GCCFLAGS = -fvtable-thunks
41 ifeq ($(DEBUG_FLAG),default)
45 ifeq ($(DEBUG_FLAG),1)
63 ifeq ($(MONOLITHIC),0)
66 ifeq ($(MONOLITHIC),1)
70 __OPTIMIZEFLAG_2 = -O0
72 ifeq ($(BUILD),release)
73 __OPTIMIZEFLAG_2 = -O2
75 ifeq ($(USE_EXCEPTIONS),0)
76 __EXCEPTIONSFLAG_4 = -fno-rtti
78 ifeq ($(USE_EXCEPTIONS),1)
81 ifeq ($(USE_EXCEPTIONS),0)
82 __EXCEPTIONSFLAG_5 = -fno-exceptions
84 ifeq ($(USE_EXCEPTIONS),1)
88 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
91 ifeq ($(DEBUG_FLAG),default)
92 __DEBUG_DEFINE_p = -D__WXDEBUG__
95 ifeq ($(DEBUG_FLAG),1)
96 __DEBUG_DEFINE_p = -D__WXDEBUG__
99 __UNICODE_DEFINE_p = -D_UNICODE
102 __DLLFLAG_p = -DWXUSINGDLL
104 ifeq ($(MONOLITHIC),0)
106 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
108 ifeq ($(MONOLITHIC),0)
111 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
114 ifeq ($(MONOLITHIC),0)
116 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
118 ifeq ($(MONOLITHIC),1)
120 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
123 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
126 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
129 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
132 __UNICOWS_LIB_p = -lunicows
134 ifeq ($(BUILD),debug)
135 ifeq ($(DEBUG_INFO),default)
139 ifeq ($(BUILD),release)
140 ifeq ($(DEBUG_INFO),default)
144 ifeq ($(DEBUG_INFO),0)
147 ifeq ($(DEBUG_INFO),1)
154 -if not exist $(OBJS) mkdir $(OBJS)
158 all: $(OBJS)\console.exe data
161 -if exist $(OBJS)\*.o del $(OBJS)\*.o
162 -if exist $(OBJS)\console.exe del $(OBJS)\console.exe
164 $(OBJS)\console.exe: $(CONSOLE_OBJECTS)
165 $(CXX) -o $@ $(CONSOLE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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
168 if not exist $(OBJS) mkdir $(OBJS)
169 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
171 $(OBJS)\console_console.o: ./console.cpp
172 $(CXX) -c -o $@ $(CONSOLE_CXXFLAGS) $<
174 .PHONY: all clean data