summaryrefslogtreecommitdiffstats
path: root/rules/hackbench.make
blob: 6798aa1b3468978d0c7c86d20b9dd1ad87a4dc06 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# -*-makefile-*-
# $Id: template 6655 2007-01-02 12:55:21Z rsc $
#
# Copyright (C) 2007 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# 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_HACKBENCH) += hackbench

#
# Paths and names
#
HACKBENCH_VERSION	:= 20070821-1
HACKBENCH		:= hackbench-$(HACKBENCH_VERSION)
HACKBENCH_SUFFIX	:= tar.bz2
HACKBENCH_URL		:= http://www.pengutronix.de/software/ptxdist/temporary-src/$(HACKBENCH).$(HACKBENCH_SUFFIX)
HACKBENCH_SOURCE	:= $(SRCDIR)/$(HACKBENCH).$(HACKBENCH_SUFFIX)
HACKBENCH_DIR		:= $(BUILDDIR)/$(HACKBENCH)

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

hackbench_get: $(STATEDIR)/hackbench.get

$(STATEDIR)/hackbench.get: $(hackbench_get_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

$(HACKBENCH_SOURCE):
	@$(call targetinfo, $@)
	@$(call get, HACKBENCH)

# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------

hackbench_extract: $(STATEDIR)/hackbench.extract

$(STATEDIR)/hackbench.extract: $(hackbench_extract_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(HACKBENCH_DIR))
	@$(call extract, HACKBENCH)
	@$(call patchin, HACKBENCH)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

hackbench_prepare: $(STATEDIR)/hackbench.prepare

HACKBENCH_PATH	:= PATH=$(CROSS_PATH)
HACKBENCH_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
HACKBENCH_AUTOCONF := $(CROSS_AUTOCONF_USR)

$(STATEDIR)/hackbench.prepare: $(hackbench_prepare_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

hackbench_compile: $(STATEDIR)/hackbench.compile

$(STATEDIR)/hackbench.compile: $(hackbench_compile_deps_default)
	@$(call targetinfo, $@)
	cd $(HACKBENCH_DIR) && $(HACKBENCH_PATH) CC=$(CROSS_CC) $(MAKE) $(PARALLELMFLAGS) hackbench
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

hackbench_install: $(STATEDIR)/hackbench.install

$(STATEDIR)/hackbench.install: $(hackbench_install_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

hackbench_targetinstall: $(STATEDIR)/hackbench.targetinstall

$(STATEDIR)/hackbench.targetinstall: $(hackbench_targetinstall_deps_default)
	@$(call targetinfo, $@)

	@$(call install_init, hackbench)
	@$(call install_fixup, hackbench,PACKAGE,hackbench)
	@$(call install_fixup, hackbench,PRIORITY,optional)
	@$(call install_fixup, hackbench,VERSION,$(HACKBENCH_VERSION))
	@$(call install_fixup, hackbench,SECTION,base)
	@$(call install_fixup, hackbench,AUTHOR,"Michael Olbrich <m.olbrich\@pengutronix.de>")
	@$(call install_fixup, hackbench,DEPENDS,)
	@$(call install_fixup, hackbench,DESCRIPTION,missing)

	@$(call install_copy, hackbench, 0, 0, 0755, $(HACKBENCH_DIR)/hackbench, /usr/bin/hackbench)

	@$(call install_finish, hackbench)

	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

hackbench_clean:
	rm -rf $(STATEDIR)/hackbench.*
	rm -rf $(PKGDIR)/hackbench_*
	rm -rf $(HACKBENCH_DIR)

# vim: syntax=make