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