diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-04-09 19:40:55 +0000 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-04-09 19:40:55 +0000 |
commit | 4b01325b8cdd85d8f82f20ea0410f5c797299bf2 (patch) | |
tree | 78730bf9739e9aa635f2667511c2d74bc6ea1662 /rules/lmbench.make | |
parent | b2e8f084ba566b1d863f5c2b9a6bfe509e70dfa1 (diff) | |
download | ptxdist-4b01325b8cdd85d8f82f20ea0410f5c797299bf2.tar.gz ptxdist-4b01325b8cdd85d8f82f20ea0410f5c797299bf2.tar.xz |
* lmbench: replace old build system by the autotools
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10279 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/lmbench.make')
-rw-r--r-- | rules/lmbench.make | 168 |
1 files changed, 168 insertions, 0 deletions
diff --git a/rules/lmbench.make b/rules/lmbench.make new file mode 100644 index 000000000..606bc2920 --- /dev/null +++ b/rules/lmbench.make @@ -0,0 +1,168 @@ +# -*-makefile-*- +# $Id: template-make 9053 2008-11-03 10:58:48Z wsa $ +# +# Copyright (C) 2009 by Robert Schwebel +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LMBENCH) += lmbench + +# +# Paths and names +# +LMBENCH_VERSION := 3.0-a9 +LMBENCH := lmbench-$(LMBENCH_VERSION) +LMBENCH_SUFFIX := tgz +LMBENCH_URL := $(PTXCONF_SETUP_SFMIRROR)/lmbench/$(LMBENCH).$(LMBENCH_SUFFIX) +LMBENCH_SOURCE := $(SRCDIR)/$(LMBENCH).$(LMBENCH_SUFFIX) +LMBENCH_DIR := $(BUILDDIR)/$(LMBENCH) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(LMBENCH_SOURCE): + @$(call targetinfo) + @$(call get, LMBENCH) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/lmbench.extract: + @$(call targetinfo) + @$(call clean, $(LMBENCH_DIR)) + @$(call extract, LMBENCH) + @$(call patchin, LMBENCH) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LMBENCH_PATH := PATH=$(CROSS_PATH) +LMBENCH_ENV := $(CROSS_ENV) + +# +# autoconf +# +LMBENCH_AUTOCONF := \ + $(CROSS_AUTOCONF_USR) \ + --disable-debug + +$(STATEDIR)/lmbench.prepare: + @$(call targetinfo) + @$(call clean, $(LMBENCH_DIR)/config.cache) + chmod +x $(LMBENCH_DIR)/configure + cd $(LMBENCH_DIR) && \ + $(LMBENCH_PATH) $(LMBENCH_ENV) \ + ./configure $(LMBENCH_AUTOCONF) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/lmbench.compile: + @$(call targetinfo) + cd $(LMBENCH_DIR) && $(LMBENCH_PATH) $(MAKE) $(PARALLELMFLAGS) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/lmbench.install: + @$(call targetinfo) + @$(call install, LMBENCH) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/lmbench.targetinstall: + @$(call targetinfo) + + @$(call install_init, lmbench) + @$(call install_fixup, lmbench,PACKAGE,lmbench) + @$(call install_fixup, lmbench,PRIORITY,optional) + @$(call install_fixup, lmbench,VERSION,$(LMBENCH_VERSION)) + @$(call install_fixup, lmbench,SECTION,base) + @$(call install_fixup, lmbench,AUTHOR,"Robert Schwebel") + @$(call install_fixup, lmbench,DEPENDS,) + @$(call install_fixup, lmbench,DESCRIPTION,missing) + + for file in \ + /usr/bin/par_mem \ + /usr/bin/lat_tcp \ + /usr/bin/par_ops \ + /usr/bin/lat_mmap \ + /usr/bin/hello \ + /usr/bin/bw_unix \ + /usr/bin/lat_syscall \ + /usr/bin/lat_sem \ + /usr/bin/lat_fs \ + /usr/bin/loop_o \ + /usr/bin/lat_fcntl \ + /usr/bin/lat_unix \ + /usr/bin/bw_tcp \ + /usr/bin/lat_rpc \ + /usr/bin/lat_unix_connect \ + /usr/bin/bw_file_rd \ + /usr/bin/disk \ + /usr/bin/lat_mem_rd \ + /usr/bin/lat_select \ + /usr/bin/lat_connect \ + /usr/bin/lat_fifo \ + /usr/bin/line \ + /usr/bin/timing_o \ + /usr/bin/lat_ctx \ + /usr/bin/bw_mem \ + /usr/bin/lat_sig \ + /usr/bin/lat_pipe \ + /usr/bin/lat_pagefault \ + /usr/bin/lmhttp \ + /usr/bin/tlb \ + /usr/bin/bw_pipe \ + /usr/bin/mhz \ + /usr/bin/lat_http \ + /usr/bin/msleep \ + /usr/bin/lat_ops \ + /usr/bin/lat_udp \ + /usr/bin/stream \ + /usr/bin/enough \ + /usr/bin/flushdisk \ + /usr/bin/lmdd \ + /usr/bin/lat_proc \ + /usr/bin/bw_mmap_rd \ + /usr/bin/memsize \ + ; do \ + $(call install_copy, lmbench, 0, 0, 0755, -, $$file); \ + done + + @$(call install_copy, lmbench, 0, 0, 0644, -, /usr/lib/liblmbench.so.0.0.0) + @$(call install_link, lmbench, liblmbench.so.0.0.0, /usr/lib/liblmbench.so.0) + @$(call install_link, lmbench, liblmbench.so.0.0.0, /usr/lib/liblmbench.so) + + @$(call install_finish, lmbench) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +lmbench_clean: + rm -rf $(STATEDIR)/lmbench.* + rm -rf $(PKGDIR)/lmbench_* + rm -rf $(LMBENCH_DIR) + +# vim: syntax=make |