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 # =========================================================================
7 include ../../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD
17 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)2
19 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = ..\..\src\foldbar\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 FOLDBARDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\foldbar\..\..\..\include -W \
28 -Wall -I..\..\src\foldbar\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_FOLDBAR \
29 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
31 FOLDBARDLL_OBJECTS = \
32 $(OBJS)\foldbardll_dummy.o \
33 $(OBJS)\foldbardll_version_rc.o \
34 $(OBJS)\foldbardll_captionbar.o \
35 $(OBJS)\foldbardll_foldpanelbar.o \
36 $(OBJS)\foldbardll_foldpanelitem.o
37 FOLDBARLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
38 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
39 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
40 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
41 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\foldbar\..\..\..\include -W \
42 -Wall -I..\..\src\foldbar\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
43 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
44 FOLDBARLIB_OBJECTS = \
45 $(OBJS)\foldbarlib_dummy.o \
46 $(OBJS)\foldbarlib_captionbar.o \
47 $(OBJS)\foldbarlib_foldpanelbar.o \
48 $(OBJS)\foldbarlib_foldpanelitem.o
50 ### Conditionally set variables: ###
52 ifeq ($(GCC_VERSION),2.95)
53 GCCFLAGS = -fvtable-thunks
61 ifeq ($(OFFICIAL_BUILD),0)
62 VENDORTAG = _$(VENDOR)
64 ifeq ($(OFFICIAL_BUILD),1)
68 ifeq ($(DEBUG_FLAG),default)
72 ifeq ($(DEBUG_FLAG),1)
90 ifeq ($(MONOLITHIC),0)
93 ifeq ($(MONOLITHIC),1)
97 __foldbardll___depname = \
98 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll
101 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
103 ifeq ($(BUILD),debug)
104 ifeq ($(DEBUG_FLAG),default)
105 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
108 ifeq ($(DEBUG_FLAG),1)
109 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
111 ifeq ($(USE_EXCEPTIONS),0)
112 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
115 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
117 ifeq ($(USE_THREADS),0)
118 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
121 __UNICODE_DEFINE_p_1 = --define _UNICODE
124 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
126 ifeq ($(USE_GDIPLUS),1)
127 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
129 ifeq ($(MONOLITHIC),1)
131 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
134 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
137 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
140 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
143 __UNICOWS_LIB_p = -lunicows
145 ifeq ($(USE_GDIPLUS),1)
146 __GDIPLUS_LIB_p = -lgdiplus
148 ifeq ($(MONOLITHIC),0)
150 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
152 ifeq ($(MONOLITHIC),0)
154 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
157 __foldbarlib___depname = \
158 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a
160 ifeq ($(BUILD),debug)
161 ifeq ($(DEBUG_INFO),default)
165 ifeq ($(BUILD),release)
166 ifeq ($(DEBUG_INFO),default)
170 ifeq ($(DEBUG_INFO),0)
173 ifeq ($(DEBUG_INFO),1)
176 ifeq ($(BUILD),debug)
179 ifeq ($(BUILD),release)
182 ifeq ($(USE_THREADS),0)
185 ifeq ($(USE_THREADS),1)
186 __THREADSFLAG = -mthreads
189 __RTTIFLAG = -fno-rtti
194 ifeq ($(USE_EXCEPTIONS),0)
195 __EXCEPTIONSFLAG = -fno-exceptions
197 ifeq ($(USE_EXCEPTIONS),1)
201 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
203 ifeq ($(BUILD),debug)
204 ifeq ($(DEBUG_FLAG),default)
205 __DEBUG_DEFINE_p = -D__WXDEBUG__
208 ifeq ($(DEBUG_FLAG),1)
209 __DEBUG_DEFINE_p = -D__WXDEBUG__
211 ifeq ($(USE_EXCEPTIONS),0)
212 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
215 __RTTI_DEFINE_p = -DwxNO_RTTI
217 ifeq ($(USE_THREADS),0)
218 __THREAD_DEFINE_p = -DwxNO_THREADS
221 __UNICODE_DEFINE_p = -D_UNICODE
224 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
226 ifeq ($(USE_GDIPLUS),1)
227 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
233 -if not exist $(OBJS) mkdir $(OBJS)
237 all: $(__foldbardll___depname) $(__foldbarlib___depname)
240 -if exist $(OBJS)\*.o del $(OBJS)\*.o
241 -if exist $(OBJS)\*.d del $(OBJS)\*.d
242 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll
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 -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
247 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll: $(FOLDBARDLL_OBJECTS) $(OBJS)\foldbardll_version_rc.o
248 $(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)
252 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a: $(FOLDBARLIB_OBJECTS)
254 ar rcu $@ $(FOLDBARLIB_OBJECTS)
258 $(OBJS)\foldbardll_dummy.o: ../../src/foldbar/../../../src/common/dummy.cpp
259 $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $(CPPDEPS) $<
261 $(OBJS)\foldbardll_version_rc.o: ../../src/foldbar/../../../src/msw/version.rc
262 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_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG)
264 $(OBJS)\foldbardll_captionbar.o: ../../src/foldbar/captionbar.cpp
265 $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $(CPPDEPS) $<
267 $(OBJS)\foldbardll_foldpanelbar.o: ../../src/foldbar/foldpanelbar.cpp
268 $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $(CPPDEPS) $<
270 $(OBJS)\foldbardll_foldpanelitem.o: ../../src/foldbar/foldpanelitem.cpp
271 $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $(CPPDEPS) $<
273 $(OBJS)\foldbarlib_dummy.o: ../../src/foldbar/../../../src/common/dummy.cpp
274 $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $(CPPDEPS) $<
276 $(OBJS)\foldbarlib_captionbar.o: ../../src/foldbar/captionbar.cpp
277 $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $(CPPDEPS) $<
279 $(OBJS)\foldbarlib_foldpanelbar.o: ../../src/foldbar/foldpanelbar.cpp
280 $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $(CPPDEPS) $<
282 $(OBJS)\foldbarlib_foldpanelitem.o: ../../src/foldbar/foldpanelitem.cpp
283 $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $(CPPDEPS) $<
288 # Dependencies tracking: