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