2 # Copyright (C) 2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
15 PKG_SOURCE_URL
:=@SF
/lmbench
/
16 PKG_MD5SUM
:=b3351a3294db66a72e2864a199d37cbf
18 PKG_BUILD_DEPENDS
:=librpc
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/lmbench
25 TITLE
:=lmbench microbenchmarks
26 URL
:=http
://sourceforge.net
/projects
/lmbench
30 define Package
/lmbench
/description
31 lmbench is a series of micro benchmarks intended to measure basic operating
32 system and hardware system metrics.
35 define Package
/lmbench
/install
40 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src \
42 AR
="$(TARGET_CROSS)ar" \
44 BASE
="$(PKG_INSTALL_DIR)" \
46 COMPILE
="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)" \
51 define Package
/lmbench-
$(subst _
,-,$(1))
54 TITLE
:=$(1) microbenchmark
55 URL
:=http
://sourceforge.net
/projects
/lmbench
56 DEPENDS
:=lmbench
+librpc
61 define Package
/lmbench-
$(subst _
,-,$(1))/install
62 $(INSTALL_DIR
) $$(1)/usr
/sbin
63 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/bin
/$(1) $$(1)/usr
/sbin
/$(1)
118 $(foreach file
,$(LMBENCH_FILES
),$(eval
$(call PartGen
,$(file
))))
119 $(foreach file
,$(LMBENCH_FILES
),$(eval
$(call PartInstall
,$(file
))))
121 $(eval
$(call BuildPackage
,lmbench
))
122 $(foreach file
,$(LMBENCH_FILES
),$(eval
$(call BuildPackage
,lmbench-
$(subst _
,-,$(file
)))))