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