1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# @configure_input@
SHELL=/usr/bin/env bash
.PHONY : build dev-install all cross_toolset install distro-pack-install clean clean-host clean-build distclean findunusedcode bootstrap
define forward_to_gbuild
@GNUMAKE@ -f $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/GNUmakefile.mk \
$(if @VERBOSE@,,-s) \
$(1)
endef
all:
@$(call forward_to_gbuild,$@)
check:
@$(call forward_to_gbuild,$@)
bootstrap:
@$(call forward_to_gbuild,$@)
debugrun:
@$(call forward_to_gbuild,$@)
%check:
@$(call forward_to_gbuild,$@)
distro-pack-install: install
@$(call forward_to_gbuild,$@)
id:
@$(call forward_to_gbuild,$@)
tags:
@$(call forward_to_gbuild,$@)
docs:
@$(call forward_to_gbuild,$@)
build: Makefile
@$(call forward_to_gbuild,$@)
dev-install: Makefile
@$(call forward_to_gbuild,$@)
cross_toolset:
@$(call forward_to_gbuild,$@)
clean:
@$(call forward_to_gbuild,$@)
clean-host:
@$(call forward_to_gbuild,$@)
clean-build:
@$(call forward_to_gbuild,$@)
distclean:
@$(call forward_to_gbuild,$@)
fetch:
@$(call forward_to_gbuild,$@)
unitcheck:
@$(call forward_to_gbuild,$@)
install:
@$(call forward_to_gbuild,$@)
ifeq ($(filter clean distclean,$(MAKECMDGOALS)),)
Makefile: autogen.lastrun configure.in ooo.lst.in set_soenv.in Makefile.in
./autogen.sh
endif
findunusedcode:
# experimental callcatcher target
# http://www.skynet.ie/~caolan/Packages/callcatcher.html
@which callcatcher > /dev/null 2>&1 || \
(echo "callcatcher not installed" && false)
@. ./Env.Host.sh && \
mkdir -p $$SRC_ROOT/solenv/callcatcher/bin && \
ln -sf $$SRC_ROOT/solenv/$$INPATH/bin/dmake \
$$SRC_ROOT/solenv/callcatcher/bin/dmake && \
source <(sed -e s,$$INPATH,callcatcher,g ./Env.Host.sh) && \
. ./solenv/bin/callcatchEnv.Set.sh && \
cd instsetoo_native && \
build.pl -P@BUILD_NCPUS@ --all -- -P@BUILD_MAX_JOBS@
@. ./Env.Host.sh && \
source <(sed -e s,$$INPATH,callcatcher,g ./Env.Host.sh) && \
callanalyse \
$$WORKDIR/LinkTarget/*/* \
*/$$OUTPATH/bin/* \
*/$$OUTPATH/lib/* > unusedcode.all
#because non-c++ symbols could be dlsymed lets make a list of class level
#unused methods which don't require much effort to determine if they need
#to be just removed, or put behind appropiate platform or debug level ifdefs
@grep ::.*\( unusedcode.all | grep -v ^cppu:: > unusedcode.easy
#as long as we are not completely gbuildified we need to explicitly depend on the build/install
#debugrun : dev-install # disabled for now, this dep seems to poison the debugrun !?
|