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 WXRC_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
24 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
25 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
26 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
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 __wxrc___depname = $(OBJS)\wxrc.exe
74 __OPTIMIZEFLAG_2 = -O0
76 ifeq ($(BUILD),release)
77 __OPTIMIZEFLAG_2 = -O2
80 __RTTIFLAG_5 = -fno-rtti
85 ifeq ($(USE_EXCEPTIONS),0)
86 __EXCEPTIONSFLAG_6 = -fno-exceptions
88 ifeq ($(USE_EXCEPTIONS),1)
92 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
95 ifeq ($(DEBUG_FLAG),default)
96 __DEBUG_DEFINE_p = -D__WXDEBUG__
99 ifeq ($(DEBUG_FLAG),1)
100 __DEBUG_DEFINE_p = -D__WXDEBUG__
102 ifeq ($(USE_EXCEPTIONS),0)
103 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
106 __RTTI_DEFINE_p = -DwxNO_RTTI
108 ifeq ($(USE_THREADS),0)
109 __THREAD_DEFINE_p = -DwxNO_THREADS
112 __UNICODE_DEFINE_p = -D_UNICODE
115 __DLLFLAG_p = -DWXUSINGDLL
117 ifeq ($(MONOLITHIC),0)
119 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
121 ifeq ($(MONOLITHIC),0)
123 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
125 ifeq ($(MONOLITHIC),1)
127 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
130 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
133 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
136 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
139 __UNICOWS_LIB_p = -lunicows
141 ifeq ($(BUILD),debug)
142 ifeq ($(DEBUG_INFO),default)
146 ifeq ($(BUILD),release)
147 ifeq ($(DEBUG_INFO),default)
151 ifeq ($(DEBUG_INFO),0)
154 ifeq ($(DEBUG_INFO),1)
157 ifeq ($(USE_THREADS),0)
160 ifeq ($(USE_THREADS),1)
161 __THREADSFLAG = -mthreads
167 -if not exist $(OBJS) mkdir $(OBJS)
171 all: $(__wxrc___depname)
174 -if exist $(OBJS)\*.o del $(OBJS)\*.o
175 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
178 $(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
179 $(CXX) -o $@ $(WXRC_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_XML_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
182 $(OBJS)\wxrc_wxrc.o: ./wxrc.cpp
183 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $<