summaryrefslogtreecommitdiffstats
path: root/package/dhrystone/dhrystone.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-07 16:07:27 -0500
committerPeter Korsgaard <jacmet@sunsite.dk>2010-12-08 23:37:48 +0100
commit9ffc2e809c9a1a6be135d6ec5503e8d0717d2cc0 (patch)
tree0de2cb1967ac3bd8610389904588c1a001352596 /package/dhrystone/dhrystone.mk
parentbeb56ca618da3c2bcffb806c6d7fae725e56162e (diff)
downloadbuildroot-novena-9ffc2e809c9a1a6be135d6ec5503e8d0717d2cc0.tar.gz
buildroot-novena-9ffc2e809c9a1a6be135d6ec5503e8d0717d2cc0.zip
dhrystone: new benchmark package
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/dhrystone/dhrystone.mk')
-rw-r--r--package/dhrystone/dhrystone.mk34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/dhrystone/dhrystone.mk b/package/dhrystone/dhrystone.mk
new file mode 100644
index 000000000..a03beecf6
--- /dev/null
+++ b/package/dhrystone/dhrystone.mk
@@ -0,0 +1,34 @@
+#############################################################
+#
+# dhrystone
+#
+#############################################################
+
+DHRYSTONE_VERSION = 2
+DHRYSTONE_SOURCE = dhry-c
+DHRYSTONE_SITE = http://www.netlib.org/benchmark/
+
+define DHRYSTONE_BUILD_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
+define DHRYSTONE_CLEAN_CMDS
+ $(MAKE) -C $(@D) clean
+endef
+
+define DHRYSTONE_INSTALL_TARGET_CMDS
+ $(INSTALL) -D $(@D)/dhrystone $(TARGET_DIR)/usr/bin/dhrystone
+endef
+
+define DHRYSTONE_UNINSTALL_TARGET_CMDS
+ rm -f $(TARGET_DIR)/usr/bin/dhrystone
+endef
+
+$(eval $(call GENTARGETS,package,dhrystone))
+
+$(BUILD_DIR)/dhrystone-$(DHRYSTONE_VERSION)/.stamp_extracted:
+ @$(call MESSAGE,"Extracting")
+ $(Q)mkdir -p $(@D)
+ $(Q)cd $(@D) && $(SHELL) $(DL_DIR)/$($(PKG)_SOURCE)
+ $(Q)cp $($(PKG)_DIR_PREFIX)/dhrystone/Makefile $(@D)/
+ $(Q)touch $@