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