diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-03-06 18:49:59 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2011-03-06 18:49:59 +0100 |
commit | 1b80b363ad9061e5de8a52b53103a3e5bbec234b (patch) | |
tree | 93459d360cd5a6de8ff942b582d9af574d1ab2f3 /mk/strace.mk | |
parent | e262604affd59aef059f1a4d916055040cbc3665 (diff) | |
download | embtoolkit-1b80b363ad9061e5de8a52b53103a3e5bbec234b.tar.gz embtoolkit-1b80b363ad9061e5de8a52b53103a3e5bbec234b.tar.bz2 embtoolkit-1b80b363ad9061e5de8a52b53103a3e5bbec234b.tar.xz |
Toolchain: strace: convert to use generic macros
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk/strace.mk')
-rw-r--r-- | mk/strace.mk | 78 |
1 files changed, 24 insertions, 54 deletions
diff --git a/mk/strace.mk b/mk/strace.mk index 5d731fb..5795b15 100644 --- a/mk/strace.mk +++ b/mk/strace.mk @@ -2,18 +2,19 @@ # Embtoolkit # Copyright(C) 2009-2011 Abdoulaye Walsimou GAYE. All rights reserved. # -# This program is free software; you can distribute it and/or modify it -# under the terms of the GNU General Public License -# (Version 2 or later) published by the Free Software Foundation. +# 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 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. +# 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/>. # -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. ################################################################################ # # \file strace.mk @@ -22,57 +23,26 @@ # \date August 2009 ################################################################################ -STRACE_VERSION:= $(subst ",,$(strip $(CONFIG_EMBTK_STRACE_VERSION_STRING))) +STRACE_NAME := strace +STRACE_VERSION:= $(call EMBTK_GET_PKG_VERSION,STRACE) STRACE_SITE:=http://downloads.sourceforge.net/project/strace/strace/$(STRACE_VERSION) +STRACE_SITE_MIRROR3 := ftp://ftp.embtoolkit.org/embtoolkit.org/packages-mirror STRACE_PATCH_SITE := ftp://ftp.embtoolkit.org/embtoolkit.org/strace/$(STRACE_VERSION) STRACE_PACKAGE := strace-$(STRACE_VERSION).tar.bz2 +STRACE_SRC_DIR := $(PACKAGES_BUILD)/strace-$(STRACE_VERSION) STRACE_BUILD_DIR := $(PACKAGES_BUILD)/strace -strace_install: $(STRACE_BUILD_DIR)/.installed +STRACE_BINS = strace strace-graph +STRACE_SBINS = +STRACE_INCLUDES = +STRACE_LIBS = +STRACE_PKGCONFIGS = -$(STRACE_BUILD_DIR)/.installed: download_strace \ - $(STRACE_BUILD_DIR)/.decompressed $(STRACE_BUILD_DIR)/.configured - $(call EMBTK_GENERIC_MESSAGE,"Compiling and installing \ - strace-$(STRACE_VERSION) in target...") - @$(MAKE) -C $(STRACE_BUILD_DIR) - cd $(STRACE_BUILD_DIR); \ - test -z $(ROOTFS)/usr/bin || mkdir -p $(ROOTFS)/usr/bin; \ - install -c strace $(ROOTFS)/usr/bin - @touch $@ +strace_install: + $(call EMBTK_INSTALL_PKG,STRACE) -$(STRACE_BUILD_DIR)/.decompressed: - @tar -C $(PACKAGES_BUILD) -xjf $(DOWNLOAD_DIR)/$(STRACE_PACKAGE) -ifeq ($(CONFIG_EMBTK_STRACE_NEED_PATCH),y) - @cd $(PACKAGES_BUILD)/strace-$(STRACE_VERSION); \ - patch -p1 < $(DOWNLOAD_DIR)/strace-$(STRACE_VERSION).patch; \ - $(AUTORECONF) -endif - @mkdir -p $(STRACE_BUILD_DIR) - @touch $@ download_strace: - $(call EMBTK_GENERIC_MESSAGE,"Downloading strace-$(STRACE_VERSION) if \ - necessary ...") - @test -e $(DOWNLOAD_DIR)/$(STRACE_PACKAGE) || \ - wget $(STRACE_SITE)/$(STRACE_PACKAGE) \ - -O $(DOWNLOAD_DIR)/$(STRACE_PACKAGE) -ifeq ($(CONFIG_EMBTK_STRACE_NEED_PATCH),y) - @test -e $(DOWNLOAD_DIR)/strace-$(STRACE_VERSION).patch || \ - wget -O $(DOWNLOAD_DIR)/strace-$(STRACE_VERSION).patch \ - $(STRACE_PATCH_SITE)/strace-$(STRACE_VERSION)-*.patch -endif - -$(STRACE_BUILD_DIR)/.configured: - $(call EMBTK_GENERIC_MESSAGE,"Configuring \ - strace-$(STRACE_VERSION) for target...") - cd $(STRACE_BUILD_DIR); \ - $(PACKAGES_BUILD)/strace-$(STRACE_VERSION)/configure \ - --prefix=$(ROOTFS)/usr \ - --build=$(HOST_BUILD) --host=$(STRICT_GNU_TARGET) \ - CC=$(TARGETCC_CACHED) \ - CFLAGS="$(TARGET_CFLAGS)" \ - LDFLAGS="-L$(SYSROOT)/$(LIBDIR) -L$(SYSROOT)/usr/$(LIBDIR)" \ - CPPFLAGS="-I$(SYSROOT)/usr/include" - @touch $@ + $(call EMBTK_DOWNLOAD_PKG,STRACE) strace_clean: - $(call EMBTK_GENERIC_MESSAGE,"Cleanup strace...") + $(call EMBTK_CLEANUP_PKG,STRACE) |