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