]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/gizmos/makefile.gcc
overseeing the obvious, there is already a perfect scroll call for HIView...
[wxWidgets.git] / contrib / build / gizmos / makefile.gcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
c3255f5f 3# Bakefile 0.1.3 (http://bakefile.sourceforge.net)
250700e4
RD
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../../build/msw/config.gcc
250700e4
RD
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
b17c1746
DE
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 19GIZMOSDLL_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
24GIZMOSDLL_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
9bfe7ad9 32GIZMOSLIB_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
37GIZMOSLIB_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
250700e4
RD
45
46### Conditionally set variables: ###
47
48ifeq ($(GCC_VERSION),2.95)
49GCCFLAGS = -fvtable-thunks
50endif
51ifeq ($(USE_GUI),0)
52PORTNAME = base
53endif
54ifeq ($(USE_GUI),1)
55PORTNAME = msw
56endif
57ifeq ($(OFFICIAL_BUILD),0)
58VENDORTAG = _$(VENDOR)
59endif
60ifeq ($(OFFICIAL_BUILD),1)
61VENDORTAG =
62endif
63ifeq ($(BUILD),debug)
3f55f5b8
VS
64ifeq ($(DEBUG_FLAG),default)
65WXDEBUGFLAG = d
66endif
67endif
68ifeq ($(DEBUG_FLAG),1)
250700e4
RD
69WXDEBUGFLAG = d
70endif
250700e4
RD
71ifeq ($(UNICODE),1)
72WXUNICODEFLAG = u
73endif
74ifeq ($(WXUNIV),1)
75WXUNIVNAME = univ
76endif
b17c1746
DE
77ifeq ($(SHARED),1)
78WXDLLFLAG = dll
79endif
80ifeq ($(SHARED),1)
81__gizmosdll___depname = \
82 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos_gcc$(VENDORTAG).dll
83endif
84ifeq ($(MONOLITHIC),1)
85__WXLIB_MONO_p = \
86 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
87endif
88ifeq ($(USE_GUI),1)
89__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
90endif
91ifeq ($(USE_GUI),1)
92__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
93endif
94ifeq ($(USE_GUI),1)
95__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
96endif
97ifeq ($(MSLU),1)
98__UNICOWS_LIB_p = -lunicows
99endif
100ifeq ($(MONOLITHIC),0)
101__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
102endif
103ifeq ($(MONOLITHIC),0)
104__WXLIB_CORE_p = \
105 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
106endif
107ifeq ($(SHARED),0)
108__gizmoslib___depname = \
109 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_gizmos.a
110endif
250700e4 111ifeq ($(BUILD),debug)
3f55f5b8
VS
112ifeq ($(DEBUG_INFO),default)
113__DEBUGINFO = -g
114endif
250700e4
RD
115endif
116ifeq ($(BUILD),release)
3f55f5b8
VS
117ifeq ($(DEBUG_INFO),default)
118__DEBUGINFO =
119endif
120endif
121ifeq ($(DEBUG_INFO),0)
122__DEBUGINFO =
123endif
124ifeq ($(DEBUG_INFO),1)
125__DEBUGINFO = -g
250700e4
RD
126endif
127ifeq ($(BUILD),debug)
b17c1746 128__OPTIMIZEFLAG = -O0
3f55f5b8 129endif
b17c1746
DE
130ifeq ($(BUILD),release)
131__OPTIMIZEFLAG = -O2
250700e4 132endif
a4ad36cd
VS
133ifeq ($(USE_EXCEPTIONS),0)
134__EXCEPTIONSFLAG = -fno-rtti
135endif
136ifeq ($(USE_EXCEPTIONS),1)
137__EXCEPTIONSFLAG =
138endif
139ifeq ($(USE_EXCEPTIONS),0)
140__EXCEPTIONSFLAG_0 = -fno-exceptions
141endif
142ifeq ($(USE_EXCEPTIONS),1)
143__EXCEPTIONSFLAG_0 =
144endif
b17c1746
DE
145ifeq ($(WXUNIV),1)
146__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
3f55f5b8 147endif
250700e4 148ifeq ($(BUILD),debug)
b17c1746
DE
149ifeq ($(DEBUG_FLAG),default)
150__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4 151endif
b17c1746
DE
152endif
153ifeq ($(DEBUG_FLAG),1)
154__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4
RD
155endif
156ifeq ($(UNICODE),1)
ec08d395 157__UNICODE_DEFINE_p = -D_UNICODE
250700e4 158endif
b17c1746
DE
159ifeq ($(SHARED),0)
160LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_lib$(CFG)
250700e4
RD
161endif
162ifeq ($(SHARED),1)
b17c1746 163LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_dll$(CFG)
250700e4
RD
164endif
165
166
167all: $(OBJS)
168$(OBJS):
169 -if not exist $(OBJS) mkdir $(OBJS)
170
171### Targets: ###
172
173all: $(__gizmosdll___depname) $(__gizmoslib___depname)
174
b17c1746
DE
175clean:
176 -if exist $(OBJS)\*.o del $(OBJS)\*.o
177 -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
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
181ifeq ($(SHARED),1)
182$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(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
184endif
185
186ifeq ($(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 $@
191endif
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