1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (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 HELPGEN_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
17 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
18 $(__DLLFLAG_p) $(CXXFLAGS)
20 $(OBJS)\HelpGen_HelpGen.o \
21 $(OBJS)\HelpGen_cjparser.o \
22 $(OBJS)\HelpGen_docripper.o \
23 $(OBJS)\HelpGen_ifcontext.o \
24 $(OBJS)\HelpGen_markup.o \
25 $(OBJS)\HelpGen_scriptbinder.o \
26 $(OBJS)\HelpGen_sourcepainter.o \
27 $(OBJS)\HelpGen_srcparser.o
29 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
31 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
33 ### Conditionally set variables: ###
35 ifeq ($(GCC_VERSION),2.95)
36 GCCFLAGS = -fvtable-thunks
39 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
42 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
51 ifeq ($(DEBUG_FLAG),default)
55 ifeq ($(DEBUG_FLAG),1)
68 ifeq ($(DEBUG_INFO),default)
72 ifeq ($(BUILD),release)
73 ifeq ($(DEBUG_INFO),default)
77 ifeq ($(DEBUG_INFO),0)
80 ifeq ($(DEBUG_INFO),1)
84 ifeq ($(DEBUG_FLAG),default)
85 __DEBUG_DEFINE_p = -D__WXDEBUG__
88 ifeq ($(DEBUG_FLAG),1)
89 __DEBUG_DEFINE_p = -D__WXDEBUG__
92 __DLLFLAG_p = -DWXUSINGDLL
95 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
98 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
101 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
103 ifeq ($(BUILD),debug)
104 __OPTIMIZEFLAG_2 = -O0
106 ifeq ($(BUILD),release)
107 __OPTIMIZEFLAG_2 = -O2
110 __UNICODE_DEFINE_p = -D_UNICODE
113 __UNICOWS_LIB_p = -lunicows
115 ifeq ($(MONOLITHIC),0)
116 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
118 ifeq ($(MONOLITHIC),1)
120 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
123 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
129 -if not exist $(OBJS) mkdir $(OBJS)
133 all: $(OBJS)\HelpGen.exe
135 $(OBJS)\HelpGen_HelpGen.o: ./src/HelpGen.cpp
136 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
138 $(OBJS)\HelpGen_cjparser.o: ./src/cjparser.cpp
139 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
141 $(OBJS)\HelpGen_docripper.o: ./src/docripper.cpp
142 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
144 $(OBJS)\HelpGen_ifcontext.o: ./src/ifcontext.cpp
145 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
147 $(OBJS)\HelpGen_markup.o: ./src/markup.cpp
148 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
150 $(OBJS)\HelpGen_scriptbinder.o: ./src/scriptbinder.cpp
151 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
153 $(OBJS)\HelpGen_sourcepainter.o: ./src/sourcepainter.cpp
154 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
156 $(OBJS)\HelpGen_srcparser.o: ./src/srcparser.cpp
157 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
159 $(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
160 $(CXX) -o $@ $(HELPGEN_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
163 -if exist $(OBJS)\*.o del $(OBJS)\*.o
164 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe