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