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