]>
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 | ||
b17c1746 DE |
15 | OBJS = \ |
16 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
17 | SETUPHDIR = \ | |
18 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 19 | GIZMOSDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
3f55f5b8 | 20 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
75a0a7b7 | 21 | $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \ |
ec08d395 | 22 | -Wall -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \ |
9bfe7ad9 | 23 | $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) |
3f55f5b8 VS |
24 | GIZMOSDLL_OBJECTS = \ |
25 | $(OBJS)\gizmosdll_dummy.o \ | |
26 | $(OBJS)\gizmosdll_dynamicsash.o \ | |
27 | $(OBJS)\gizmosdll_editlbox.o \ | |
28 | $(OBJS)\gizmosdll_ledctrl.o \ | |
29 | $(OBJS)\gizmosdll_multicell.o \ | |
30 | $(OBJS)\gizmosdll_splittree.o \ | |
c4839ccf JS |
31 | $(OBJS)\gizmosdll_statpict.o \ |
32 | $(OBJS)\gizmosdll_treelistctrl.o | |
9bfe7ad9 | 33 | GIZMOSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
3f55f5b8 | 34 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
75a0a7b7 | 35 | $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \ |
9bfe7ad9 VS |
36 | -Wall -I..\..\src\gizmos\..\..\include $(__EXCEPTIONSFLAG) \ |
37 | $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS) | |
3f55f5b8 VS |
38 | GIZMOSLIB_OBJECTS = \ |
39 | $(OBJS)\gizmoslib_dummy.o \ | |
40 | $(OBJS)\gizmoslib_dynamicsash.o \ | |
41 | $(OBJS)\gizmoslib_editlbox.o \ | |
42 | $(OBJS)\gizmoslib_ledctrl.o \ | |
43 | $(OBJS)\gizmoslib_multicell.o \ | |
44 | $(OBJS)\gizmoslib_splittree.o \ | |
c4839ccf JS |
45 | $(OBJS)\gizmoslib_statpict.o \ |
46 | $(OBJS)\gizmoslib_treelistctrl.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 | |
82 | ifeq ($(SHARED),1) | |
83 | __gizmosdll___depname = \ | |
c4839ccf | 84 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll |
b17c1746 DE |
85 | endif |
86 | ifeq ($(MONOLITHIC),1) | |
87 | __WXLIB_MONO_p = \ | |
88 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
89 | endif | |
90 | ifeq ($(USE_GUI),1) | |
91 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
92 | endif | |
93 | ifeq ($(USE_GUI),1) | |
94 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
95 | endif | |
96 | ifeq ($(USE_GUI),1) | |
97 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
98 | endif | |
99 | ifeq ($(MSLU),1) | |
100 | __UNICOWS_LIB_p = -lunicows | |
101 | endif | |
102 | ifeq ($(MONOLITHIC),0) | |
103 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
104 | endif | |
105 | ifeq ($(MONOLITHIC),0) | |
106 | __WXLIB_CORE_p = \ | |
107 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
108 | endif | |
109 | ifeq ($(SHARED),0) | |
110 | __gizmoslib___depname = \ | |
111 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a | |
112 | endif | |
250700e4 | 113 | ifeq ($(BUILD),debug) |
3f55f5b8 VS |
114 | ifeq ($(DEBUG_INFO),default) |
115 | __DEBUGINFO = -g | |
116 | endif | |
250700e4 RD |
117 | endif |
118 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
119 | ifeq ($(DEBUG_INFO),default) |
120 | __DEBUGINFO = | |
121 | endif | |
122 | endif | |
123 | ifeq ($(DEBUG_INFO),0) | |
124 | __DEBUGINFO = | |
125 | endif | |
126 | ifeq ($(DEBUG_INFO),1) | |
127 | __DEBUGINFO = -g | |
250700e4 RD |
128 | endif |
129 | ifeq ($(BUILD),debug) | |
b17c1746 | 130 | __OPTIMIZEFLAG = -O0 |
3f55f5b8 | 131 | endif |
b17c1746 DE |
132 | ifeq ($(BUILD),release) |
133 | __OPTIMIZEFLAG = -O2 | |
250700e4 | 134 | endif |
a4ad36cd VS |
135 | ifeq ($(USE_EXCEPTIONS),0) |
136 | __EXCEPTIONSFLAG = -fno-rtti | |
137 | endif | |
138 | ifeq ($(USE_EXCEPTIONS),1) | |
139 | __EXCEPTIONSFLAG = | |
140 | endif | |
141 | ifeq ($(USE_EXCEPTIONS),0) | |
142 | __EXCEPTIONSFLAG_0 = -fno-exceptions | |
143 | endif | |
144 | ifeq ($(USE_EXCEPTIONS),1) | |
145 | __EXCEPTIONSFLAG_0 = | |
146 | endif | |
b17c1746 DE |
147 | ifeq ($(WXUNIV),1) |
148 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
3f55f5b8 | 149 | endif |
250700e4 | 150 | ifeq ($(BUILD),debug) |
b17c1746 DE |
151 | ifeq ($(DEBUG_FLAG),default) |
152 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 | 153 | endif |
b17c1746 DE |
154 | endif |
155 | ifeq ($(DEBUG_FLAG),1) | |
156 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 RD |
157 | endif |
158 | ifeq ($(UNICODE),1) | |
ec08d395 | 159 | __UNICODE_DEFINE_p = -D_UNICODE |
250700e4 | 160 | endif |
b17c1746 DE |
161 | ifeq ($(SHARED),0) |
162 | LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_lib$(CFG) | |
250700e4 RD |
163 | endif |
164 | ifeq ($(SHARED),1) | |
b17c1746 | 165 | LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_dll$(CFG) |
250700e4 RD |
166 | endif |
167 | ||
168 | ||
169 | all: $(OBJS) | |
170 | $(OBJS): | |
171 | -if not exist $(OBJS) mkdir $(OBJS) | |
172 | ||
173 | ### Targets: ### | |
174 | ||
175 | all: $(__gizmosdll___depname) $(__gizmoslib___depname) | |
176 | ||
b17c1746 DE |
177 | clean: |
178 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
c4839ccf | 179 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll |
b17c1746 DE |
180 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a |
181 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a | |
182 | ||
183 | ifeq ($(SHARED),1) | |
c4839ccf | 184 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS) |
b92ca8cf | 185 | $(CXX) -shared -o $@ $(GIZMOSDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__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 |
186 | endif |
187 | ||
188 | ifeq ($(SHARED),0) | |
189 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a: $(GIZMOSLIB_OBJECTS) | |
190 | if exist $@ del $@ | |
191 | ar rcu $@ $(GIZMOSLIB_OBJECTS) | |
192 | ranlib $@ | |
193 | endif | |
194 | ||
1c3a6972 | 195 | $(OBJS)\gizmosdll_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp |
250700e4 RD |
196 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
197 | ||
1c3a6972 | 198 | $(OBJS)\gizmosdll_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp |
250700e4 RD |
199 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
200 | ||
1c3a6972 | 201 | $(OBJS)\gizmosdll_editlbox.o: ../../src/gizmos/editlbox.cpp |
250700e4 RD |
202 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
203 | ||
1c3a6972 | 204 | $(OBJS)\gizmosdll_ledctrl.o: ../../src/gizmos/ledctrl.cpp |
250700e4 RD |
205 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
206 | ||
1c3a6972 | 207 | $(OBJS)\gizmosdll_multicell.o: ../../src/gizmos/multicell.cpp |
250700e4 RD |
208 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
209 | ||
1c3a6972 | 210 | $(OBJS)\gizmosdll_splittree.o: ../../src/gizmos/splittree.cpp |
250700e4 RD |
211 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
212 | ||
1c3a6972 | 213 | $(OBJS)\gizmosdll_statpict.o: ../../src/gizmos/statpict.cpp |
250700e4 RD |
214 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
215 | ||
c4839ccf JS |
216 | $(OBJS)\gizmosdll_treelistctrl.o: ../../src/gizmos/treelistctrl.cpp |
217 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< | |
218 | ||
1c3a6972 | 219 | $(OBJS)\gizmoslib_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp |
250700e4 RD |
220 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
221 | ||
1c3a6972 | 222 | $(OBJS)\gizmoslib_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp |
250700e4 RD |
223 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
224 | ||
1c3a6972 | 225 | $(OBJS)\gizmoslib_editlbox.o: ../../src/gizmos/editlbox.cpp |
250700e4 RD |
226 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
227 | ||
1c3a6972 | 228 | $(OBJS)\gizmoslib_ledctrl.o: ../../src/gizmos/ledctrl.cpp |
250700e4 RD |
229 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
230 | ||
1c3a6972 | 231 | $(OBJS)\gizmoslib_multicell.o: ../../src/gizmos/multicell.cpp |
250700e4 RD |
232 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
233 | ||
1c3a6972 | 234 | $(OBJS)\gizmoslib_splittree.o: ../../src/gizmos/splittree.cpp |
250700e4 RD |
235 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
236 | ||
1c3a6972 | 237 | $(OBJS)\gizmoslib_statpict.o: ../../src/gizmos/statpict.cpp |
250700e4 RD |
238 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
239 | ||
c4839ccf JS |
240 | $(OBJS)\gizmoslib_treelistctrl.o: ../../src/gizmos/treelistctrl.cpp |
241 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< | |
242 | ||
250700e4 | 243 | .PHONY: all clean |