]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/foldbar/makefile.gcc
Rebake after MSLU and other changes
[wxWidgets.git] / contrib / build / foldbar / makefile.gcc
CommitLineData
f3ac19c2
WS
1# =========================================================================
2# This makefile was generated by
0d90d6ea 3# Bakefile 0.1.9 (http://bakefile.sourceforge.net)
f3ac19c2
WS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
4818141b 16WX_RELEASE_NODOT = 26
f3ac19c2
WS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = ..\..\src\foldbar\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
f3ac19c2
WS
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22FOLDBARDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
8c9f8f91
JS
26 -I..\..\src\foldbar\..\..\..\include -I$(SETUPHDIR) -W -Wall \
27 -I..\..\src\foldbar\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_FOLDBAR \
28 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
29 $(CXXFLAGS)
f3ac19c2
WS
30FOLDBARDLL_OBJECTS = \
31 $(OBJS)\foldbardll_dummy.o \
8c9f8f91 32 $(OBJS)\foldbardll_version_rc.o \
f3ac19c2
WS
33 $(OBJS)\foldbardll_captionbar.o \
34 $(OBJS)\foldbardll_foldpanelbar.o \
35 $(OBJS)\foldbardll_foldpanelitem.o
8c9f8f91
JS
36FOLDBARLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
37 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
38 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 39 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
8c9f8f91
JS
40 -I..\..\src\foldbar\..\..\..\include -I$(SETUPHDIR) -W -Wall \
41 -I..\..\src\foldbar\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
42 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
f3ac19c2
WS
43FOLDBARLIB_OBJECTS = \
44 $(OBJS)\foldbarlib_dummy.o \
45 $(OBJS)\foldbarlib_captionbar.o \
46 $(OBJS)\foldbarlib_foldpanelbar.o \
47 $(OBJS)\foldbarlib_foldpanelitem.o
48
49### Conditionally set variables: ###
50
51ifeq ($(GCC_VERSION),2.95)
52GCCFLAGS = -fvtable-thunks
53endif
54ifeq ($(USE_GUI),0)
55PORTNAME = base
56endif
57ifeq ($(USE_GUI),1)
58PORTNAME = msw
59endif
60ifeq ($(OFFICIAL_BUILD),0)
61VENDORTAG = _$(VENDOR)
62endif
63ifeq ($(OFFICIAL_BUILD),1)
64VENDORTAG =
65endif
66ifeq ($(BUILD),debug)
67ifeq ($(DEBUG_FLAG),default)
68WXDEBUGFLAG = d
69endif
70endif
71ifeq ($(DEBUG_FLAG),1)
72WXDEBUGFLAG = d
73endif
74ifeq ($(UNICODE),1)
75WXUNICODEFLAG = u
76endif
77ifeq ($(WXUNIV),1)
78WXUNIVNAME = univ
79endif
80ifeq ($(SHARED),1)
81WXDLLFLAG = dll
82endif
b14abf14
JS
83ifeq ($(SHARED),0)
84LIBTYPE_SUFFIX = lib
85endif
86ifeq ($(SHARED),1)
87LIBTYPE_SUFFIX = dll
88endif
dd65d8c8
RN
89ifeq ($(MONOLITHIC),0)
90EXTRALIBS_FOR_BASE =
91endif
92ifeq ($(MONOLITHIC),1)
93EXTRALIBS_FOR_BASE =
94endif
f3ac19c2
WS
95ifeq ($(SHARED),1)
96__foldbardll___depname = \
4818141b 97 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll
f3ac19c2 98endif
8c9f8f91
JS
99ifeq ($(WXUNIV),1)
100__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
101endif
102ifeq ($(BUILD),debug)
103ifeq ($(DEBUG_FLAG),default)
104__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
105endif
106endif
107ifeq ($(DEBUG_FLAG),1)
108__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
109endif
110ifeq ($(USE_EXCEPTIONS),0)
111__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
112endif
113ifeq ($(USE_RTTI),0)
114__RTTI_DEFINE_p_1 = --define wxNO_RTTI
115endif
116ifeq ($(USE_THREADS),0)
117__THREAD_DEFINE_p_1 = --define wxNO_THREADS
118endif
119ifeq ($(UNICODE),1)
120__UNICODE_DEFINE_p_1 = --define _UNICODE
121endif
2113bc77
MW
122ifeq ($(MSLU),1)
123__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
124endif
f3ac19c2
WS
125ifeq ($(MONOLITHIC),1)
126__WXLIB_MONO_p = \
c33fae85 127 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
f3ac19c2
WS
128endif
129ifeq ($(USE_GUI),1)
9c2d002b 130__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
f3ac19c2
WS
131endif
132ifeq ($(USE_GUI),1)
9c2d002b 133__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
f3ac19c2
WS
134endif
135ifeq ($(USE_GUI),1)
9c2d002b 136__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
f3ac19c2
WS
137endif
138ifeq ($(MSLU),1)
139__UNICOWS_LIB_p = -lunicows
140endif
141ifeq ($(MONOLITHIC),0)
142__WXLIB_CORE_p = \
c33fae85 143 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
f3ac19c2
WS
144endif
145ifeq ($(MONOLITHIC),0)
c33fae85
RN
146__WXLIB_BASE_p = \
147 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
f3ac19c2
WS
148endif
149ifeq ($(SHARED),0)
150__foldbarlib___depname = \
c33fae85 151 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a
f3ac19c2
WS
152endif
153ifeq ($(BUILD),debug)
154ifeq ($(DEBUG_INFO),default)
155__DEBUGINFO = -g
156endif
157endif
158ifeq ($(BUILD),release)
159ifeq ($(DEBUG_INFO),default)
160__DEBUGINFO =
161endif
162endif
163ifeq ($(DEBUG_INFO),0)
164__DEBUGINFO =
165endif
166ifeq ($(DEBUG_INFO),1)
167__DEBUGINFO = -g
168endif
169ifeq ($(BUILD),debug)
170__OPTIMIZEFLAG = -O0
171endif
172ifeq ($(BUILD),release)
173__OPTIMIZEFLAG = -O2
174endif
8c9f8f91
JS
175ifeq ($(USE_THREADS),0)
176__THREADSFLAG =
f3ac19c2 177endif
8c9f8f91
JS
178ifeq ($(USE_THREADS),1)
179__THREADSFLAG = -mthreads
180endif
181ifeq ($(USE_RTTI),0)
182__RTTIFLAG = -fno-rtti
183endif
184ifeq ($(USE_RTTI),1)
185__RTTIFLAG =
f3ac19c2
WS
186endif
187ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 188__EXCEPTIONSFLAG = -fno-exceptions
f3ac19c2
WS
189endif
190ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 191__EXCEPTIONSFLAG =
f3ac19c2
WS
192endif
193ifeq ($(WXUNIV),1)
194__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
195endif
196ifeq ($(BUILD),debug)
197ifeq ($(DEBUG_FLAG),default)
198__DEBUG_DEFINE_p = -D__WXDEBUG__
199endif
200endif
201ifeq ($(DEBUG_FLAG),1)
202__DEBUG_DEFINE_p = -D__WXDEBUG__
203endif
8c9f8f91
JS
204ifeq ($(USE_EXCEPTIONS),0)
205__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
206endif
207ifeq ($(USE_RTTI),0)
208__RTTI_DEFINE_p = -DwxNO_RTTI
209endif
210ifeq ($(USE_THREADS),0)
211__THREAD_DEFINE_p = -DwxNO_THREADS
212endif
f3ac19c2
WS
213ifeq ($(UNICODE),1)
214__UNICODE_DEFINE_p = -D_UNICODE
215endif
2113bc77
MW
216ifeq ($(MSLU),1)
217__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
218endif
f3ac19c2
WS
219
220
221all: $(OBJS)
222$(OBJS):
223 -if not exist $(OBJS) mkdir $(OBJS)
224
225### Targets: ###
226
227all: $(__foldbardll___depname) $(__foldbarlib___depname)
228
229clean:
230 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 231 -if exist $(OBJS)\*.d del $(OBJS)\*.d
4818141b 232 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll
c33fae85
RN
233 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a
234 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a
f3ac19c2
WS
235
236ifeq ($(SHARED),1)
4818141b 237$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG).dll: $(FOLDBARDLL_OBJECTS) $(OBJS)\foldbardll_version_rc.o
8c9f8f91 238 $(CXX) -shared -fPIC -o $@ $(FOLDBARDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
f3ac19c2
WS
239endif
240
241ifeq ($(SHARED),0)
c33fae85 242$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar.a: $(FOLDBARLIB_OBJECTS)
f3ac19c2
WS
243 if exist $@ del $@
244 ar rcu $@ $(FOLDBARLIB_OBJECTS)
245 ranlib $@
246endif
247
248$(OBJS)\foldbardll_dummy.o: ../../src/foldbar/../../../src/msw/dummy.cpp
0d90d6ea 249 $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $(CPPDEPS) $<
f3ac19c2 250
102d46f3 251$(OBJS)\foldbardll_version_rc.o: ../../src/foldbar/../../../src/msw/version.rc
2113bc77 252 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) --include-dir ../../src/foldbar/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_foldbar_gcc$(VENDORTAG)
8c9f8f91 253
f3ac19c2 254$(OBJS)\foldbardll_captionbar.o: ../../src/foldbar/captionbar.cpp
0d90d6ea 255 $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $(CPPDEPS) $<
f3ac19c2
WS
256
257$(OBJS)\foldbardll_foldpanelbar.o: ../../src/foldbar/foldpanelbar.cpp
0d90d6ea 258 $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $(CPPDEPS) $<
f3ac19c2
WS
259
260$(OBJS)\foldbardll_foldpanelitem.o: ../../src/foldbar/foldpanelitem.cpp
0d90d6ea 261 $(CXX) -c -o $@ $(FOLDBARDLL_CXXFLAGS) $(CPPDEPS) $<
f3ac19c2
WS
262
263$(OBJS)\foldbarlib_dummy.o: ../../src/foldbar/../../../src/msw/dummy.cpp
0d90d6ea 264 $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $(CPPDEPS) $<
f3ac19c2
WS
265
266$(OBJS)\foldbarlib_captionbar.o: ../../src/foldbar/captionbar.cpp
0d90d6ea 267 $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $(CPPDEPS) $<
f3ac19c2
WS
268
269$(OBJS)\foldbarlib_foldpanelbar.o: ../../src/foldbar/foldpanelbar.cpp
0d90d6ea 270 $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $(CPPDEPS) $<
f3ac19c2
WS
271
272$(OBJS)\foldbarlib_foldpanelitem.o: ../../src/foldbar/foldpanelitem.cpp
0d90d6ea 273 $(CXX) -c -o $@ $(FOLDBARLIB_CXXFLAGS) $(CPPDEPS) $<
f3ac19c2
WS
274
275.PHONY: all clean
b14abf14 276
8c9f8f91 277
0d90d6ea
JS
278# Dependencies tracking:
279-include $(OBJS)/*.d