c68a48e74adfdb38384034248c4b9660b3c81903
[openwrt/svn-archive/archive.git] / utils / strace / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=strace
12
13 PKG_VERSION:=4.5.20
14 PKG_RELEASE:=1
15 PKG_MD5SUM:=64dfe10d9db0c1e34030891695ffca4b
16
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
19
20 PKG_FIXUP:=autoreconf
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/strace
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=System call tracer
29 URL:=http://strace.sourceforge.net/
30 endef
31
32 define Package/strace/description
33 A useful diagnostic, instructional, and debugging tool. Allows you to track what
34 system calls a program makes while it is running.
35 endef
36
37 # needed when compiling against Linux 2.4
38 CONFIGURE_VARS += \
39 ac_cv_header_linux_netlink_h=yes
40
41 ifneq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
42 TARGET_CPPFLAGS += -I$(LINUX_DIR)/include
43 endif
44
45 MAKE_FLAGS := \
46 CCOPT="$(TARGET_CFLAGS)"
47
48 define Package/strace/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/strace $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,strace))