]> git.saurik.com Git - wxWidgets.git/blame - utils/HelpGen/src/makefile.gcc
More warning and error fixes (work in progress with Tinderbox).
[wxWidgets.git] / utils / HelpGen / src / makefile.gcc
CommitLineData
2ace0078
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (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
4818141b 15WX_RELEASE_NODOT = 26
b17c1746
DE
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
162a956b 18LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
21HELPGEN_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
25 -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 $(__RTTIFLAG_5) \
26 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
2ace0078
VS
27HELPGEN_OBJECTS = \
28 $(OBJS)\HelpGen_HelpGen.o \
29 $(OBJS)\HelpGen_cjparser.o \
30 $(OBJS)\HelpGen_docripper.o \
31 $(OBJS)\HelpGen_ifcontext.o \
32 $(OBJS)\HelpGen_markup.o \
33 $(OBJS)\HelpGen_scriptbinder.o \
34 $(OBJS)\HelpGen_sourcepainter.o \
75a0a7b7 35 $(OBJS)\HelpGen_srcparser.o
2ace0078
VS
36
37### Conditionally set variables: ###
38
39ifeq ($(GCC_VERSION),2.95)
40GCCFLAGS = -fvtable-thunks
41endif
42ifeq ($(USE_GUI),0)
43PORTNAME = base
44endif
45ifeq ($(USE_GUI),1)
46PORTNAME = msw
47endif
48ifeq ($(BUILD),debug)
49ifeq ($(DEBUG_FLAG),default)
50WXDEBUGFLAG = d
51endif
52endif
53ifeq ($(DEBUG_FLAG),1)
54WXDEBUGFLAG = d
55endif
2ace0078
VS
56ifeq ($(UNICODE),1)
57WXUNICODEFLAG = u
58endif
59ifeq ($(WXUNIV),1)
60WXUNIVNAME = univ
61endif
b17c1746
DE
62ifeq ($(SHARED),1)
63WXDLLFLAG = dll
2ace0078 64endif
162a956b
JS
65ifeq ($(SHARED),0)
66LIBTYPE_SUFFIX = lib
67endif
68ifeq ($(SHARED),1)
69LIBTYPE_SUFFIX = dll
70endif
dd65d8c8
RN
71ifeq ($(MONOLITHIC),0)
72EXTRALIBS_FOR_BASE =
73endif
74ifeq ($(MONOLITHIC),1)
75EXTRALIBS_FOR_BASE =
76endif
b17c1746
DE
77ifeq ($(BUILD),debug)
78__OPTIMIZEFLAG_2 = -O0
2ace0078
VS
79endif
80ifeq ($(BUILD),release)
b17c1746 81__OPTIMIZEFLAG_2 = -O2
2ace0078 82endif
8c9f8f91
JS
83ifeq ($(USE_RTTI),0)
84__RTTIFLAG_5 = -fno-rtti
2ace0078 85endif
8c9f8f91
JS
86ifeq ($(USE_RTTI),1)
87__RTTIFLAG_5 =
2ace0078 88endif
b17c1746 89ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 90__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
91endif
92ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 93__EXCEPTIONSFLAG_6 =
b17c1746
DE
94endif
95ifeq ($(WXUNIV),1)
96__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
2ace0078
VS
97endif
98ifeq ($(BUILD),debug)
99ifeq ($(DEBUG_FLAG),default)
100__DEBUG_DEFINE_p = -D__WXDEBUG__
101endif
102endif
103ifeq ($(DEBUG_FLAG),1)
104__DEBUG_DEFINE_p = -D__WXDEBUG__
105endif
8c9f8f91
JS
106ifeq ($(USE_EXCEPTIONS),0)
107__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
108endif
109ifeq ($(USE_RTTI),0)
110__RTTI_DEFINE_p = -DwxNO_RTTI
111endif
112ifeq ($(USE_THREADS),0)
113__THREAD_DEFINE_p = -DwxNO_THREADS
114endif
b17c1746
DE
115ifeq ($(UNICODE),1)
116__UNICODE_DEFINE_p = -D_UNICODE
117endif
2ace0078
VS
118ifeq ($(SHARED),1)
119__DLLFLAG_p = -DWXUSINGDLL
120endif
b17c1746 121ifeq ($(MONOLITHIC),0)
c33fae85
RN
122__WXLIB_BASE_p = \
123 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 124endif
b17c1746
DE
125ifeq ($(MONOLITHIC),1)
126__WXLIB_MONO_p = \
c33fae85 127 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 128endif
b17c1746 129ifeq ($(USE_GUI),1)
9c2d002b 130__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 131endif
2ace0078 132ifeq ($(USE_GUI),1)
9c2d002b 133__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
2ace0078
VS
134endif
135ifeq ($(USE_GUI),1)
9c2d002b 136__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
2ace0078 137endif
b17c1746
DE
138ifeq ($(MSLU),1)
139__UNICOWS_LIB_p = -lunicows
2ace0078 140endif
b17c1746
DE
141ifeq ($(BUILD),debug)
142ifeq ($(DEBUG_INFO),default)
143__DEBUGINFO = -g
2ace0078 144endif
2ace0078 145endif
b17c1746
DE
146ifeq ($(BUILD),release)
147ifeq ($(DEBUG_INFO),default)
148__DEBUGINFO =
2ace0078 149endif
2ace0078 150endif
b17c1746
DE
151ifeq ($(DEBUG_INFO),0)
152__DEBUGINFO =
153endif
154ifeq ($(DEBUG_INFO),1)
155__DEBUGINFO = -g
2ace0078 156endif
8c9f8f91
JS
157ifeq ($(USE_THREADS),0)
158__THREADSFLAG =
159endif
160ifeq ($(USE_THREADS),1)
161__THREADSFLAG = -mthreads
162endif
2ace0078
VS
163
164
165all: $(OBJS)
166$(OBJS):
167 -if not exist $(OBJS) mkdir $(OBJS)
168
169### Targets: ###
170
171all: $(OBJS)\HelpGen.exe
172
b17c1746
DE
173clean:
174 -if exist $(OBJS)\*.o del $(OBJS)\*.o
175 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe
176
177$(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
8c9f8f91 178 $(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
b17c1746 179
204e4cd6 180$(OBJS)\HelpGen_HelpGen.o: ./HelpGen.cpp
2ace0078
VS
181 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
182
204e4cd6 183$(OBJS)\HelpGen_cjparser.o: ./cjparser.cpp
2ace0078
VS
184 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
185
204e4cd6 186$(OBJS)\HelpGen_docripper.o: ./docripper.cpp
2ace0078
VS
187 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
188
204e4cd6 189$(OBJS)\HelpGen_ifcontext.o: ./ifcontext.cpp
2ace0078
VS
190 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
191
204e4cd6 192$(OBJS)\HelpGen_markup.o: ./markup.cpp
2ace0078
VS
193 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
194
204e4cd6 195$(OBJS)\HelpGen_scriptbinder.o: ./scriptbinder.cpp
2ace0078
VS
196 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
197
204e4cd6 198$(OBJS)\HelpGen_sourcepainter.o: ./sourcepainter.cpp
2ace0078
VS
199 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
200
204e4cd6 201$(OBJS)\HelpGen_srcparser.o: ./srcparser.cpp
2ace0078
VS
202 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $<
203
2ace0078 204.PHONY: all clean
162a956b 205
8c9f8f91 206