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\plot\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 PLOTDLL_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\plot\..\..\..\include -W \
28 -Wall -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT \
29 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
32 $(OBJS)\plotdll_dummy.o \
33 $(OBJS)\plotdll_version_rc.o \
34 $(OBJS)\plotdll_plot.o
35 PLOTLIB_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) $(__MSLU_DEFINE_p) \
39 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\plot\..\..\..\include -W \
40 -Wall -I..\..\src\plot\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
41 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
43 $(OBJS)\plotlib_dummy.o \
44 $(OBJS)\plotlib_plot.o
46 ### Conditionally set variables: ###
48 ifeq ($(GCC_VERSION),2.95)
49 GCCFLAGS = -fvtable-thunks
57 ifeq ($(OFFICIAL_BUILD),0)
58 VENDORTAG = _$(VENDOR)
60 ifeq ($(OFFICIAL_BUILD),1)
64 ifeq ($(DEBUG_FLAG),default)
68 ifeq ($(DEBUG_FLAG),1)
86 ifeq ($(MONOLITHIC),0)
89 ifeq ($(MONOLITHIC),1)
93 __plotdll___depname = \
94 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll
97 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
100 ifeq ($(DEBUG_FLAG),default)
101 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
104 ifeq ($(DEBUG_FLAG),1)
105 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
107 ifeq ($(USE_EXCEPTIONS),0)
108 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
111 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
113 ifeq ($(USE_THREADS),0)
114 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
117 __UNICODE_DEFINE_p_1 = --define _UNICODE
120 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
122 ifeq ($(USE_GDIPLUS),1)
123 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
125 ifeq ($(MONOLITHIC),1)
127 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
130 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
133 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
136 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
139 __UNICOWS_LIB_p = -lunicows
141 ifeq ($(USE_GDIPLUS),1)
142 __GDIPLUS_LIB_p = -lgdiplus
144 ifeq ($(MONOLITHIC),0)
146 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
148 ifeq ($(MONOLITHIC),0)
150 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
153 __plotlib___depname = \
154 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a
156 ifeq ($(BUILD),debug)
157 ifeq ($(DEBUG_INFO),default)
161 ifeq ($(BUILD),release)
162 ifeq ($(DEBUG_INFO),default)
166 ifeq ($(DEBUG_INFO),0)
169 ifeq ($(DEBUG_INFO),1)
172 ifeq ($(BUILD),debug)
175 ifeq ($(BUILD),release)
178 ifeq ($(USE_THREADS),0)
181 ifeq ($(USE_THREADS),1)
182 __THREADSFLAG = -mthreads
185 __RTTIFLAG = -fno-rtti
190 ifeq ($(USE_EXCEPTIONS),0)
191 __EXCEPTIONSFLAG = -fno-exceptions
193 ifeq ($(USE_EXCEPTIONS),1)
197 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
199 ifeq ($(BUILD),debug)
200 ifeq ($(DEBUG_FLAG),default)
201 __DEBUG_DEFINE_p = -D__WXDEBUG__
204 ifeq ($(DEBUG_FLAG),1)
205 __DEBUG_DEFINE_p = -D__WXDEBUG__
207 ifeq ($(USE_EXCEPTIONS),0)
208 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
211 __RTTI_DEFINE_p = -DwxNO_RTTI
213 ifeq ($(USE_THREADS),0)
214 __THREAD_DEFINE_p = -DwxNO_THREADS
217 __UNICODE_DEFINE_p = -D_UNICODE
220 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
222 ifeq ($(USE_GDIPLUS),1)
223 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
229 -if not exist $(OBJS) mkdir $(OBJS)
233 all: $(__plotdll___depname) $(__plotlib___depname)
236 -if exist $(OBJS)\*.o del $(OBJS)\*.o
237 -if exist $(OBJS)\*.d del $(OBJS)\*.d
238 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll
239 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a
240 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a
243 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll: $(PLOTDLL_OBJECTS) $(OBJS)\plotdll_version_rc.o
244 $(CXX) -shared -fPIC -o $@ $(PLOTDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.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 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a: $(PLOTLIB_OBJECTS)
250 ar rcu $@ $(PLOTLIB_OBJECTS)
254 $(OBJS)\plotdll_dummy.o: ../../src/plot/../../../src/common/dummy.cpp
255 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $(CPPDEPS) $<
257 $(OBJS)\plotdll_version_rc.o: ../../src/plot/../../../src/msw/version.rc
258 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/plot/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG)
260 $(OBJS)\plotdll_plot.o: ../../src/plot/plot.cpp
261 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $(CPPDEPS) $<
263 $(OBJS)\plotlib_dummy.o: ../../src/plot/../../../src/common/dummy.cpp
264 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $(CPPDEPS) $<
266 $(OBJS)\plotlib_plot.o: ../../src/plot/plot.cpp
267 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $(CPPDEPS) $<
272 # Dependencies tracking: