source: packages/utils/cpusage/Makefile @ 27224

Last change on this file since 27224 was 27224, checked in by swalker, 5 years ago

[packages] cpusage: update url

File size: 1.3 KB
Line 
1#
2# Copyright (C) 2005 Fabian Schneider, 2010 Florian Sesser, TU Muenchen
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=cpusage
10PKG_VERSION:=0.31
11
12PKG_BUILD_DIR:=$(BUILD_DIR)/cpusage
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/cpusage
17  SECTION:=utils
18  CATEGORY:=Utilities
19  TITLE:=Outputs CPU usage statistics once per second
20  URL:=http://www.net.t-labs.tu-berlin.de/~fabian/software_en.html\#cpusage
21endef
22
23define Package/cpusage/description
24  CPUsage outputs CPU usage statistics once per second.
25  Optionally writes CSV output (see '-o' option).
26  Written by Fabian Schneider (TUM, TUB) in 2005.
27  Timestamp and CSV-compliance by Florian Sesser (TUM), 2010.
28endef
29
30define Build/Prepare
31        mkdir -p $(PKG_BUILD_DIR)
32        $(CP) src/* $(PKG_BUILD_DIR)/
33endef
34
35TARGET_CFLAGS += $(FPIC)
36
37define Build/Compile
38        $(TARGET_CC) $(TARGET_CFLAGS) -D__Linux26__ -D_BSD_SOURCE=1 -c -I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include -o $(PKG_BUILD_DIR)/cpusage.o $(PKG_BUILD_DIR)/cpusage.c
39        $(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/cpusage -L$(STAGING_DIR)/usr/lib $(PKG_BUILD_DIR)/cpusage.o
40endef
41
42define Package/cpusage/install
43        $(INSTALL_DIR) $(1)/usr/bin
44        $(INSTALL_BIN) $(PKG_BUILD_DIR)/cpusage $(1)/usr/bin/
45endef
46
47$(eval $(call BuildPackage,cpusage))
Note: See TracBrowser for help on using the repository browser.