]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/gizmos/makefile.gcc
disable the first top level parent, not the topmost top level parent
[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 GIZMOSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
33 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
34 $(__UNICODE_DEFINE_p) -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) \
35 -Wall -I..\..\src\gizmos\..\..\include $(__EXCEPTIONSFLAG) \
36 $(__EXCEPTIONSFLAG_0) $(CPPFLAGS) $(CXXFLAGS)
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 \
44 $(OBJS)\gizmoslib_statpict.o
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)
64 ifeq ($(DEBUG_FLAG),default)
65 WXDEBUGFLAG = d
66 endif
67 endif
68 ifeq ($(DEBUG_FLAG),1)
69 WXDEBUGFLAG = d
70 endif
71 ifeq ($(UNICODE),1)
72 WXUNICODEFLAG = u
73 endif
74 ifeq ($(WXUNIV),1)
75 WXUNIVNAME = univ
76 endif
77 ifeq ($(SHARED),1)
78 WXDLLFLAG = dll
79 endif
80 ifeq ($(SHARED),1)
81 __gizmosdll___depname = \
82 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll
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
111 ifeq ($(BUILD),debug)
112 ifeq ($(DEBUG_INFO),default)
113 __DEBUGINFO = -g
114 endif
115 endif
116 ifeq ($(BUILD),release)
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
126 endif
127 ifeq ($(BUILD),debug)
128 __OPTIMIZEFLAG = -O0
129 endif
130 ifeq ($(BUILD),release)
131 __OPTIMIZEFLAG = -O2
132 endif
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
145 ifeq ($(WXUNIV),1)
146 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
147 endif
148 ifeq ($(BUILD),debug)
149 ifeq ($(DEBUG_FLAG),default)
150 __DEBUG_DEFINE_p = -D__WXDEBUG__
151 endif
152 endif
153 ifeq ($(DEBUG_FLAG),1)
154 __DEBUG_DEFINE_p = -D__WXDEBUG__
155 endif
156 ifeq ($(UNICODE),1)
157 __UNICODE_DEFINE_p = -D_UNICODE
158 endif
159 ifeq ($(SHARED),0)
160 LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_lib$(CFG)
161 endif
162 ifeq ($(SHARED),1)
163 LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_dll$(CFG)
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 clean:
176 -if exist $(OBJS)\*.o del $(OBJS)\*.o
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
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)
182 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)252$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS)
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)
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
193 $(OBJS)\gizmosdll_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
194 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
195
196 $(OBJS)\gizmosdll_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
197 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
198
199 $(OBJS)\gizmosdll_editlbox.o: ../../src/gizmos/editlbox.cpp
200 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
201
202 $(OBJS)\gizmosdll_ledctrl.o: ../../src/gizmos/ledctrl.cpp
203 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
204
205 $(OBJS)\gizmosdll_multicell.o: ../../src/gizmos/multicell.cpp
206 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
207
208 $(OBJS)\gizmosdll_splittree.o: ../../src/gizmos/splittree.cpp
209 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
210
211 $(OBJS)\gizmosdll_statpict.o: ../../src/gizmos/statpict.cpp
212 $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $<
213
214 $(OBJS)\gizmoslib_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp
215 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
216
217 $(OBJS)\gizmoslib_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp
218 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
219
220 $(OBJS)\gizmoslib_editlbox.o: ../../src/gizmos/editlbox.cpp
221 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
222
223 $(OBJS)\gizmoslib_ledctrl.o: ../../src/gizmos/ledctrl.cpp
224 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
225
226 $(OBJS)\gizmoslib_multicell.o: ../../src/gizmos/multicell.cpp
227 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
228
229 $(OBJS)\gizmoslib_splittree.o: ../../src/gizmos/splittree.cpp
230 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
231
232 $(OBJS)\gizmoslib_statpict.o: ../../src/gizmos/statpict.cpp
233 $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $<
234
235 .PHONY: all clean