]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/gizmos/makefile.gcc
0d884fedf80b05496f114fce35b7467ee260dec3
[wxWidgets.git] / contrib / build / gizmos / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (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 OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17 SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 GIZMOSDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
22 -Wall -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \
23 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
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 \
31 $(OBJS)\gizmosdll_statpict.o \
32 $(OBJS)\gizmosdll_treelistctrl.o
33 GIZMOSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
34 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
35 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
36 -Wall -I..\..\src\gizmos\..\..\include $(__EXCEPTIONSFLAG) \
37 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
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 \
45 $(OBJS)\gizmoslib_statpict.o \
46 $(OBJS)\gizmoslib_treelistctrl.o
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)
66 ifeq ($(DEBUG_FLAG),default)
67 WXDEBUGFLAG = d
68 endif
69 endif
70 ifeq ($(DEBUG_FLAG),1)
71 WXDEBUGFLAG = d
72 endif
73 ifeq ($(UNICODE),1)
74 WXUNICODEFLAG = u
75 endif
76 ifeq ($(WXUNIV),1)
77 WXUNIVNAME = univ
78 endif
79 ifeq ($(SHARED),1)
80 WXDLLFLAG = dll
81 endif
82 ifeq ($(SHARED),1)
83 __gizmosdll___depname = \
84 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll
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
113 ifeq ($(BUILD),debug)
114 ifeq ($(DEBUG_INFO),default)
115 __DEBUGINFO = -g
116 endif
117 endif
118 ifeq ($(BUILD),release)
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
128 endif
129 ifeq ($(BUILD),debug)
130 __OPTIMIZEFLAG = -O0
131 endif
132 ifeq ($(BUILD),release)
133 __OPTIMIZEFLAG = -O2
134 endif
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
147 ifeq ($(WXUNIV),1)
148 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
149 endif
150 ifeq ($(BUILD),debug)
151 ifeq ($(DEBUG_FLAG),default)
152 __DEBUG_DEFINE_p = -D__WXDEBUG__
153 endif
154 endif
155 ifeq ($(DEBUG_FLAG),1)
156 __DEBUG_DEFINE_p = -D__WXDEBUG__
157 endif
158 ifeq ($(UNICODE),1)
159 __UNICODE_DEFINE_p = -D_UNICODE
160 endif
161 ifeq ($(SHARED),0)
162 LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_lib$(CFG)
163 endif
164 ifeq ($(SHARED),1)
165 LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_dll$(CFG)
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
177 clean:
178 -if exist $(OBJS)\*.o del $(OBJS)\*.o
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
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)
184 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS)
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)
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
195 $(OBJS)\gizmosdll_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
196 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
197
198 $(OBJS)\gizmosdll_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
199 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
200
201 $(OBJS)\gizmosdll_editlbox.o: ../../src/gizmos/editlbox.cpp
202 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
203
204 $(OBJS)\gizmosdll_ledctrl.o: ../../src/gizmos/ledctrl.cpp
205 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
206
207 $(OBJS)\gizmosdll_multicell.o: ../../src/gizmos/multicell.cpp
208 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
209
210 $(OBJS)\gizmosdll_splittree.o: ../../src/gizmos/splittree.cpp
211 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
212
213 $(OBJS)\gizmosdll_statpict.o: ../../src/gizmos/statpict.cpp
214 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
215
216 $(OBJS)\gizmosdll_treelistctrl.o: ../../src/gizmos/treelistctrl.cpp
217 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
218
219 $(OBJS)\gizmoslib_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
220 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
221
222 $(OBJS)\gizmoslib_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
223 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
224
225 $(OBJS)\gizmoslib_editlbox.o: ../../src/gizmos/editlbox.cpp
226 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
227
228 $(OBJS)\gizmoslib_ledctrl.o: ../../src/gizmos/ledctrl.cpp
229 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
230
231 $(OBJS)\gizmoslib_multicell.o: ../../src/gizmos/multicell.cpp
232 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
233
234 $(OBJS)\gizmoslib_splittree.o: ../../src/gizmos/splittree.cpp
235 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
236
237 $(OBJS)\gizmoslib_statpict.o: ../../src/gizmos/statpict.cpp
238 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
239
240 $(OBJS)\gizmoslib_treelistctrl.o: ../../src/gizmos/treelistctrl.cpp
241 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
242
243 .PHONY: all clean