summaryrefslogtreecommitdiffstats
path: root/package/dhrystone/dhrystone.mk
blob: c0bca9895d3542b2ee1409fbf883e4fd887c304b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
################################################################################
#
# dhrystone
#
################################################################################

DHRYSTONE_VERSION = 2
DHRYSTONE_SOURCE = dhry-c
DHRYSTONE_SITE = http://www.netlib.org/benchmark

define DHRYSTONE_EXTRACT_CMDS
	(cd $(@D) && $(SHELL) $(DL_DIR)/$($(PKG)_SOURCE))
	$(Q)cp package/dhrystone/Makefile $(@D)/
endef

define DHRYSTONE_BUILD_CMDS
	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef

define DHRYSTONE_INSTALL_TARGET_CMDS
	$(INSTALL) -D $(@D)/dhrystone $(TARGET_DIR)/usr/bin/dhrystone
endef

$(eval $(generic-package))