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