]> git.saurik.com Git - wxWidgets.git/blob - utils/HelpGen/src/makefile.gcc
334436061af2cc1e26dabbedd2c0fd3ca66d47e0
[wxWidgets.git] / utils / HelpGen / src / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 CPPDEPS = -MT$@ -MF$@.d -MD
16 WX_RELEASE_NODOT = 27
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 HELPGEN_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
26 -I$(SETUPHDIR) -I.\..\..\..\include -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
27 $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
28 $(CXXFLAGS)
29 HELPGEN_OBJECTS = \
30 $(OBJS)\HelpGen_HelpGen.o \
31 $(OBJS)\HelpGen_cjparser.o \
32 $(OBJS)\HelpGen_docripper.o \
33 $(OBJS)\HelpGen_ifcontext.o \
34 $(OBJS)\HelpGen_markup.o \
35 $(OBJS)\HelpGen_scriptbinder.o \
36 $(OBJS)\HelpGen_sourcepainter.o \
37 $(OBJS)\HelpGen_srcparser.o
38
39 ### Conditionally set variables: ###
40
41 ifeq ($(GCC_VERSION),2.95)
42 GCCFLAGS = -fvtable-thunks
43 endif
44 ifeq ($(USE_GUI),0)
45 PORTNAME = base
46 endif
47 ifeq ($(USE_GUI),1)
48 PORTNAME = msw
49 endif
50 ifeq ($(BUILD),debug)
51 ifeq ($(DEBUG_FLAG),default)
52 WXDEBUGFLAG = d
53 endif
54 endif
55 ifeq ($(DEBUG_FLAG),1)
56 WXDEBUGFLAG = d
57 endif
58 ifeq ($(UNICODE),1)
59 WXUNICODEFLAG = u
60 endif
61 ifeq ($(WXUNIV),1)
62 WXUNIVNAME = univ
63 endif
64 ifeq ($(SHARED),1)
65 WXDLLFLAG = dll
66 endif
67 ifeq ($(SHARED),0)
68 LIBTYPE_SUFFIX = lib
69 endif
70 ifeq ($(SHARED),1)
71 LIBTYPE_SUFFIX = dll
72 endif
73 ifeq ($(MONOLITHIC),0)
74 EXTRALIBS_FOR_BASE =
75 endif
76 ifeq ($(MONOLITHIC),1)
77 EXTRALIBS_FOR_BASE =
78 endif
79 ifeq ($(BUILD),debug)
80 __OPTIMIZEFLAG_2 = -O0
81 endif
82 ifeq ($(BUILD),release)
83 __OPTIMIZEFLAG_2 = -O2
84 endif
85 ifeq ($(USE_RTTI),0)
86 __RTTIFLAG_5 = -fno-rtti
87 endif
88 ifeq ($(USE_RTTI),1)
89 __RTTIFLAG_5 =
90 endif
91 ifeq ($(USE_EXCEPTIONS),0)
92 __EXCEPTIONSFLAG_6 = -fno-exceptions
93 endif
94 ifeq ($(USE_EXCEPTIONS),1)
95 __EXCEPTIONSFLAG_6 =
96 endif
97 ifeq ($(WXUNIV),1)
98 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
99 endif
100 ifeq ($(BUILD),debug)
101 ifeq ($(DEBUG_FLAG),default)
102 __DEBUG_DEFINE_p = -D__WXDEBUG__
103 endif
104 endif
105 ifeq ($(DEBUG_FLAG),1)
106 __DEBUG_DEFINE_p = -D__WXDEBUG__
107 endif
108 ifeq ($(USE_EXCEPTIONS),0)
109 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
110 endif
111 ifeq ($(USE_RTTI),0)
112 __RTTI_DEFINE_p = -DwxNO_RTTI
113 endif
114 ifeq ($(USE_THREADS),0)
115 __THREAD_DEFINE_p = -DwxNO_THREADS
116 endif
117 ifeq ($(UNICODE),1)
118 __UNICODE_DEFINE_p = -D_UNICODE
119 endif
120 ifeq ($(MSLU),1)
121 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
122 endif
123 ifeq ($(SHARED),1)
124 __DLLFLAG_p = -DWXUSINGDLL
125 endif
126 ifeq ($(MONOLITHIC),0)
127 __WXLIB_BASE_p = \
128 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
129 endif
130 ifeq ($(MONOLITHIC),1)
131 __WXLIB_MONO_p = \
132 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
133 endif
134 ifeq ($(MSLU),1)
135 __UNICOWS_LIB_p = -lunicows
136 endif
137 ifeq ($(BUILD),debug)
138 ifeq ($(DEBUG_INFO),default)
139 __DEBUGINFO = -g
140 endif
141 endif
142 ifeq ($(BUILD),release)
143 ifeq ($(DEBUG_INFO),default)
144 __DEBUGINFO =
145 endif
146 endif
147 ifeq ($(DEBUG_INFO),0)
148 __DEBUGINFO =
149 endif
150 ifeq ($(DEBUG_INFO),1)
151 __DEBUGINFO = -g
152 endif
153 ifeq ($(USE_THREADS),0)
154 __THREADSFLAG =
155 endif
156 ifeq ($(USE_THREADS),1)
157 __THREADSFLAG = -mthreads
158 endif
159
160
161 all: $(OBJS)
162 $(OBJS):
163 -if not exist $(OBJS) mkdir $(OBJS)
164
165 ### Targets: ###
166
167 all: $(OBJS)\HelpGen.exe
168
169 clean:
170 -if exist $(OBJS)\*.o del $(OBJS)\*.o
171 -if exist $(OBJS)\*.d del $(OBJS)\*.d
172 -if exist $(OBJS)\HelpGen.exe del $(OBJS)\HelpGen.exe
173
174 $(OBJS)\HelpGen.exe: $(HELPGEN_OBJECTS)
175 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
176
177 $(OBJS)\HelpGen_HelpGen.o: ./HelpGen.cpp
178 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
179
180 $(OBJS)\HelpGen_cjparser.o: ./cjparser.cpp
181 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
182
183 $(OBJS)\HelpGen_docripper.o: ./docripper.cpp
184 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
185
186 $(OBJS)\HelpGen_ifcontext.o: ./ifcontext.cpp
187 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
188
189 $(OBJS)\HelpGen_markup.o: ./markup.cpp
190 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
191
192 $(OBJS)\HelpGen_scriptbinder.o: ./scriptbinder.cpp
193 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
194
195 $(OBJS)\HelpGen_sourcepainter.o: ./sourcepainter.cpp
196 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
197
198 $(OBJS)\HelpGen_srcparser.o: ./srcparser.cpp
199 $(CXX) -c -o $@ $(HELPGEN_CXXFLAGS) $(CPPDEPS) $<
200
201 .PHONY: all clean
202
203
204 # Dependencies tracking:
205 -include $(OBJS)/*.d