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