]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/foldbar/makefile.gcc
1948917f73c2917bedd43ce0af0cb9716a706cff
[wxWidgets.git] / contrib / build / foldbar / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.1 (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 = 28
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = ..\..\src\foldbar\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 FOLDBARDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__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 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\foldbar\..\..\..\include -W \
27 -Wall -I..\..\src\foldbar\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_FOLDBAR \
28 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
29 $(CXXFLAGS)
30 FOLDBARDLL_OBJECTS = \
31 $(OBJS)\foldbardll_dummy.o \
32 $(OBJS)\foldbardll_version_rc.o \
33 $(OBJS)\foldbardll_captionbar.o \
34 $(OBJS)\foldbardll_foldpanelbar.o \
35 $(OBJS)\foldbardll_foldpanelitem.o
36 FOLDBARLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
37 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
38 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
39 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
40 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\foldbar\..\..\..\include -W \
41 -Wall -I..\..\src\foldbar\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
42 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
43 FOLDBARLIB_OBJECTS = \
44 $(OBJS)\foldbarlib_dummy.o \
45 $(OBJS)\foldbarlib_captionbar.o \
46 $(OBJS)\foldbarlib_foldpanelbar.o \
47 $(OBJS)\foldbarlib_foldpanelitem.o
48
49 ### Conditionally set variables: ###
50
51 ifeq ($(GCC_VERSION),2.95)
52 GCCFLAGS = -fvtable-thunks
53 endif
54 ifeq ($(USE_GUI),0)
55 PORTNAME = base
56 endif
57 ifeq ($(USE_GUI),1)
58 PORTNAME = msw
59 endif
60 ifeq ($(OFFICIAL_BUILD),0)
61 VENDORTAG = _$(VENDOR)
62 endif
63 ifeq ($(OFFICIAL_BUILD),1)
64 VENDORTAG =
65 endif
66 ifeq ($(BUILD),debug)
67 ifeq ($(DEBUG_FLAG),default)
68 WXDEBUGFLAG = d
69 endif
70 endif
71 ifeq ($(DEBUG_FLAG),1)
72 WXDEBUGFLAG = d
73 endif
74 ifeq ($(UNICODE),1)
75 WXUNICODEFLAG = u
76 endif
77 ifeq ($(WXUNIV),1)
78 WXUNIVNAME = univ
79 endif
80 ifeq ($(SHARED),1)
81 WXDLLFLAG = dll
82 endif
83 ifeq ($(SHARED),0)
84 LIBTYPE_SUFFIX = lib
85 endif
86 ifeq ($(SHARED),1)
87 LIBTYPE_SUFFIX = dll
88 endif
89 ifeq ($(MONOLITHIC),0)
90 EXTRALIBS_FOR_BASE =
91 endif
92 ifeq ($(MONOLITHIC),1)
93 EXTRALIBS_FOR_BASE =
94 endif
95 ifeq ($(SHARED),1)
96 __foldbardll___depname = \
97 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll
98 endif
99 ifeq ($(WXUNIV),1)
100 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
101 endif
102 ifeq ($(BUILD),debug)
103 ifeq ($(DEBUG_FLAG),default)
104 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
105 endif
106 endif
107 ifeq ($(DEBUG_FLAG),1)
108 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
109 endif
110 ifeq ($(USE_EXCEPTIONS),0)
111 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
112 endif
113 ifeq ($(USE_RTTI),0)
114 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
115 endif
116 ifeq ($(USE_THREADS),0)
117 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
118 endif
119 ifeq ($(UNICODE),1)
120 __UNICODE_DEFINE_p_1 = --define _UNICODE
121 endif
122 ifeq ($(MSLU),1)
123 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
124 endif
125 ifeq ($(USE_GDIPLUS),1)
126 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
127 endif
128 ifeq ($(MONOLITHIC),1)
129 __WXLIB_MONO_p = \
130 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
131 endif
132 ifeq ($(USE_GUI),1)
133 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
134 endif
135 ifeq ($(USE_GUI),1)
136 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
137 endif
138 ifeq ($(USE_GUI),1)
139 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
140 endif
141 ifeq ($(MSLU),1)
142 __UNICOWS_LIB_p = -lunicows
143 endif
144 ifeq ($(USE_GDIPLUS),1)
145 __GDIPLUS_LIB_p = -lgdiplus
146 endif
147 ifeq ($(MONOLITHIC),0)
148 __WXLIB_CORE_p = \
149 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
150 endif
151 ifeq ($(MONOLITHIC),0)
152 __WXLIB_BASE_p = \
153 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
154 endif
155 ifeq ($(SHARED),0)
156 __foldbarlib___depname = \
157 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a
158 endif
159 ifeq ($(BUILD),debug)
160 ifeq ($(DEBUG_INFO),default)
161 __DEBUGINFO = -g
162 endif
163 endif
164 ifeq ($(BUILD),release)
165 ifeq ($(DEBUG_INFO),default)
166 __DEBUGINFO =
167 endif
168 endif
169 ifeq ($(DEBUG_INFO),0)
170 __DEBUGINFO =
171 endif
172 ifeq ($(DEBUG_INFO),1)
173 __DEBUGINFO = -g
174 endif
175 ifeq ($(BUILD),debug)
176 __OPTIMIZEFLAG = -O0
177 endif
178 ifeq ($(BUILD),release)
179 __OPTIMIZEFLAG = -O2
180 endif
181 ifeq ($(USE_THREADS),0)
182 __THREADSFLAG =
183 endif
184 ifeq ($(USE_THREADS),1)
185 __THREADSFLAG = -mthreads
186 endif
187 ifeq ($(USE_RTTI),0)
188 __RTTIFLAG = -fno-rtti
189 endif
190 ifeq ($(USE_RTTI),1)
191 __RTTIFLAG =
192 endif
193 ifeq ($(USE_EXCEPTIONS),0)
194 __EXCEPTIONSFLAG = -fno-exceptions
195 endif
196 ifeq ($(USE_EXCEPTIONS),1)
197 __EXCEPTIONSFLAG =
198 endif
199 ifeq ($(WXUNIV),1)
200 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
201 endif
202 ifeq ($(BUILD),debug)
203 ifeq ($(DEBUG_FLAG),default)
204 __DEBUG_DEFINE_p = -D__WXDEBUG__
205 endif
206 endif
207 ifeq ($(DEBUG_FLAG),1)
208 __DEBUG_DEFINE_p = -D__WXDEBUG__
209 endif
210 ifeq ($(USE_EXCEPTIONS),0)
211 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
212 endif
213 ifeq ($(USE_RTTI),0)
214 __RTTI_DEFINE_p = -DwxNO_RTTI
215 endif
216 ifeq ($(USE_THREADS),0)
217 __THREAD_DEFINE_p = -DwxNO_THREADS
218 endif
219 ifeq ($(UNICODE),1)
220 __UNICODE_DEFINE_p = -D_UNICODE
221 endif
222 ifeq ($(MSLU),1)
223 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
224 endif
225 ifeq ($(USE_GDIPLUS),1)
226 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
227 endif
228
229
230 all: $(OBJS)
231 $(OBJS):
232 -if not exist $(OBJS) mkdir $(OBJS)
233
234 ### Targets: ###
235
236 all: $(__foldbardll___depname) $(__foldbarlib___depname)
237
238 clean:
239 -if exist $(OBJS)\*.o del $(OBJS)\*.o
240 -if exist $(OBJS)\*.d del $(OBJS)\*.d
241 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll
242 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a
243 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a
244
245 ifeq ($(SHARED),1)
246 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll: $(FOLDBARDLL_OBJECTS) $(OBJS)\foldbardll_version_rc.o
247 $(CXX) -shared -fPIC -o $@ $(FOLDBARDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a $(__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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
248 endif
249
250 ifeq ($(SHARED),0)
251 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a: $(FOLDBARLIB_OBJECTS)
252 if exist $@ del $@
253 ar rcu $@ $(FOLDBARLIB_OBJECTS)
254 ranlib $@
255 endif
256
257 $(OBJS)\foldbardll_dummy.o: ../../src/foldbar/../../../src/common/dummy.cpp
258 $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $(CPPDEPS) $<
259
260 $(OBJS)\foldbardll_version_rc.o: ../../src/foldbar/../../../src/msw/version.rc
261 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ../../src/foldbar/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG)
262
263 $(OBJS)\foldbardll_captionbar.o: ../../src/foldbar/captionbar.cpp
264 $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $(CPPDEPS) $<
265
266 $(OBJS)\foldbardll_foldpanelbar.o: ../../src/foldbar/foldpanelbar.cpp
267 $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $(CPPDEPS) $<
268
269 $(OBJS)\foldbardll_foldpanelitem.o: ../../src/foldbar/foldpanelitem.cpp
270 $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $(CPPDEPS) $<
271
272 $(OBJS)\foldbarlib_dummy.o: ../../src/foldbar/../../../src/common/dummy.cpp
273 $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $(CPPDEPS) $<
274
275 $(OBJS)\foldbarlib_captionbar.o: ../../src/foldbar/captionbar.cpp
276 $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $(CPPDEPS) $<
277
278 $(OBJS)\foldbarlib_foldpanelbar.o: ../../src/foldbar/foldpanelbar.cpp
279 $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $(CPPDEPS) $<
280
281 $(OBJS)\foldbarlib_foldpanelitem.o: ../../src/foldbar/foldpanelitem.cpp
282 $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $(CPPDEPS) $<
283
284 .PHONY: all clean
285
286
287 # Dependencies tracking:
288 -include $(OBJS)/*.d