2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2008-10-21 20:38:31 +08:00
|
|
|
#
|
|
|
|
# memstat
|
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2008-10-21 20:38:31 +08:00
|
|
|
|
2010-02-19 03:48:24 +08:00
|
|
|
MEMSTAT_VERSION = 0.8
|
|
|
|
MEMSTAT_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/m/memstat
|
|
|
|
MEMSTAT_SOURCE = memstat_$(MEMSTAT_VERSION).tar.gz
|
|
|
|
|
|
|
|
define MEMSTAT_BUILD_CMDS
|
2010-07-06 15:27:32 +08:00
|
|
|
$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" CFLAGS="$(TARGET_CFLAGS)" \
|
2010-02-19 03:48:24 +08:00
|
|
|
-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
|
|
|
|
|
|
|
|
define MEMSTAT_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/etc/memstat.conf
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/memstat
|
|
|
|
endef
|
|
|
|
|
2012-07-03 06:07:32 +08:00
|
|
|
$(eval $(generic-package))
|