2 # Copyright (C) 2009-2010 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
:=784b0873361cd5442e02b2544d42917b
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_BUILD_DEPENDS
:=librpc
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/lmbench
27 TITLE
:=lmbench microbenchmarks
28 URL
:=http
://sourceforge.net
/projects
/lmbench
32 define Package
/lmbench
/description
33 lmbench is a series of micro benchmarks intended to measure basic operating
34 system and hardware system metrics.
37 define Package
/lmbench
/install
42 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src \
44 AR
="$(TARGET_CROSS)ar" \
46 BASE
="$(PKG_INSTALL_DIR)" \
48 COMPILE
="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)" \
53 define Package
/lmbench-
$(subst _
,-,$(1))
56 TITLE
:=$(1) microbenchmark
57 URL
:=http
://sourceforge.net
/projects
/lmbench
58 DEPENDS
:=lmbench
+librpc
63 define Package
/lmbench-
$(subst _
,-,$(1))/install
64 $(INSTALL_DIR
) $$(1)/usr
/sbin
65 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/bin
/$(1) $$(1)/usr
/sbin
/$(1)
120 $(foreach file
,$(LMBENCH_FILES
),$(eval
$(call PartGen
,$(file
))))
121 $(foreach file
,$(LMBENCH_FILES
),$(eval
$(call PartInstall
,$(file
))))
123 $(eval
$(call BuildPackage
,lmbench
))
124 $(foreach file
,$(LMBENCH_FILES
),$(eval
$(call BuildPackage
,lmbench-
$(subst _
,-,$(file
)))))