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