]> git.saurik.com Git - wxWidgets.git/blob - utils/HelpGen/src/makefile.gcc
c98b03a23fc84636d4523d018c805d498e2fa9ff
[wxWidgets.git] / utils / HelpGen / src / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.2 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 CPPDEPS = -MT$@ -MF$@.d -MD
16 WX_RELEASE_NODOT = 29
17 COMPILER_PREFIX = gcc
18 OBJS = \
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
21 SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 HELPGEN_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\..\include -W -Wall -I. \
28 $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
29 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
30 HELPGEN_OBJECTS = \
31 $(OBJS)\HelpGen_HelpGen.o \
32 $(OBJS)\HelpGen_cjparser.o \
33 $(OBJS)\HelpGen_docripper.o \
34 $(OBJS)\HelpGen_ifcontext.o \
35 $(OBJS)\HelpGen_markup.o \
36 $(OBJS)\HelpGen_scriptbinder.o \
37 $(OBJS)\HelpGen_sourcepainter.o \
38 $(OBJS)\HelpGen_srcparser.o
39
40 ### Conditionally set variables: ###
41
42 ifeq ($(GCC_VERSION),2.95)
43 GCCFLAGS = -fvtable-thunks
44 endif
45 ifeq ($(USE_GUI),0)
46 PORTNAME = base
47 endif
48 ifeq ($(USE_GUI),1)
49 PORTNAME = msw
50 endif
51 ifeq ($(BUILD),debug)
52 ifeq ($(DEBUG_FLAG),default)
53 WXDEBUGFLAG = d
54 endif
55 endif
56 ifeq ($(DEBUG_FLAG),1)
57 WXDEBUGFLAG = d
58 endif
59 ifeq ($(UNICODE),1)
60 WXUNICODEFLAG = u
61 endif
62 ifeq ($(WXUNIV),1)
63 WXUNIVNAME = univ
64 endif
65 ifeq ($(SHARED),1)
66 WXDLLFLAG = dll
67 endif
68 ifeq ($(SHARED),0)
69 LIBTYPE_SUFFIX = lib
70 endif
71 ifeq ($(SHARED),1)
72 LIBTYPE_SUFFIX = dll
73 endif
74 ifeq ($(MONOLITHIC),0)
75 EXTRALIBS_FOR_BASE =
76 endif
77 ifeq ($(MONOLITHIC),1)
78 EXTRALIBS_FOR_BASE =
79 endif
80 ifeq ($(BUILD),debug)
81 __OPTIMIZEFLAG_2 = -O0
82 endif
83 ifeq ($(BUILD),release)
84 __OPTIMIZEFLAG_2 = -O2
85 endif
86 ifeq ($(USE_RTTI),0)
87 __RTTIFLAG_5 = -fno-rtti
88 endif
89 ifeq ($(USE_RTTI),1)
90 __RTTIFLAG_5 =
91 endif
92 ifeq ($(USE_EXCEPTIONS),0)
93 __EXCEPTIONSFLAG_6 = -fno-exceptions
94 endif
95 ifeq ($(USE_EXCEPTIONS),1)
96 __EXCEPTIONSFLAG_6 =
97 endif
98 ifeq ($(WXUNIV),1)
99 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
100 endif
101 ifeq ($(BUILD),debug)
102 ifeq ($(DEBUG_FLAG),default)
103 __DEBUG_DEFINE_p = -D__WXDEBUG__
104 endif
105 endif
106 ifeq ($(DEBUG_FLAG),1)
107 __DEBUG_DEFINE_p = -D__WXDEBUG__
108 endif
109 ifeq ($(USE_EXCEPTIONS),0)
110 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
111 endif
112 ifeq ($(USE_RTTI),0)
113 __RTTI_DEFINE_p = -DwxNO_RTTI
114 endif
115 ifeq ($(USE_THREADS),0)
116 __THREAD_DEFINE_p = -DwxNO_THREADS
117 endif
118 ifeq ($(UNICODE),0)
119 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
120 endif
121 ifeq ($(UNICODE),1)
122 __UNICODE_DEFINE_p = -D_UNICODE
123 endif
124 ifeq ($(MSLU),1)
125 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
126 endif
127 ifeq ($(USE_GDIPLUS),1)
128 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
129 endif
130 ifeq ($(SHARED),1)
131 __DLLFLAG_p = -DWXUSINGDLL
132 endif
133 ifeq ($(MONOLITHIC),0)
134 __WXLIB_BASE_p = \
135 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
136 endif
137 ifeq ($(MONOLITHIC),1)
138 __WXLIB_MONO_p = \
139 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
140 endif
141 ifeq ($(MSLU),1)
142 __UNICOWS_LIB_p = -lunicows
143 endif
144 ifeq ($(USE_GDIPLUS),1)
145 __GDIPLUS_LIB_p = -lgdiplus
146 endif
147 ifeq ($(BUILD),debug)
148 ifeq ($(DEBUG_INFO),default)
149 __DEBUGINFO = -g
150 endif
151 endif
152 ifeq ($(BUILD),release)
153 ifeq ($(DEBUG_INFO),default)
154 __DEBUGINFO =
155 endif
156 endif
157 ifeq ($(DEBUG_INFO),0)
158 __DEBUGINFO =
159 endif
160 ifeq ($(DEBUG_INFO),1)
161 __DEBUGINFO = -g
162 endif
163 ifeq ($(USE_THREADS),0)
164 __THREADSFLAG =
165 endif
166 ifeq ($(USE_THREADS),1)
167 __THREADSFLAG = -mthreads
168 endif
169
170
171 all: $(OBJS)
172 $(OBJS):
173 -if not exist $(OBJS) mkdir $(OBJS)
174
175 ### Targets: ###
176
177 all: $(OBJS)\HelpGen.exe
178
179 clean:
180 -if exist $(OBJS)\*.o del $(OBJS)\*.o
181 -if exist $(OBJS)\*.d del $(OBJS)\*.d
182 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe
183
184 $(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
185 $(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
186
187 $(OBJS)\HelpGen_HelpGen.o: ./HelpGen.cpp
188 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
189
190 $(OBJS)\HelpGen_cjparser.o: ./cjparser.cpp
191 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
192
193 $(OBJS)\HelpGen_docripper.o: ./docripper.cpp
194 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
195
196 $(OBJS)\HelpGen_ifcontext.o: ./ifcontext.cpp
197 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
198
199 $(OBJS)\HelpGen_markup.o: ./markup.cpp
200 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
201
202 $(OBJS)\HelpGen_scriptbinder.o: ./scriptbinder.cpp
203 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
204
205 $(OBJS)\HelpGen_sourcepainter.o: ./sourcepainter.cpp
206 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
207
208 $(OBJS)\HelpGen_srcparser.o: ./srcparser.cpp
209 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
210
211 .PHONY: all clean
212
213
214 # Dependencies tracking:
215 -include $(OBJS)/*.d