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 WXRC_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W \
26 -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
27 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
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 __wxrc___depname = $(OBJS)\wxrc.exe
75 __OPTIMIZEFLAG_2 = -O0
77 ifeq ($(BUILD),release)
78 __OPTIMIZEFLAG_2 = -O2
81 __RTTIFLAG_5 = -fno-rtti
86 ifeq ($(USE_EXCEPTIONS),0)
87 __EXCEPTIONSFLAG_6 = -fno-exceptions
89 ifeq ($(USE_EXCEPTIONS),1)
93 __WXUNIV_DEFINE_p = -D__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 ($(USE_EXCEPTIONS),0)
104 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
107 __RTTI_DEFINE_p = -DwxNO_RTTI
109 ifeq ($(USE_THREADS),0)
110 __THREAD_DEFINE_p = -DwxNO_THREADS
113 __UNICODE_DEFINE_p = -D_UNICODE
116 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
119 __DLLFLAG_p = -DWXUSINGDLL
121 ifeq ($(MONOLITHIC),0)
123 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
125 ifeq ($(MONOLITHIC),0)
127 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
129 ifeq ($(MONOLITHIC),1)
131 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
134 __UNICOWS_LIB_p = -lunicows
136 ifeq ($(BUILD),debug)
137 ifeq ($(DEBUG_INFO),default)
141 ifeq ($(BUILD),release)
142 ifeq ($(DEBUG_INFO),default)
146 ifeq ($(DEBUG_INFO),0)
149 ifeq ($(DEBUG_INFO),1)
152 ifeq ($(USE_THREADS),0)
155 ifeq ($(USE_THREADS),1)
156 __THREADSFLAG = -mthreads
162 -if not exist $(OBJS) mkdir $(OBJS)
166 all: $(__wxrc___depname)
169 -if exist $(OBJS)\*.o del $(OBJS)\*.o
170 -if exist $(OBJS)\*.d del $(OBJS)\*.d
171 -if exist $(OBJS)\wxrc.exe del $(OBJS)\wxrc.exe
174 $(OBJS)\wxrc.exe: $(WXRC_OBJECTS)
175 $(CXX) -o $@ $(WXRC_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__WXLIB_XML_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_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
178 $(OBJS)\wxrc_wxrc.o: ./wxrc.cpp
179 $(CXX) -c -o $@ $(WXRC_CXXFLAGS) $(CPPDEPS) $<
184 # Dependencies tracking: