]>
Commit | Line | Data |
---|---|---|
15e8daec VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
b14abf14 | 3 | # Bakefile 0.1.6 (http://bakefile.sourceforge.net) |
15e8daec VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../../build/msw/config.gcc |
15e8daec VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
b14abf14 | 16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4 |
15e8daec VS |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 19 | LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 VS |
22 | PLOTDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ |
23 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
b14abf14 | 24 | -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) -W -Wall \ |
9bfe7ad9 | 25 | -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT \ |
b14abf14 JS |
26 | $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \ |
27 | $(CPPFLAGS) $(CXXFLAGS) | |
15e8daec VS |
28 | PLOTDLL_OBJECTS = \ |
29 | $(OBJS)\plotdll_dummy.o \ | |
30 | $(OBJS)\plotdll_plot.o | |
9bfe7ad9 VS |
31 | PLOTLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \ |
32 | -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
b14abf14 | 33 | -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) -W -Wall \ |
9bfe7ad9 | 34 | -I..\..\src\plot\..\..\include $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \ |
b14abf14 | 35 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) |
15e8daec VS |
36 | PLOTLIB_OBJECTS = \ |
37 | $(OBJS)\plotlib_dummy.o \ | |
38 | $(OBJS)\plotlib_plot.o | |
39 | ||
40 | ### Conditionally set variables: ### | |
41 | ||
42 | ifeq ($(GCC_VERSION),2.95) | |
43 | GCCFLAGS = -fvtable-thunks | |
44 | endif | |
45 | ifeq ($(USE_GUI),0) | |
46 | PORTNAME = base | |
47 | endif | |
48 | ifeq ($(USE_GUI),1) | |
49 | PORTNAME = msw | |
50 | endif | |
51 | ifeq ($(OFFICIAL_BUILD),0) | |
52 | VENDORTAG = _$(VENDOR) | |
53 | endif | |
54 | ifeq ($(OFFICIAL_BUILD),1) | |
55 | VENDORTAG = | |
56 | endif | |
57 | ifeq ($(BUILD),debug) | |
58 | ifeq ($(DEBUG_FLAG),default) | |
59 | WXDEBUGFLAG = d | |
60 | endif | |
61 | endif | |
62 | ifeq ($(DEBUG_FLAG),1) | |
63 | WXDEBUGFLAG = d | |
64 | endif | |
15e8daec VS |
65 | ifeq ($(UNICODE),1) |
66 | WXUNICODEFLAG = u | |
67 | endif | |
68 | ifeq ($(WXUNIV),1) | |
69 | WXUNIVNAME = univ | |
70 | endif | |
b17c1746 DE |
71 | ifeq ($(SHARED),1) |
72 | WXDLLFLAG = dll | |
73 | endif | |
b14abf14 JS |
74 | ifeq ($(SHARED),0) |
75 | LIBTYPE_SUFFIX = lib | |
76 | endif | |
77 | ifeq ($(SHARED),1) | |
78 | LIBTYPE_SUFFIX = dll | |
79 | endif | |
dd65d8c8 RN |
80 | ifeq ($(MONOLITHIC),0) |
81 | EXTRALIBS_FOR_BASE = | |
82 | endif | |
83 | ifeq ($(MONOLITHIC),1) | |
84 | EXTRALIBS_FOR_BASE = | |
85 | endif | |
b17c1746 DE |
86 | ifeq ($(SHARED),1) |
87 | __plotdll___depname = \ | |
c33fae85 | 88 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll |
b17c1746 DE |
89 | endif |
90 | ifeq ($(MONOLITHIC),1) | |
91 | __WXLIB_MONO_p = \ | |
c33fae85 | 92 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
93 | endif |
94 | ifeq ($(USE_GUI),1) | |
9c2d002b | 95 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
96 | endif |
97 | ifeq ($(USE_GUI),1) | |
9c2d002b | 98 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
99 | endif |
100 | ifeq ($(USE_GUI),1) | |
9c2d002b | 101 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
102 | endif |
103 | ifeq ($(MSLU),1) | |
104 | __UNICOWS_LIB_p = -lunicows | |
105 | endif | |
106 | ifeq ($(MONOLITHIC),0) | |
107 | __WXLIB_CORE_p = \ | |
c33fae85 | 108 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
109 | endif |
110 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
111 | __WXLIB_BASE_p = \ |
112 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
113 | endif |
114 | ifeq ($(SHARED),0) | |
115 | __plotlib___depname = \ | |
c33fae85 | 116 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a |
b17c1746 | 117 | endif |
15e8daec VS |
118 | ifeq ($(BUILD),debug) |
119 | ifeq ($(DEBUG_INFO),default) | |
120 | __DEBUGINFO = -g | |
121 | endif | |
122 | endif | |
123 | ifeq ($(BUILD),release) | |
124 | ifeq ($(DEBUG_INFO),default) | |
125 | __DEBUGINFO = | |
126 | endif | |
127 | endif | |
128 | ifeq ($(DEBUG_INFO),0) | |
129 | __DEBUGINFO = | |
130 | endif | |
131 | ifeq ($(DEBUG_INFO),1) | |
132 | __DEBUGINFO = -g | |
133 | endif | |
134 | ifeq ($(BUILD),debug) | |
b17c1746 | 135 | __OPTIMIZEFLAG = -O0 |
15e8daec | 136 | endif |
b17c1746 DE |
137 | ifeq ($(BUILD),release) |
138 | __OPTIMIZEFLAG = -O2 | |
15e8daec | 139 | endif |
a4ad36cd VS |
140 | ifeq ($(USE_EXCEPTIONS),0) |
141 | __EXCEPTIONSFLAG = -fno-rtti | |
142 | endif | |
143 | ifeq ($(USE_EXCEPTIONS),1) | |
144 | __EXCEPTIONSFLAG = | |
145 | endif | |
146 | ifeq ($(USE_EXCEPTIONS),0) | |
147 | __EXCEPTIONSFLAG_0 = -fno-exceptions | |
148 | endif | |
149 | ifeq ($(USE_EXCEPTIONS),1) | |
150 | __EXCEPTIONSFLAG_0 = | |
151 | endif | |
b17c1746 DE |
152 | ifeq ($(WXUNIV),1) |
153 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
15e8daec VS |
154 | endif |
155 | ifeq ($(BUILD),debug) | |
b17c1746 DE |
156 | ifeq ($(DEBUG_FLAG),default) |
157 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec | 158 | endif |
b17c1746 DE |
159 | endif |
160 | ifeq ($(DEBUG_FLAG),1) | |
161 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
15e8daec VS |
162 | endif |
163 | ifeq ($(UNICODE),1) | |
ec08d395 | 164 | __UNICODE_DEFINE_p = -D_UNICODE |
15e8daec | 165 | endif |
15e8daec VS |
166 | |
167 | ||
168 | all: $(OBJS) | |
169 | $(OBJS): | |
170 | -if not exist $(OBJS) mkdir $(OBJS) | |
171 | ||
172 | ### Targets: ### | |
173 | ||
174 | all: $(__plotdll___depname) $(__plotlib___depname) | |
175 | ||
15e8daec VS |
176 | clean: |
177 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
c33fae85 RN |
178 | -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 |
179 | -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 | |
180 | -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 | |
15e8daec VS |
181 | |
182 | ifeq ($(SHARED),1) | |
c33fae85 | 183 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot_gcc$(VENDORTAG).dll: $(PLOTDLL_OBJECTS) |
b14abf14 | 184 | $(CXX) -shared -fPIC -o $@ $(PLOTDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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) |
15e8daec VS |
185 | endif |
186 | ||
187 | ifeq ($(SHARED),0) | |
c33fae85 | 188 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_plot.a: $(PLOTLIB_OBJECTS) |
15e8daec VS |
189 | if exist $@ del $@ |
190 | ar rcu $@ $(PLOTLIB_OBJECTS) | |
191 | ranlib $@ | |
192 | endif | |
193 | ||
b17c1746 DE |
194 | $(OBJS)\plotdll_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp |
195 | $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $< | |
196 | ||
197 | $(OBJS)\plotdll_plot.o: ../../src/plot/plot.cpp | |
198 | $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $< | |
199 | ||
200 | $(OBJS)\plotlib_dummy.o: ../../src/plot/../../../src/msw/dummy.cpp | |
201 | $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $< | |
202 | ||
203 | $(OBJS)\plotlib_plot.o: ../../src/plot/plot.cpp | |
204 | $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $< | |
205 | ||
15e8daec | 206 | .PHONY: all clean |
b14abf14 | 207 |