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 HELPGEN_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)\HelpGen_HelpGen.o \
31 $(OBJS)\HelpGen_cjparser.o \
32 $(OBJS)\HelpGen_docripper.o \
33 $(OBJS)\HelpGen_ifcontext.o \
34 $(OBJS)\HelpGen_markup.o \
35 $(OBJS)\HelpGen_scriptbinder.o \
36 $(OBJS)\HelpGen_sourcepainter.o \
37 $(OBJS)\HelpGen_srcparser.o
39 ### Conditionally set variables: ###
41 ifeq ($(GCC_VERSION),2.95)
42 GCCFLAGS = -fvtable-thunks
51 ifeq ($(DEBUG_FLAG),default)
55 ifeq ($(DEBUG_FLAG),1)
73 ifeq ($(MONOLITHIC),0)
76 ifeq ($(MONOLITHIC),1)
80 __OPTIMIZEFLAG_2 = -O0
82 ifeq ($(BUILD),release)
83 __OPTIMIZEFLAG_2 = -O2
86 __RTTIFLAG_5 = -fno-rtti
91 ifeq ($(USE_EXCEPTIONS),0)
92 __EXCEPTIONSFLAG_6 = -fno-exceptions
94 ifeq ($(USE_EXCEPTIONS),1)
98 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
100 ifeq ($(BUILD),debug)
101 ifeq ($(DEBUG_FLAG),default)
102 __DEBUG_DEFINE_p = -D__WXDEBUG__
105 ifeq ($(DEBUG_FLAG),1)
106 __DEBUG_DEFINE_p = -D__WXDEBUG__
108 ifeq ($(USE_EXCEPTIONS),0)
109 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
112 __RTTI_DEFINE_p = -DwxNO_RTTI
114 ifeq ($(USE_THREADS),0)
115 __THREAD_DEFINE_p = -DwxNO_THREADS
118 __UNICODE_DEFINE_p = -D_UNICODE
121 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
123 ifeq ($(USE_GDIPLUS),1)
124 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
127 __DLLFLAG_p = -DWXUSINGDLL
129 ifeq ($(MONOLITHIC),0)
131 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
133 ifeq ($(MONOLITHIC),1)
135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
138 __UNICOWS_LIB_p = -lunicows
140 ifeq ($(USE_GDIPLUS),1)
141 __GDIPLUS_LIB_p = -lgdiplus
143 ifeq ($(BUILD),debug)
144 ifeq ($(DEBUG_INFO),default)
148 ifeq ($(BUILD),release)
149 ifeq ($(DEBUG_INFO),default)
153 ifeq ($(DEBUG_INFO),0)
156 ifeq ($(DEBUG_INFO),1)
159 ifeq ($(USE_THREADS),0)
162 ifeq ($(USE_THREADS),1)
163 __THREADSFLAG = -mthreads
169 -if not exist $(OBJS) mkdir $(OBJS)
173 all: $(OBJS)\HelpGen.exe
176 -if exist $(OBJS)\*.o del $(OBJS)\*.o
177 -if exist $(OBJS)\*.d del $(OBJS)\*.d
178 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe
180 $(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
181 $(CXX) -o $@ $(HELPGEN_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) $(__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
183 $(OBJS)\HelpGen_HelpGen.o: ./HelpGen.cpp
184 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
186 $(OBJS)\HelpGen_cjparser.o: ./cjparser.cpp
187 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
189 $(OBJS)\HelpGen_docripper.o: ./docripper.cpp
190 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
192 $(OBJS)\HelpGen_ifcontext.o: ./ifcontext.cpp
193 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
195 $(OBJS)\HelpGen_markup.o: ./markup.cpp
196 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
198 $(OBJS)\HelpGen_scriptbinder.o: ./scriptbinder.cpp
199 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
201 $(OBJS)\HelpGen_sourcepainter.o: ./sourcepainter.cpp
202 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
204 $(OBJS)\HelpGen_srcparser.o: ./srcparser.cpp
205 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
210 # Dependencies tracking: