cf1607b94419ef81ec2a711052caaa6d8bf89bef
[openwrt/svn-archive/archive.git] / libs / libpfm / Makefile
1 #
2 # Copyright (C) 2006-2008 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:=libpfm
11 PKG_VERSION:=3.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/perfmon2
16 PKG_MD5SUM:=5075fa45ddce4aa647b70e9f9446eacc
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/libpfm
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=Perfmon2 Kernel performance monitoring interface
24 URL:=http://perfmon2.sourceforge.net/
25 endef
26
27 define Build/Compile
28 $(MAKE) -C $(PKG_BUILD_DIR) \
29 ARCH=cell \
30 CC=$(TARGET_CROSS)gcc \
31 AR=$(TARGET_CROSS)ar \
32 lib
33 endef
34
35 define Build/InstallDev
36 echo "Build/InstallDev"
37 $(MAKE) -C $(PKG_BUILD_DIR)/include \
38 ARCH=cell \
39 DESTDIR=$(1) \
40 INCDIR=/usr/include \
41 CONFIG_PFMLIB_ARCH_POWERPC=y \
42 install
43 # $(MAKE) -C $(PKG_BUILD_DIR)/lib \
44 # ARCH=cell \
45 # CC=$(TARGET_CROSS)gcc \
46 # DESTDIR=$(1) \
47 # LIBDIR=/usr/lib \
48 # CONFIG_PFMLIB_ARCH_POWERPC=y \
49 # CONFIG_PFMLIB_CELL=y \
50 # CONFIG_PFMLIB_SHARED=y \
51 # install
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_BUILD_DIR)/lib/libpfm* $(1)/usr/lib/
54 endef
55
56 define Package/libpfm/install
57 echo "Package/libpfm/install"
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(CP) $(PKG_BUILD_DIR)/lib/libpfm* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,libpfm))