summaryrefslogtreecommitdiff
path: root/core/toolchain/addons/ltrace/ltrace.mk
blob: a0f7321778184883f94d5ea7b82fcc7c01144adc (plain)
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
################################################################################
# Embtoolkit
# Copyright(C) 2009-2014 Abdoulaye Walsimou GAYE.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
#
# \file         ltrace.mk
# \brief	ltrace.mk of Embtoolkit
# \author       Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# \date         July 2014
################################################################################

LTRACE_NAME		:= ltrace
LTRACE_VERSION		:= $(call embtk_get_pkgversion,ltrace)
LTRACE_SITE		:= $(embtk_ftp/packages-mirror)
LTRACE_GIT_SITE		:= git://git.debian.org/git/collab-maint/ltrace.git
LTRACE_PACKAGE		:= ltrace-$(LTRACE_VERSION).tar.bz2
LTRACE_SRC_DIR		:= $(embtk_pkgb)/ltrace-$(LTRACE_VERSION)
LTRACE_BUILD_DIR	:= $(embtk_pkgb)/ltrace-$(LTRACE_VERSION)-build

LTRACE_BINS		:= ltrace
LTRACE_SHARES		:= doc/ltrace ltrace man/man*/ltrace*

LTRACE_CONFIGURE_OPTS	:= --disable-werror --with-elfutils=no

LTRACE_DEPS		:= libelf_install

define embtk_postinstall_ltrace
	rm -rf $(embtk_rootfs)/usr/share/ltrace
	install -d $(embtk_rootfs)/usr/share/ltrace
	cp -R $(embtk_sysroot)/usr/share/ltrace/* $(embtk_rootfs)/usr/share/ltrace
endef