]> git.saurik.com Git - wxWidgets.git/blame - utils/HelpGen/src/makefile.gcc
typofix
[wxWidgets.git] / utils / HelpGen / src / makefile.gcc
CommitLineData
2ace0078
VS
1# =========================================================================
2# This makefile was generated by
6e0fbb3d 3# Bakefile 0.2.3 (http://www.bakefile.org)
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
7379e476 17COMPILER_PREFIX = gcc
b17c1746 18OBJS = \
7379e476
VZ
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
23HELPGEN_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) \
2113bc77 26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
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)
2ace0078
VS
30HELPGEN_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 \
75a0a7b7 38 $(OBJS)\HelpGen_srcparser.o
2ace0078
VS
39
40### Conditionally set variables: ###
41
42ifeq ($(GCC_VERSION),2.95)
43GCCFLAGS = -fvtable-thunks
44endif
45ifeq ($(USE_GUI),0)
46PORTNAME = base
47endif
48ifeq ($(USE_GUI),1)
49PORTNAME = msw
50endif
51ifeq ($(BUILD),debug)
52ifeq ($(DEBUG_FLAG),default)
53WXDEBUGFLAG = d
54endif
55endif
56ifeq ($(DEBUG_FLAG),1)
57WXDEBUGFLAG = d
58endif
2ace0078
VS
59ifeq ($(UNICODE),1)
60WXUNICODEFLAG = u
61endif
62ifeq ($(WXUNIV),1)
63WXUNIVNAME = univ
64endif
b17c1746
DE
65ifeq ($(SHARED),1)
66WXDLLFLAG = dll
2ace0078 67endif
162a956b
JS
68ifeq ($(SHARED),0)
69LIBTYPE_SUFFIX = lib
70endif
71ifeq ($(SHARED),1)
72LIBTYPE_SUFFIX = dll
73endif
dd65d8c8
RN
74ifeq ($(MONOLITHIC),0)
75EXTRALIBS_FOR_BASE =
76endif
77ifeq ($(MONOLITHIC),1)
78EXTRALIBS_FOR_BASE =
79endif
b17c1746
DE
80ifeq ($(BUILD),debug)
81__OPTIMIZEFLAG_2 = -O0
2ace0078
VS
82endif
83ifeq ($(BUILD),release)
b17c1746 84__OPTIMIZEFLAG_2 = -O2
2ace0078 85endif
8c9f8f91
JS
86ifeq ($(USE_RTTI),0)
87__RTTIFLAG_5 = -fno-rtti
2ace0078 88endif
8c9f8f91
JS
89ifeq ($(USE_RTTI),1)
90__RTTIFLAG_5 =
2ace0078 91endif
b17c1746 92ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 93__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
94endif
95ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 96__EXCEPTIONSFLAG_6 =
b17c1746
DE
97endif
98ifeq ($(WXUNIV),1)
99__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
2ace0078
VS
100endif
101ifeq ($(BUILD),debug)
102ifeq ($(DEBUG_FLAG),default)
103__DEBUG_DEFINE_p = -D__WXDEBUG__
104endif
105endif
106ifeq ($(DEBUG_FLAG),1)
107__DEBUG_DEFINE_p = -D__WXDEBUG__
108endif
8c9f8f91
JS
109ifeq ($(USE_EXCEPTIONS),0)
110__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
111endif
112ifeq ($(USE_RTTI),0)
113__RTTI_DEFINE_p = -DwxNO_RTTI
114endif
115ifeq ($(USE_THREADS),0)
116__THREAD_DEFINE_p = -DwxNO_THREADS
117endif
7379e476
VZ
118ifeq ($(UNICODE),0)
119__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
120endif
b17c1746
DE
121ifeq ($(UNICODE),1)
122__UNICODE_DEFINE_p = -D_UNICODE
123endif
2113bc77
MW
124ifeq ($(MSLU),1)
125__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
126endif
3abcf424
RD
127ifeq ($(USE_GDIPLUS),1)
128__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
129endif
2ace0078
VS
130ifeq ($(SHARED),1)
131__DLLFLAG_p = -DWXUSINGDLL
132endif
b17c1746 133ifeq ($(MONOLITHIC),0)
c33fae85
RN
134__WXLIB_BASE_p = \
135 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 136endif
b17c1746
DE
137ifeq ($(MONOLITHIC),1)
138__WXLIB_MONO_p = \
c33fae85 139 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 140endif
b17c1746
DE
141ifeq ($(MSLU),1)
142__UNICOWS_LIB_p = -lunicows
2ace0078 143endif
3abcf424
RD
144ifeq ($(USE_GDIPLUS),1)
145__GDIPLUS_LIB_p = -lgdiplus
146endif
b17c1746
DE
147ifeq ($(BUILD),debug)
148ifeq ($(DEBUG_INFO),default)
149__DEBUGINFO = -g
2ace0078 150endif
2ace0078 151endif
b17c1746
DE
152ifeq ($(BUILD),release)
153ifeq ($(DEBUG_INFO),default)
154__DEBUGINFO =
2ace0078 155endif
2ace0078 156endif
b17c1746
DE
157ifeq ($(DEBUG_INFO),0)
158__DEBUGINFO =
159endif
160ifeq ($(DEBUG_INFO),1)
161__DEBUGINFO = -g
2ace0078 162endif
8c9f8f91
JS
163ifeq ($(USE_THREADS),0)
164__THREADSFLAG =
165endif
166ifeq ($(USE_THREADS),1)
167__THREADSFLAG = -mthreads
168endif
2ace0078
VS
169
170
171all: $(OBJS)
172$(OBJS):
173 -if not exist $(OBJS) mkdir $(OBJS)
174
175### Targets: ###
176
177all: $(OBJS)\HelpGen.exe
178
b17c1746
DE
179clean:
180 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 181 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
182 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe
183
184$(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
7379e476 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
b17c1746 186
204e4cd6 187$(OBJS)\HelpGen_HelpGen.o: ./HelpGen.cpp
0d90d6ea 188 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 189
204e4cd6 190$(OBJS)\HelpGen_cjparser.o: ./cjparser.cpp
0d90d6ea 191 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 192
204e4cd6 193$(OBJS)\HelpGen_docripper.o: ./docripper.cpp
0d90d6ea 194 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 195
204e4cd6 196$(OBJS)\HelpGen_ifcontext.o: ./ifcontext.cpp
0d90d6ea 197 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 198
204e4cd6 199$(OBJS)\HelpGen_markup.o: ./markup.cpp
0d90d6ea 200 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 201
204e4cd6 202$(OBJS)\HelpGen_scriptbinder.o: ./scriptbinder.cpp
0d90d6ea 203 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 204
204e4cd6 205$(OBJS)\HelpGen_sourcepainter.o: ./sourcepainter.cpp
0d90d6ea 206 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 207
204e4cd6 208$(OBJS)\HelpGen_srcparser.o: ./srcparser.cpp
0d90d6ea 209 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
2ace0078 210
2ace0078 211.PHONY: all clean
162a956b 212
8c9f8f91 213
6e0fbb3d
VS
214SHELL := $(COMSPEC)
215
0d90d6ea
JS
216# Dependencies tracking:
217-include $(OBJS)/*.d