9e20ec86b2
Signed-off-by: Karoly Kasza <kaszak@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
25 lines
738 B
Makefile
25 lines
738 B
Makefile
################################################################################
|
|
#
|
|
# memstat
|
|
#
|
|
################################################################################
|
|
|
|
MEMSTAT_VERSION = 0.8
|
|
MEMSTAT_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/m/memstat
|
|
MEMSTAT_SOURCE = memstat_$(MEMSTAT_VERSION).tar.gz
|
|
MEMSTAT_LICENSE = GPL
|
|
MEMSTAT_LICENSE_FILES = debian/copyright
|
|
|
|
define MEMSTAT_BUILD_CMDS
|
|
$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" CFLAGS="$(TARGET_CFLAGS)" \
|
|
-C $(@D) memstat
|
|
endef
|
|
|
|
define MEMSTAT_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D $(@D)/memstat.conf -m 0644 \
|
|
$(TARGET_DIR)/etc/memstat.conf
|
|
$(INSTALL) -D $(@D)/memstat $(TARGET_DIR)/usr/bin/memstat
|
|
endef
|
|
|
|
$(eval $(generic-package))
|