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