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