]> git.saurik.com Git - wxWidgets.git/blame - utils/HelpGen/src/makefile.gcc
changed wxFFileOutput/InputStream ctor 'mode' argument to wxString
[wxWidgets.git] / utils / HelpGen / src / makefile.gcc
CommitLineData
2ace0078
VS
1# =========================================================================
2# This makefile was generated by
25bb1412 3# Bakefile 0.2.1 (http://bakefile.sourceforge.net)
2ace0078
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
8ba95a18 7include ../../../build/msw/config.gcc
2ace0078
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
ae4ccf12 16WX_RELEASE_NODOT = 29
b17c1746
DE
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
162a956b 19LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
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) \
2113bc77 25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
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)
2ace0078
VS
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 \
75a0a7b7 37 $(OBJS)\HelpGen_srcparser.o
2ace0078
VS
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
2ace0078
VS
58ifeq ($(UNICODE),1)
59WXUNICODEFLAG = u
60endif
61ifeq ($(WXUNIV),1)
62WXUNIVNAME = univ
63endif
b17c1746
DE
64ifeq ($(SHARED),1)
65WXDLLFLAG = dll
2ace0078 66endif
162a956b
JS
67ifeq ($(SHARED),0)
68LIBTYPE_SUFFIX = lib
69endif
70ifeq ($(SHARED),1)
71LIBTYPE_SUFFIX = dll
72endif
dd65d8c8
RN
73ifeq ($(MONOLITHIC),0)
74EXTRALIBS_FOR_BASE =
75endif
76ifeq ($(MONOLITHIC),1)
77EXTRALIBS_FOR_BASE =
78endif
b17c1746
DE
79ifeq ($(BUILD),debug)
80__OPTIMIZEFLAG_2 = -O0
2ace0078
VS
81endif
82ifeq ($(BUILD),release)
b17c1746 83__OPTIMIZEFLAG_2 = -O2
2ace0078 84endif
8c9f8f91
JS
85ifeq ($(USE_RTTI),0)
86__RTTIFLAG_5 = -fno-rtti
2ace0078 87endif
8c9f8f91
JS
88ifeq ($(USE_RTTI),1)
89__RTTIFLAG_5 =
2ace0078 90endif
b17c1746 91ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 92__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
93endif
94ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 95__EXCEPTIONSFLAG_6 =
b17c1746
DE
96endif
97ifeq ($(WXUNIV),1)
98__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
2ace0078
VS
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
8c9f8f91
JS
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
b17c1746
DE
117ifeq ($(UNICODE),1)
118__UNICODE_DEFINE_p = -D_UNICODE
119endif
2113bc77
MW
120ifeq ($(MSLU),1)
121__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
122endif
3abcf424
RD
123ifeq ($(USE_GDIPLUS),1)
124__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
125endif
2ace0078
VS
126ifeq ($(SHARED),1)
127__DLLFLAG_p = -DWXUSINGDLL
128endif
b17c1746 129ifeq ($(MONOLITHIC),0)
c33fae85
RN
130__WXLIB_BASE_p = \
131 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 132endif
b17c1746
DE
133ifeq ($(MONOLITHIC),1)
134__WXLIB_MONO_p = \
c33fae85 135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 136endif
b17c1746
DE
137ifeq ($(MSLU),1)
138__UNICOWS_LIB_p = -lunicows
2ace0078 139endif
3abcf424
RD
140ifeq ($(USE_GDIPLUS),1)
141__GDIPLUS_LIB_p = -lgdiplus
142endif
b17c1746
DE
143ifeq ($(BUILD),debug)
144ifeq ($(DEBUG_INFO),default)
145__DEBUGINFO = -g
2ace0078 146endif
2ace0078 147endif
b17c1746
DE
148ifeq ($(BUILD),release)
149ifeq ($(DEBUG_INFO),default)
150__DEBUGINFO =
2ace0078 151endif
2ace0078 152endif
b17c1746
DE
153ifeq ($(DEBUG_INFO),0)
154__DEBUGINFO =
155endif
156ifeq ($(DEBUG_INFO),1)
157__DEBUGINFO = -g
2ace0078 158endif
8c9f8f91
JS
159ifeq ($(USE_THREADS),0)
160__THREADSFLAG =
161endif
162ifeq ($(USE_THREADS),1)
163__THREADSFLAG = -mthreads
164endif
2ace0078
VS
165
166
167all: $(OBJS)
168$(OBJS):
169 -if not exist $(OBJS) mkdir $(OBJS)
170
171### Targets: ###
172
173all: $(OBJS)\HelpGen.exe
174
b17c1746
DE
175clean:
176 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 177 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
178 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe
179
180$(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
3abcf424 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
b17c1746 182
204e4cd6 183$(OBJS)\HelpGen_HelpGen.o: ./HelpGen.cpp
0d90d6ea 184 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 185
204e4cd6 186$(OBJS)\HelpGen_cjparser.o: ./cjparser.cpp
0d90d6ea 187 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 188
204e4cd6 189$(OBJS)\HelpGen_docripper.o: ./docripper.cpp
0d90d6ea 190 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 191
204e4cd6 192$(OBJS)\HelpGen_ifcontext.o: ./ifcontext.cpp
0d90d6ea 193 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 194
204e4cd6 195$(OBJS)\HelpGen_markup.o: ./markup.cpp
0d90d6ea 196 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 197
204e4cd6 198$(OBJS)\HelpGen_scriptbinder.o: ./scriptbinder.cpp
0d90d6ea 199 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 200
204e4cd6 201$(OBJS)\HelpGen_sourcepainter.o: ./sourcepainter.cpp
0d90d6ea 202 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 203
204e4cd6 204$(OBJS)\HelpGen_srcparser.o: ./srcparser.cpp
0d90d6ea 205 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 206
2ace0078 207.PHONY: all clean
162a956b 208
8c9f8f91 209
0d90d6ea
JS
210# Dependencies tracking:
211-include $(OBJS)/*.d