1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 PLOTDLL_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\plot\..\..\..\include -I$(SETUPHDIR) -W -Wall \
26 -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT \
27 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
30 $(OBJS)\plotdll_dummy.o \
31 $(OBJS)\plotdll_version_rc.o \
32 $(OBJS)\plotdll_plot.o
33 PLOTLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
34 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
35 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
36 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
37 -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) -W -Wall \
38 -I..\..\src\plot\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
39 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
41 $(OBJS)\plotlib_dummy.o \
42 $(OBJS)\plotlib_plot.o
44 ### Conditionally set variables: ###
46 ifeq ($(GCC_VERSION),2.95)
47 GCCFLAGS = -fvtable-thunks
55 ifeq ($(OFFICIAL_BUILD),0)
56 VENDORTAG = _$(VENDOR)
58 ifeq ($(OFFICIAL_BUILD),1)
62 ifeq ($(DEBUG_FLAG),default)
66 ifeq ($(DEBUG_FLAG),1)
84 ifeq ($(MONOLITHIC),0)
87 ifeq ($(MONOLITHIC),1)
91 __plotdll___depname = \
92 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll
95 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
98 ifeq ($(DEBUG_FLAG),default)
99 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
102 ifeq ($(DEBUG_FLAG),1)
103 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
105 ifeq ($(USE_EXCEPTIONS),0)
106 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
109 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
111 ifeq ($(USE_THREADS),0)
112 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
115 __UNICODE_DEFINE_p_1 = --define _UNICODE
117 ifeq ($(MONOLITHIC),1)
119 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
122 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
125 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
128 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
131 __UNICOWS_LIB_p = -lunicows
133 ifeq ($(MONOLITHIC),0)
135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
137 ifeq ($(MONOLITHIC),0)
139 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
142 __plotlib___depname = \
143 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a
145 ifeq ($(BUILD),debug)
146 ifeq ($(DEBUG_INFO),default)
150 ifeq ($(BUILD),release)
151 ifeq ($(DEBUG_INFO),default)
155 ifeq ($(DEBUG_INFO),0)
158 ifeq ($(DEBUG_INFO),1)
161 ifeq ($(BUILD),debug)
164 ifeq ($(BUILD),release)
167 ifeq ($(USE_THREADS),0)
170 ifeq ($(USE_THREADS),1)
171 __THREADSFLAG = -mthreads
174 __RTTIFLAG = -fno-rtti
179 ifeq ($(USE_EXCEPTIONS),0)
180 __EXCEPTIONSFLAG = -fno-exceptions
182 ifeq ($(USE_EXCEPTIONS),1)
186 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
188 ifeq ($(BUILD),debug)
189 ifeq ($(DEBUG_FLAG),default)
190 __DEBUG_DEFINE_p = -D__WXDEBUG__
193 ifeq ($(DEBUG_FLAG),1)
194 __DEBUG_DEFINE_p = -D__WXDEBUG__
196 ifeq ($(USE_EXCEPTIONS),0)
197 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
200 __RTTI_DEFINE_p = -DwxNO_RTTI
202 ifeq ($(USE_THREADS),0)
203 __THREAD_DEFINE_p = -DwxNO_THREADS
206 __UNICODE_DEFINE_p = -D_UNICODE
212 -if not exist $(OBJS) mkdir $(OBJS)
216 all: $(__plotdll___depname) $(__plotlib___depname)
219 -if exist $(OBJS)\*.o del $(OBJS)\*.o
220 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll
221 -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
222 -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
225 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll: $(PLOTDLL_OBJECTS) $(OBJS)\plotdll_version_rc.o
226 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
230 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a: $(PLOTLIB_OBJECTS)
232 ar rcu $@ $(PLOTLIB_OBJECTS)
236 $(OBJS)\plotdll_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp
237 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $<
239 $(OBJS)\plotdll_version_rc.o: ../../src/plot/../../../src/msw/version.rc
240 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/plot/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG)
242 $(OBJS)\plotdll_plot.o: ../../src/plot/plot.cpp
243 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $<
245 $(OBJS)\plotlib_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp
246 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $<
248 $(OBJS)\plotlib_plot.o: ../../src/plot/plot.cpp
249 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $<