2012-01-24 15:48:30 -06:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
2012-11-06 06:12:33 -06:00
|
|
|
#
|
|
|
|
# This file is part of the LibreOffice project.
|
|
|
|
#
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
#
|
2012-01-24 15:48:30 -06:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
|
|
|
|
include config_host_callcatcher.mk
|
|
|
|
|
|
|
|
export CC:=callcatcher $(CC)
|
|
|
|
export CXX:=callcatcher $(CXX)
|
|
|
|
ifeq ($(AR),)
|
|
|
|
export AR:=callarchive ar
|
|
|
|
else
|
|
|
|
export AR:=callarchive $(AR)
|
|
|
|
endif
|
|
|
|
#old-school ones, can go post-gbuildification is complete
|
|
|
|
export LINK:=$(CXX)
|
|
|
|
ifeq ($(LIBMGR),)
|
|
|
|
export LIBMGR:=callarchive ar
|
|
|
|
else
|
|
|
|
export LIBMGR:=callarchive $(LIBMGR)
|
|
|
|
endif
|
|
|
|
export dbglevel:=2
|
|
|
|
|
2012-05-01 08:18:42 -05:00
|
|
|
include $(SOLARENV)/gbuild/gbuild.mk
|
2012-01-24 15:48:30 -06:00
|
|
|
|
2012-05-01 08:18:42 -05:00
|
|
|
findunusedcode:
|
2012-06-02 07:46:39 -05:00
|
|
|
cd instsetoo_native && unset MAKEFLAGS && \
|
2012-10-27 12:05:33 -05:00
|
|
|
$(SOLARENV)/bin/build.pl -P$(PARALLELISM) --all -- -P$(PARALLELISM)
|
2012-05-01 08:18:42 -05:00
|
|
|
ooinstall -l $(DEVINSTALLDIR)/opt
|
2012-10-27 12:05:33 -05:00
|
|
|
$(GNUMAKE) -j $(PARALLELISM) $(GMAKE_OPTIONS) -f Makefile.post subsequentcheck
|
2012-05-01 08:18:42 -05:00
|
|
|
callanalyse \
|
|
|
|
$(WORKDIR)/LinkTarget/*/* \
|
|
|
|
*/$(OUTPATH)/bin/* \
|
|
|
|
*/$(OUTPATH)/lib/* > unusedcode.all
|
2012-01-24 15:48:30 -06:00
|
|
|
|
|
|
|
# vim: set noet sw=4 ts=4:
|