1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (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 # -------------------------------------------------------------------------
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 PLOTDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
18 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
19 $(__UNICODE_DEFINE_p) -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) \
20 -Wall -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT \
21 $(CXXFLAGS) $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0)
23 $(OBJS)\plotdll_dummy.o \
24 $(OBJS)\plotdll_plot.o
25 PLOTLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
26 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
27 $(__UNICODE_DEFINE_p) -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) \
28 -Wall -I..\..\src\plot\..\..\include $(CXXFLAGS) $(__EXCEPTIONSFLAG) \
31 $(OBJS)\plotlib_dummy.o \
32 $(OBJS)\plotlib_plot.o
34 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
36 ### Conditionally set variables: ###
38 ifeq ($(GCC_VERSION),2.95)
39 GCCFLAGS = -fvtable-thunks
42 LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_lib$(CFG)
45 LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_dll$(CFG)
53 ifeq ($(OFFICIAL_BUILD),0)
54 VENDORTAG = _$(VENDOR)
56 ifeq ($(OFFICIAL_BUILD),1)
60 ifeq ($(DEBUG_FLAG),default)
64 ifeq ($(DEBUG_FLAG),1)
77 ifeq ($(DEBUG_INFO),default)
81 ifeq ($(BUILD),release)
82 ifeq ($(DEBUG_INFO),default)
86 ifeq ($(DEBUG_INFO),0)
89 ifeq ($(DEBUG_INFO),1)
93 ifeq ($(DEBUG_FLAG),default)
94 __DEBUG_DEFINE_p = -D__WXDEBUG__
97 ifeq ($(DEBUG_FLAG),1)
98 __DEBUG_DEFINE_p = -D__WXDEBUG__
100 ifeq ($(USE_EXCEPTIONS),0)
101 __EXCEPTIONSFLAG = -fno-rtti
103 ifeq ($(USE_EXCEPTIONS),1)
106 ifeq ($(USE_EXCEPTIONS),0)
107 __EXCEPTIONSFLAG_0 = -fno-exceptions
109 ifeq ($(USE_EXCEPTIONS),1)
113 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
116 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
119 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
121 ifeq ($(BUILD),debug)
124 ifeq ($(BUILD),release)
128 __UNICODE_DEFINE_p = -D_UNICODE
131 __UNICOWS_LIB_p = -lunicows
133 ifeq ($(MONOLITHIC),0)
134 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
136 ifeq ($(MONOLITHIC),0)
138 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
140 ifeq ($(MONOLITHIC),1)
142 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
145 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
148 __plotdll___depname = \
149 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_gcc$(VENDORTAG).dll
152 __plotlib___depname = \
153 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a
159 -if not exist $(OBJS) mkdir $(OBJS)
163 all: $(__plotdll___depname) $(__plotlib___depname)
165 $(OBJS)\plotdll_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp
166 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $<
168 $(OBJS)\plotdll_plot.o: ../../src/plot/plot.cpp
169 $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $<
171 $(OBJS)\plotlib_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp
172 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $<
174 $(OBJS)\plotlib_plot.o: ../../src/plot/plot.cpp
175 $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $<
178 -if exist $(OBJS)\*.o del $(OBJS)\*.o
179 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_gcc$(VENDORTAG).dll
180 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a
181 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a
184 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_gcc$(VENDORTAG).dll: $(PLOTDLL_OBJECTS)
185 $(CXX) -shared -o $@ $(PLOTDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
189 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a: $(PLOTLIB_OBJECTS)
191 ar rcu $@ $(PLOTLIB_OBJECTS)