]>
Commit | Line | Data |
---|---|---|
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 | ||
7 | include ../../../build/msw/config.gcc | |
8 | ||
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
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) \ | |
19 | $(__UNICODE_DEFINE_p) -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) \ | |
20 | -I..\..\src\plot\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_PLOT $(CXXFLAGS) | |
21 | PLOTDLL_OBJECTS = \ | |
22 | $(OBJS)\plotdll_dummy.o \ | |
23 | $(OBJS)\plotdll_plot.o | |
24 | PLOTLIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ | |
25 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ | |
26 | $(__UNICODE_DEFINE_p) -I..\..\src\plot\..\..\..\include -I$(SETUPHDIR) \ | |
27 | -I..\..\src\plot\..\..\include $(CXXFLAGS) | |
28 | PLOTLIB_OBJECTS = \ | |
29 | $(OBJS)\plotlib_dummy.o \ | |
30 | $(OBJS)\plotlib_plot.o | |
31 | SETUPHDIR = \ | |
32 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
33 | ||
34 | ### Conditionally set variables: ### | |
35 | ||
36 | ifeq ($(GCC_VERSION),2.95) | |
37 | GCCFLAGS = -fvtable-thunks | |
38 | endif | |
39 | ifeq ($(SHARED),0) | |
40 | LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_lib$(CFG) | |
41 | endif | |
42 | ifeq ($(SHARED),1) | |
43 | LIBDIRNAME = ..\..\src\plot\..\..\..\lib\gcc_dll$(CFG) | |
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 | |
65 | ifeq ($(SHARED),1) | |
66 | WXDLLFLAG = dll | |
67 | endif | |
68 | ifeq ($(UNICODE),1) | |
69 | WXUNICODEFLAG = u | |
70 | endif | |
71 | ifeq ($(WXUNIV),1) | |
72 | WXUNIVNAME = univ | |
73 | endif | |
74 | ifeq ($(BUILD),debug) | |
75 | ifeq ($(DEBUG_INFO),default) | |
76 | __DEBUGINFO = -g | |
77 | endif | |
78 | endif | |
79 | ifeq ($(BUILD),release) | |
80 | ifeq ($(DEBUG_INFO),default) | |
81 | __DEBUGINFO = | |
82 | endif | |
83 | endif | |
84 | ifeq ($(DEBUG_INFO),0) | |
85 | __DEBUGINFO = | |
86 | endif | |
87 | ifeq ($(DEBUG_INFO),1) | |
88 | __DEBUGINFO = -g | |
89 | endif | |
90 | ifeq ($(BUILD),debug) | |
91 | ifeq ($(DEBUG_FLAG),default) | |
92 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
93 | endif | |
94 | endif | |
95 | ifeq ($(DEBUG_FLAG),1) | |
96 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
97 | endif | |
98 | ifeq ($(USE_GUI),1) | |
99 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
100 | endif | |
101 | ifeq ($(USE_GUI),1) | |
102 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
103 | endif | |
104 | ifeq ($(USE_GUI),1) | |
105 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
106 | endif | |
107 | ifeq ($(BUILD),debug) | |
108 | __OPTIMIZEFLAG = -O0 | |
109 | endif | |
110 | ifeq ($(BUILD),release) | |
111 | __OPTIMIZEFLAG = -O2 | |
112 | endif | |
113 | ifeq ($(UNICODE),1) | |
114 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
115 | endif | |
116 | ifeq ($(MSLU),1) | |
117 | __UNICOWS_LIB_p = -lunicows | |
118 | endif | |
119 | ifeq ($(MONOLITHIC),0) | |
120 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
121 | endif | |
122 | ifeq ($(MONOLITHIC),0) | |
123 | __WXLIB_CORE_p = \ | |
124 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
125 | endif | |
126 | ifeq ($(MONOLITHIC),1) | |
127 | __WXLIB_MONO_p = \ | |
128 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
129 | endif | |
130 | ifeq ($(WXUNIV),1) | |
131 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
132 | endif | |
133 | ifeq ($(SHARED),1) | |
134 | __plotdll___depname = \ | |
135 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_gcc$(VENDORTAG).dll | |
136 | endif | |
137 | ifeq ($(SHARED),0) | |
138 | __plotlib___depname = \ | |
139 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a | |
140 | endif | |
141 | ||
142 | ||
143 | all: $(OBJS) | |
144 | $(OBJS): | |
145 | -if not exist $(OBJS) mkdir $(OBJS) | |
146 | ||
147 | ### Targets: ### | |
148 | ||
149 | all: $(__plotdll___depname) $(__plotlib___depname) | |
150 | ||
151 | $(OBJS)\plotdll_dummy.o: ../../src/plot\..\..\..\src\msw\dummy.cpp | |
152 | $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $< | |
153 | ||
154 | $(OBJS)\plotdll_plot.o: ../../src/plot\plot.cpp | |
155 | $(CXX) -c -o $@ $(PLOTDLL_CXXFLAGS) $< | |
156 | ||
157 | $(OBJS)\plotlib_dummy.o: ../../src/plot\..\..\..\src\msw\dummy.cpp | |
158 | $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $< | |
159 | ||
160 | $(OBJS)\plotlib_plot.o: ../../src/plot\plot.cpp | |
161 | $(CXX) -c -o $@ $(PLOTLIB_CXXFLAGS) $< | |
162 | ||
163 | clean: | |
164 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
165 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_gcc$(VENDORTAG).dll | |
166 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a | |
167 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a | |
168 | ||
169 | ifeq ($(SHARED),1) | |
170 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot_gcc$(VENDORTAG).dll: $(PLOTDLL_OBJECTS) | |
171 | $(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) | |
172 | endif | |
173 | ||
174 | ifeq ($(SHARED),0) | |
175 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_plot.a: $(PLOTLIB_OBJECTS) | |
176 | if exist $@ del $@ | |
177 | ar rcu $@ $(PLOTLIB_OBJECTS) | |
178 | ranlib $@ | |
179 | endif | |
180 | ||
181 | .PHONY: all clean |