1
# =========================================================================
2
# This makefile was generated by
3
# Bakefile 0.2.2 (http://bakefile.sourceforge.net)
4
# Do not modify, all changes will be overwritten!
5
# =========================================================================
9
# -------------------------------------------------------------------------
10
# These are configurable options:
11
# -------------------------------------------------------------------------
13
# 'install' program location
16
# Location where the package is installed by 'make install'
19
# Destination root (/ is used if empty)
31
# Standard flags for C++
34
# Standard preprocessor flags (common for CC and CXX)
37
# Standard linker flags
40
# Location and arguments of wx-config script
41
WX_CONFIG := wx-config
43
# Port of the wx library to build against [gtk1,gtk2,msw,x11,motif,mgl,mac,dfb]
44
WX_PORT := $(shell $(WX_CONFIG) --selected-config | cut -d '-' -f 1)
46
# Use DLL build of wx library to use? [0,1]
47
WX_SHARED := $(shell if test -z `$(WX_CONFIG) --selected-config | cut -d '-' -f 5`; then echo 1; else echo 0; fi)
49
# Compile Unicode build of wxWidgets? [0,1]
50
WX_UNICODE := $(shell $(WX_CONFIG) --selected-config | cut -d '-' -f 2 | sed 's/unicode/1/;s/ansi/0/')
52
# Use debug build of wxWidgets (define __WXDEBUG__)? [0,1]
53
WX_DEBUG := $(shell $(WX_CONFIG) --selected-config | cut -d '-' -f 3 | sed 's/debug/1/;s/release/0/')
55
# Version of the wx library to build against.
56
WX_VERSION := $(shell $(WX_CONFIG) --selected-config | sed -e 's/.*-\([0-9]*\)\.\([0-9]*\)$$/\1\2/')
60
# -------------------------------------------------------------------------
61
# Do not modify the rest of this file!
62
# -------------------------------------------------------------------------
66
CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD
67
WX_VERSION_MAJOR = $(shell echo $(WX_VERSION) | cut -c1,1)
68
WX_VERSION_MINOR = $(shell echo $(WX_VERSION) | cut -c2,2)
69
WX_CONFIG_FLAGS = $(WX_CONFIG_DEBUG_FLAG) $(WX_CONFIG_UNICODE_FLAG) \
70
$(WX_CONFIG_SHARED_FLAG) --toolkit=$(WX_PORT) \
71
--version=$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR)
72
THINGS_LIB_CXXFLAGS = $(____things) $(____things_3) -W -Wall -I../include \
73
`$(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)` $(CPPFLAGS) $(CXXFLAGS)
74
THINGS_LIB_OBJECTS = \
75
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_block.o \
76
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_bmpcombo.o \
77
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_dropdown.o \
78
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_filebrws.o \
79
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_filedlgg.o \
80
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_genergdi.o \
81
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_geometry.o \
82
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_matrix2d.o \
83
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_menubtn.o \
84
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_optvalue.o \
85
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_range.o \
86
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_spinctld.o \
87
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_toggle.o
88
THINGS_LIB_HEADERS = \
89
include/wx/things/block.h \
90
include/wx/things/bmpcombo.h \
91
include/wx/things/dropdown.h \
92
include/wx/things/filebrws.h \
93
include/wx/things/genergdi.h \
94
include/wx/things/geometry.h \
95
include/wx/things/matrix2d.h \
96
include/wx/things/medsort.h \
97
include/wx/things/menubtn.h \
98
include/wx/things/optvalue.h \
99
include/wx/things/range.h \
100
include/wx/things/spinctld.h \
101
include/wx/things/thingdef.h \
102
include/wx/things/toggle.h
103
THINGS_DLL_CXXFLAGS = $(____things) $(____things_3) -W -Wall -I../include \
104
-DWXMAKINGDLL_THINGS -fPIC -DPIC `$(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)` \
105
$(CPPFLAGS) $(CXXFLAGS)
106
THINGS_DLL_OBJECTS = \
107
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_block.o \
108
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_bmpcombo.o \
109
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_dropdown.o \
110
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_filebrws.o \
111
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_filedlgg.o \
112
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_genergdi.o \
113
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_geometry.o \
114
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_matrix2d.o \
115
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_menubtn.o \
116
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_optvalue.o \
117
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_range.o \
118
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_spinctld.o \
119
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_toggle.o
120
THINGS_DLL_HEADERS = \
121
include/wx/things/block.h \
122
include/wx/things/bmpcombo.h \
123
include/wx/things/dropdown.h \
124
include/wx/things/filebrws.h \
125
include/wx/things/genergdi.h \
126
include/wx/things/geometry.h \
127
include/wx/things/matrix2d.h \
128
include/wx/things/medsort.h \
129
include/wx/things/menubtn.h \
130
include/wx/things/optvalue.h \
131
include/wx/things/range.h \
132
include/wx/things/spinctld.h \
133
include/wx/things/thingdef.h \
134
include/wx/things/toggle.h
135
THINGSDEMO_CXXFLAGS = $(____things) $(____things_3) -W -Wall -I../include \
136
`$(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)` $(CPPFLAGS) $(CXXFLAGS)
137
THINGSDEMO_OBJECTS = \
138
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/thingsdemo_thingsdemo.o
140
### Conditionally set variables: ###
143
WX_CONFIG_DEBUG_FLAG = --debug=no
146
WX_CONFIG_DEBUG_FLAG = --debug=yes
148
ifeq ($(WX_UNICODE),0)
149
WX_CONFIG_UNICODE_FLAG = --unicode=no
151
ifeq ($(WX_UNICODE),1)
152
WX_CONFIG_UNICODE_FLAG = --unicode=yes
154
ifeq ($(WX_SHARED),0)
155
WX_CONFIG_SHARED_FLAG = --static=yes
157
ifeq ($(WX_SHARED),1)
158
WX_CONFIG_SHARED_FLAG = --static=no
160
ifeq ($(WX_SHARED),0)
161
_BUILDDIR_SHARED_SUFFIX =
163
ifeq ($(WX_SHARED),1)
164
_BUILDDIR_SHARED_SUFFIX = _dll
166
ifeq ($(WX_SHARED),0)
167
__things_lib___depname = \
168
../lib/gcc_$(__things)/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).a
170
ifeq ($(WX_SHARED),0)
171
__install_things_lib___depname = install_things_lib
173
ifeq ($(WX_SHARED),0)
174
__uninstall_things_lib___depname = uninstall_things_lib
176
ifeq ($(WX_SHARED),0)
177
__install_things_lib_headers___depname = install_things_lib_headers
179
ifeq ($(WX_SHARED),0)
180
__uninstall_things_lib_headers___depname = uninstall_things_lib_headers
182
ifeq ($(WX_SHARED),1)
183
__things_dll___depname = \
184
../lib/gcc_$(__things)/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).so
186
ifeq ($(WX_SHARED),1)
187
__install_things_dll___depname = install_things_dll
189
ifeq ($(WX_SHARED),1)
190
__uninstall_things_dll___depname = uninstall_things_dll
192
ifeq ($(WX_SHARED),1)
193
__install_things_dll_headers___depname = install_things_dll_headers
195
ifeq ($(WX_SHARED),1)
196
__uninstall_things_dll_headers___depname = uninstall_things_dll_headers
198
ifeq ($(WX_SHARED),1)
199
__thingsdemo_RPATH = -Wl,-rpath,../../lib/gcc_dll
201
ifeq ($(WX_SHARED),0)
204
ifeq ($(WX_SHARED),1)
221
all: gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)
222
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX):
223
@mkdir -p gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)
227
all: test_for_selected_wxbuild $(__things_lib___depname) $(__things_dll___depname) ../samples/things/thingsdemo
229
install: all $(__install_things_lib___depname) $(__install_things_lib_headers___depname) $(__install_things_dll___depname) $(__install_things_dll_headers___depname)
231
uninstall: $(__uninstall_things_lib___depname) $(__uninstall_things_lib_headers___depname) $(__uninstall_things_dll___depname) $(__uninstall_things_dll_headers___depname)
234
rm -f gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/*.o
235
rm -f gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/*.d
236
rm -f ../lib/gcc_$(__things)/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).a
237
rm -f ../lib/gcc_$(__things)/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).so
238
rm -f ../lib/gcc_$(__things)/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).so
239
rm -f ../samples/things/thingsdemo
241
test_for_selected_wxbuild:
242
@$(WX_CONFIG) $(WX_CONFIG_FLAGS)
244
ifeq ($(WX_SHARED),0)
245
../lib/gcc_$(__things)/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).a: make_dir_things_lib $(THINGS_LIB_OBJECTS)
247
$(AR) rcu $@ $(THINGS_LIB_OBJECTS)
251
ifeq ($(WX_SHARED),0)
253
$(INSTALL) -d $(DESTDIR)$(prefix)/lib
254
$(INSTALL) -m 644 ../lib/gcc_$(__things)/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).a $(DESTDIR)$(prefix)/lib
257
ifeq ($(WX_SHARED),0)
258
uninstall_things_lib:
259
rm -f $(DESTDIR)$(prefix)/lib/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).a
263
@mkdir -p ../lib/gcc_$(__things)
265
ifeq ($(WX_SHARED),0)
266
install_things_lib_headers:
267
$(INSTALL) -d $(DESTDIR)$(prefix)
268
for f in $(THINGS_LIB_HEADERS); do \
269
if test ! -d $(DESTDIR)$(prefix)/`dirname $$f` ; then \
270
$(INSTALL) -d $(DESTDIR)$(prefix)/`dirname $$f`; \
272
$(INSTALL) -m 644 ../$$f $(DESTDIR)$(prefix)/$$f; \
276
ifeq ($(WX_SHARED),0)
277
uninstall_things_lib_headers:
278
for f in $(THINGS_LIB_HEADERS); do \
279
rm -f $(DESTDIR)$(prefix)/$$f; \
283
ifeq ($(WX_SHARED),1)
284
../lib/gcc_$(__things)/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).so: make_dir_things_dll $(THINGS_DLL_OBJECTS)
285
$(CXX) -shared -fPIC -o $@ $(THINGS_DLL_OBJECTS) $(LDFLAGS) $(____things_3) -L../lib `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs adv,core,base`
288
ifeq ($(WX_SHARED),1)
290
$(INSTALL) -d $(DESTDIR)$(prefix)/lib
291
$(INSTALL) -m 644 ../lib/gcc_$(__things)/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).so $(DESTDIR)$(prefix)/lib
292
install -c ../lib/gcc_$(__things)/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).so $(DESTDIR)$(prefix)/lib
295
ifeq ($(WX_SHARED),1)
296
uninstall_things_dll:
297
rm -f $(DESTDIR)$(prefix)/lib/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).so
298
rm -f $(DESTDIR)$(prefix)/lib/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).so
302
@mkdir -p ../lib/gcc_$(__things)
304
ifeq ($(WX_SHARED),1)
305
install_things_dll_headers:
306
$(INSTALL) -d $(DESTDIR)$(prefix)
307
for f in $(THINGS_DLL_HEADERS); do \
308
if test ! -d $(DESTDIR)$(prefix)/`dirname $$f` ; then \
309
$(INSTALL) -d $(DESTDIR)$(prefix)/`dirname $$f`; \
311
$(INSTALL) -m 644 ../$$f $(DESTDIR)$(prefix)/$$f; \
315
ifeq ($(WX_SHARED),1)
316
uninstall_things_dll_headers:
317
for f in $(THINGS_DLL_HEADERS); do \
318
rm -f $(DESTDIR)$(prefix)/$$f; \
322
../samples/things/thingsdemo: $(THINGSDEMO_OBJECTS) make_sample_dir_thingsdemo $(__things_lib___depname)
323
$(CXX) -o $@ $(THINGSDEMO_OBJECTS) $(LDFLAGS) $(____things_3) -L../lib $(__thingsdemo_RPATH) ../lib/gcc_$(__things)/libwxcode_$(WX_PORT)_things-$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR).a `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs adv,core,base`
325
make_sample_dir_thingsdemo:
326
@mkdir -p ../samples/things
328
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_block.o: ../src/block.cpp
329
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
331
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_bmpcombo.o: ../src/bmpcombo.cpp
332
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
334
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_dropdown.o: ../src/dropdown.cpp
335
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
337
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_filebrws.o: ../src/filebrws.cpp
338
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
340
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_filedlgg.o: ../src/filedlgg.cpp
341
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
343
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_genergdi.o: ../src/genergdi.cpp
344
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
346
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_geometry.o: ../src/geometry.cpp
347
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
349
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_matrix2d.o: ../src/matrix2d.cpp
350
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
352
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_menubtn.o: ../src/menubtn.cpp
353
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
355
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_optvalue.o: ../src/optvalue.cpp
356
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
358
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_range.o: ../src/range.cpp
359
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
361
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_spinctld.o: ../src/spinctld.cpp
362
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
364
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_lib_toggle.o: ../src/toggle.cpp
365
$(CXX) -c -o $@ $(THINGS_LIB_CXXFLAGS) $(CPPDEPS) $<
367
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_block.o: ../src/block.cpp
368
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
370
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_bmpcombo.o: ../src/bmpcombo.cpp
371
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
373
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_dropdown.o: ../src/dropdown.cpp
374
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
376
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_filebrws.o: ../src/filebrws.cpp
377
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
379
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_filedlgg.o: ../src/filedlgg.cpp
380
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
382
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_genergdi.o: ../src/genergdi.cpp
383
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
385
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_geometry.o: ../src/geometry.cpp
386
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
388
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_matrix2d.o: ../src/matrix2d.cpp
389
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
391
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_menubtn.o: ../src/menubtn.cpp
392
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
394
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_optvalue.o: ../src/optvalue.cpp
395
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
397
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_range.o: ../src/range.cpp
398
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
400
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_spinctld.o: ../src/spinctld.cpp
401
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
403
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/things_dll_toggle.o: ../src/toggle.cpp
404
$(CXX) -c -o $@ $(THINGS_DLL_CXXFLAGS) $(CPPDEPS) $<
406
gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/thingsdemo_thingsdemo.o: ../samples/things/thingsdemo.cpp
407
$(CXX) -c -o $@ $(THINGSDEMO_CXXFLAGS) $(CPPDEPS) $<
409
.PHONY: all install uninstall clean install_things_lib uninstall_things_lib install_things_lib_headers uninstall_things_lib_headers install_things_dll uninstall_things_dll install_things_dll_headers uninstall_things_dll_headers
412
# Dependencies tracking:
413
-include gcc$(WX_PORT)$(_BUILDDIR_SHARED_SUFFIX)/*.d