[packages] elfutils: remove libintl hacks from makefile
[openwrt/svn-archive/archive.git] / utils / kmemtrace-user / Makefile
1 #
2 # Copyright (C) 2006-2009 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
10 PKG_NAME:=kmemtrace-user
11 PKG_VERSION:=20100102
12 PKG_RELEASE:=1
13 PKG_REV:=92878e602489d6a6ffd6e50b94f425c3149c86bd
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=git://repo.or.cz/kmemtrace-user.git
17 PKG_SOURCE_SUBDIR:=kmemtrace-user-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_REV)
19 PKG_SOURCE_PROTO:=git
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/kmemtrace-user
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=trace slab allocator functions
29 URL:=http://repo.or.cz/w/kmemtrace-user.git
30 KCONFIG:= \
31 CONFIG_KMEMTRACE=y
32 endef
33
34 define Package/kmemtrace-user/description
35 kmemtrace provides tracing for slab allocator functions, such as
36 kmalloc, kfree, kmem_cache_alloc, kmem_cache_free etc.. Collected
37 data is then fed to the userspace application in order to analyse
38 allocation hotspots, internal fragmentation and so on, making it
39 possible to see how well an allocator performs, as well as debug
40 and profile kernel code.
41 endef
42
43 define Build/Configure
44 (cd $(PKG_BUILD_DIR); ./autogen.sh; ./configure );
45 $(call Build/Configure/Default)
46 endef
47
48
49 define Package/kmemtrace-user/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kmemtrace-check $(1)/usr/sbin/
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kmemtrace-report $(1)/usr/sbin/
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kmemtrace-show $(1)/usr/sbin/
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/kmemtraced $(1)/usr/sbin/
55 endef
56
57 $(eval $(call BuildPackage,kmemtrace-user))