summaryrefslogtreecommitdiffstats
path: root/rules/host-liblzo.make
blob: 885eb38396743782b48c9eb0f56d9f8a9e2c8b4d (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
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2007 by Marc Kleine-Budde <mkl@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
#
HOST_PACKAGES-$(PTXCONF_HOST_LIBLZO) += host-liblzo

#
# Paths and names
#
HOST_LIBLZO_DIR	= $(HOST_BUILDDIR)/$(LIBLZO)

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

host-liblzo_get: $(STATEDIR)/host-liblzo.get

$(STATEDIR)/host-liblzo.get: $(STATEDIR)/liblzo.get
	@$(call targetinfo, $@)
	@$(call touch, $@)

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

host-liblzo_extract: $(STATEDIR)/host-liblzo.extract

$(STATEDIR)/host-liblzo.extract:
	@$(call targetinfo, $@)
	@$(call clean, $(HOST_LIBLZO_DIR))
	@$(call extract, LIBLZO, $(HOST_BUILDDIR))
	@$(call patchin, LIBLZO, $(HOST_LIBLZO_DIR))
	@$(call touch, $@)

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

host-liblzo_prepare: $(STATEDIR)/host-liblzo.prepare

HOST_LIBLZO_PATH	:= PATH=$(HOST_PATH)
HOST_LIBLZO_ENV 	:= $(HOST_ENV)

#
# autoconf
#
HOST_LIBLZO_AUTOCONF	:= $(HOST_AUTOCONF)

$(STATEDIR)/host-liblzo.prepare:
	@$(call targetinfo, $@)
	@$(call clean, $(HOST_LIBLZO_DIR)/config.cache)
	cd $(HOST_LIBLZO_DIR) && \
		$(HOST_LIBLZO_PATH) $(HOST_LIBLZO_ENV) \
		./configure $(HOST_LIBLZO_AUTOCONF)
	@$(call touch, $@)

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

host-liblzo_compile: $(STATEDIR)/host-liblzo.compile

$(STATEDIR)/host-liblzo.compile:
	@$(call targetinfo, $@)
	cd $(HOST_LIBLZO_DIR) && $(HOST_LIBLZO_PATH) $(MAKE) $(PARALLELMFLAGS)
	@$(call touch, $@)

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

host-liblzo_install: $(STATEDIR)/host-liblzo.install

$(STATEDIR)/host-liblzo.install:
	@$(call targetinfo, $@)
	@$(call install, HOST_LIBLZO,,h)
	@$(call touch, $@)

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

host-liblzo_clean:
	rm -rf $(STATEDIR)/host-liblzo.*
	rm -rf $(HOST_LIBLZO_DIR)

# vim: syntax=make