2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_MD5SUM
:=c575ef43829586801f514fd91bfe7575
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
18 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
21 PKG_LICENSE_FILES
:=COPYRIGHT
26 include $(INCLUDE_DIR
)/package.mk
31 TITLE
:=System call tracer
32 URL
:=http
://strace.sourceforge.net
/
35 define Package
/strace
/description
36 A useful diagnostic
, instructional
, and debugging tool. Allows you to track what
37 system calls a program makes while it is running.
40 # needed when compiling against Linux 2.4
42 ac_cv_header_linux_netlink_h
=yes
44 ifneq ($(CONFIG_EXTERNAL_TOOLCHAIN
),)
45 TARGET_CPPFLAGS
+= -I
$(LINUX_DIR
)/include
49 CCOPT
="$(TARGET_CFLAGS)"
51 define Package
/strace
/install
52 $(INSTALL_DIR
) $(1)/usr
/bin
53 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/strace
$(1)/usr
/bin
/
56 $(eval
$(call BuildPackage
,strace
))