]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
c4839ccf | 3 | # Bakefile 0.1.4 (http://bakefile.sourceforge.net) |
250700e4 RD |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../../build/msw/config.gcc |
250700e4 RD |
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 |
b17c1746 DE |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
19 | SETUPHDIR = \ | |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 21 | GIZMOSDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
3f55f5b8 | 22 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
75a0a7b7 | 23 | $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \ |
ec08d395 | 24 | -Wall -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \ |
9bfe7ad9 | 25 | $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) |
3f55f5b8 VS |
26 | GIZMOSDLL_OBJECTS = \ |
27 | $(OBJS)\gizmosdll_dummy.o \ | |
28 | $(OBJS)\gizmosdll_dynamicsash.o \ | |
29 | $(OBJS)\gizmosdll_editlbox.o \ | |
30 | $(OBJS)\gizmosdll_ledctrl.o \ | |
31 | $(OBJS)\gizmosdll_multicell.o \ | |
32 | $(OBJS)\gizmosdll_splittree.o \ | |
8151e997 | 33 | $(OBJS)\gizmosdll_statpict.o |
9bfe7ad9 | 34 | GIZMOSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
3f55f5b8 | 35 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
75a0a7b7 | 36 | $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \ |
9bfe7ad9 VS |
37 | -Wall -I..\..\src\gizmos\..\..\include $(__EXCEPTIONSFLAG) \ |
38 | $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) | |
3f55f5b8 VS |
39 | GIZMOSLIB_OBJECTS = \ |
40 | $(OBJS)\gizmoslib_dummy.o \ | |
41 | $(OBJS)\gizmoslib_dynamicsash.o \ | |
42 | $(OBJS)\gizmoslib_editlbox.o \ | |
43 | $(OBJS)\gizmoslib_ledctrl.o \ | |
44 | $(OBJS)\gizmoslib_multicell.o \ | |
45 | $(OBJS)\gizmoslib_splittree.o \ | |
8151e997 | 46 | $(OBJS)\gizmoslib_statpict.o |
250700e4 RD |
47 | |
48 | ### Conditionally set variables: ### | |
49 | ||
50 | ifeq ($(GCC_VERSION),2.95) | |
51 | GCCFLAGS = -fvtable-thunks | |
52 | endif | |
53 | ifeq ($(USE_GUI),0) | |
54 | PORTNAME = base | |
55 | endif | |
56 | ifeq ($(USE_GUI),1) | |
57 | PORTNAME = msw | |
58 | endif | |
59 | ifeq ($(OFFICIAL_BUILD),0) | |
60 | VENDORTAG = _$(VENDOR) | |
61 | endif | |
62 | ifeq ($(OFFICIAL_BUILD),1) | |
63 | VENDORTAG = | |
64 | endif | |
65 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
66 | ifeq ($(DEBUG_FLAG),default) |
67 | WXDEBUGFLAG = d | |
68 | endif | |
69 | endif | |
70 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
71 | WXDEBUGFLAG = d |
72 | endif | |
250700e4 RD |
73 | ifeq ($(UNICODE),1) |
74 | WXUNICODEFLAG = u | |
75 | endif | |
76 | ifeq ($(WXUNIV),1) | |
77 | WXUNIVNAME = univ | |
78 | endif | |
b17c1746 DE |
79 | ifeq ($(SHARED),1) |
80 | WXDLLFLAG = dll | |
81 | endif | |
dd65d8c8 RN |
82 | ifeq ($(MONOLITHIC),0) |
83 | EXTRALIBS_FOR_BASE = | |
84 | endif | |
85 | ifeq ($(MONOLITHIC),1) | |
86 | EXTRALIBS_FOR_BASE = | |
87 | endif | |
b17c1746 DE |
88 | ifeq ($(SHARED),1) |
89 | __gizmosdll___depname = \ | |
c33fae85 | 90 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll |
b17c1746 DE |
91 | endif |
92 | ifeq ($(MONOLITHIC),1) | |
93 | __WXLIB_MONO_p = \ | |
c33fae85 | 94 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
95 | endif |
96 | ifeq ($(USE_GUI),1) | |
9c2d002b | 97 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
98 | endif |
99 | ifeq ($(USE_GUI),1) | |
9c2d002b | 100 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
101 | endif |
102 | ifeq ($(USE_GUI),1) | |
9c2d002b | 103 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
104 | endif |
105 | ifeq ($(MSLU),1) | |
106 | __UNICOWS_LIB_p = -lunicows | |
107 | endif | |
108 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
109 | __WXLIB_BASE_p = \ |
110 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
111 | endif |
112 | ifeq ($(MONOLITHIC),0) | |
113 | __WXLIB_CORE_p = \ | |
c33fae85 | 114 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
115 | endif |
116 | ifeq ($(SHARED),0) | |
117 | __gizmoslib___depname = \ | |
c33fae85 | 118 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a |
b17c1746 | 119 | endif |
250700e4 | 120 | ifeq ($(BUILD),debug) |
3f55f5b8 VS |
121 | ifeq ($(DEBUG_INFO),default) |
122 | __DEBUGINFO = -g | |
123 | endif | |
250700e4 RD |
124 | endif |
125 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
126 | ifeq ($(DEBUG_INFO),default) |
127 | __DEBUGINFO = | |
128 | endif | |
129 | endif | |
130 | ifeq ($(DEBUG_INFO),0) | |
131 | __DEBUGINFO = | |
132 | endif | |
133 | ifeq ($(DEBUG_INFO),1) | |
134 | __DEBUGINFO = -g | |
250700e4 RD |
135 | endif |
136 | ifeq ($(BUILD),debug) | |
b17c1746 | 137 | __OPTIMIZEFLAG = -O0 |
3f55f5b8 | 138 | endif |
b17c1746 DE |
139 | ifeq ($(BUILD),release) |
140 | __OPTIMIZEFLAG = -O2 | |
250700e4 | 141 | endif |
a4ad36cd VS |
142 | ifeq ($(USE_EXCEPTIONS),0) |
143 | __EXCEPTIONSFLAG = -fno-rtti | |
144 | endif | |
145 | ifeq ($(USE_EXCEPTIONS),1) | |
146 | __EXCEPTIONSFLAG = | |
147 | endif | |
148 | ifeq ($(USE_EXCEPTIONS),0) | |
149 | __EXCEPTIONSFLAG_0 = -fno-exceptions | |
150 | endif | |
151 | ifeq ($(USE_EXCEPTIONS),1) | |
152 | __EXCEPTIONSFLAG_0 = | |
153 | endif | |
b17c1746 DE |
154 | ifeq ($(WXUNIV),1) |
155 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
3f55f5b8 | 156 | endif |
250700e4 | 157 | ifeq ($(BUILD),debug) |
b17c1746 DE |
158 | ifeq ($(DEBUG_FLAG),default) |
159 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 | 160 | endif |
b17c1746 DE |
161 | endif |
162 | ifeq ($(DEBUG_FLAG),1) | |
163 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 RD |
164 | endif |
165 | ifeq ($(UNICODE),1) | |
ec08d395 | 166 | __UNICODE_DEFINE_p = -D_UNICODE |
250700e4 | 167 | endif |
b17c1746 DE |
168 | ifeq ($(SHARED),0) |
169 | LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_lib$(CFG) | |
250700e4 RD |
170 | endif |
171 | ifeq ($(SHARED),1) | |
b17c1746 | 172 | LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_dll$(CFG) |
250700e4 RD |
173 | endif |
174 | ||
175 | ||
176 | all: $(OBJS) | |
177 | $(OBJS): | |
178 | -if not exist $(OBJS) mkdir $(OBJS) | |
179 | ||
180 | ### Targets: ### | |
181 | ||
182 | all: $(__gizmosdll___depname) $(__gizmoslib___depname) | |
183 | ||
b17c1746 DE |
184 | clean: |
185 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
c33fae85 RN |
186 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll |
187 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a | |
188 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a | |
b17c1746 DE |
189 | |
190 | ifeq ($(SHARED),1) | |
c33fae85 | 191 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS) |
dd65d8c8 | 192 | $(CXX) -shared -o $@ $(GIZMOSDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.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_BASE_p) $(__WXLIB_CORE_p) |
b17c1746 DE |
193 | endif |
194 | ||
195 | ifeq ($(SHARED),0) | |
c33fae85 | 196 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a: $(GIZMOSLIB_OBJECTS) |
b17c1746 DE |
197 | if exist $@ del $@ |
198 | ar rcu $@ $(GIZMOSLIB_OBJECTS) | |
199 | ranlib $@ | |
200 | endif | |
201 | ||
1c3a6972 | 202 | $(OBJS)\gizmosdll_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp |
250700e4 RD |
203 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
204 | ||
1c3a6972 | 205 | $(OBJS)\gizmosdll_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp |
250700e4 RD |
206 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
207 | ||
1c3a6972 | 208 | $(OBJS)\gizmosdll_editlbox.o: ../../src/gizmos/editlbox.cpp |
250700e4 RD |
209 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
210 | ||
1c3a6972 | 211 | $(OBJS)\gizmosdll_ledctrl.o: ../../src/gizmos/ledctrl.cpp |
250700e4 RD |
212 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
213 | ||
1c3a6972 | 214 | $(OBJS)\gizmosdll_multicell.o: ../../src/gizmos/multicell.cpp |
250700e4 RD |
215 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
216 | ||
1c3a6972 | 217 | $(OBJS)\gizmosdll_splittree.o: ../../src/gizmos/splittree.cpp |
250700e4 RD |
218 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
219 | ||
1c3a6972 | 220 | $(OBJS)\gizmosdll_statpict.o: ../../src/gizmos/statpict.cpp |
250700e4 RD |
221 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
222 | ||
1c3a6972 | 223 | $(OBJS)\gizmoslib_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp |
250700e4 RD |
224 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
225 | ||
1c3a6972 | 226 | $(OBJS)\gizmoslib_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp |
250700e4 RD |
227 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
228 | ||
1c3a6972 | 229 | $(OBJS)\gizmoslib_editlbox.o: ../../src/gizmos/editlbox.cpp |
250700e4 RD |
230 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
231 | ||
1c3a6972 | 232 | $(OBJS)\gizmoslib_ledctrl.o: ../../src/gizmos/ledctrl.cpp |
250700e4 RD |
233 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
234 | ||
1c3a6972 | 235 | $(OBJS)\gizmoslib_multicell.o: ../../src/gizmos/multicell.cpp |
250700e4 RD |
236 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
237 | ||
1c3a6972 | 238 | $(OBJS)\gizmoslib_splittree.o: ../../src/gizmos/splittree.cpp |
250700e4 RD |
239 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
240 | ||
1c3a6972 | 241 | $(OBJS)\gizmoslib_statpict.o: ../../src/gizmos/statpict.cpp |
250700e4 RD |
242 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
243 | ||
250700e4 | 244 | .PHONY: all clean |