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
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2002 by Pengutronix e.K., Hildesheim, Germany
# 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.
#
HOST_PACKAGES-$(PTXCONF_HOST_ZLIB) += host-zlib
#
# Paths and names
#
HOST_ZLIB_BUILDDIR = $(HOST_BUILDDIR)/$(ZLIB)
-include $(call package_depfile)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
host-zlib_get: $(STATEDIR)/host-zlib.get
$(STATEDIR)/host-zlib.get: $(STATEDIR)/zlib.get
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
host-zlib_extract: $(STATEDIR)/host-zlib.extract
$(STATEDIR)/host-zlib.extract: $(STATEDIR)/host-zlib.get
@$(call targetinfo, $@)
@$(call clean, $(HOST_ZLIB_BUILDDIR))
@$(call extract, $(ZLIB_SOURCE), $(HOST_BUILDDIR))
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
host-zlib_prepare: $(STATEDIR)/host-zlib.prepare
#
# autoconf without automake :-(
#
HOST_ZLIB_AUTOCONF = --prefix=$(PTXCONF_HOST_PREFIX)/usr
HOST_ZLIB_AUTOCOHF += --shared
HOST_ZLIB_MAKEVARS = $(HOSTCC_ENV)
$(STATEDIR)/host-zlib.prepare: $(STATEDIR)/host-zlib.extract
@$(call targetinfo, $@)
cd $(HOST_ZLIB_BUILDDIR) && \
./configure $(HOST_ZLIB_AUTOCONF)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
host-zlib_compile: $(STATEDIR)/host-zlib.compile
$(STATEDIR)/host-zlib.compile: $(STATEDIR)/host-zlib.prepare
@$(call targetinfo, $@)
cd $(HOST_ZLIB_BUILDDIR) && make $(HOST_ZLIB_MAKEVARS)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
host-zlib_install: $(STATEDIR)/host-zlib.install
$(STATEDIR)/host-zlib.install: $(STATEDIR)/host-zlib.compile
@$(call targetinfo, $@)
@$(call install, HOST_ZLIB, $(HOST_ZLIB_BUILDDIR),h)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
host-zlib_targetinstall: $(STATEDIR)/host-zlib.targetinstall
$(STATEDIR)/host-zlib.targetinstall: $(STATEDIR)/host-zlib.install
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
host-zlib_clean:
rm -rf $(STATEDIR)/host-zlib.*
rm -rf $(HOST_ZLIB_BUILDDIR)
# vim: syntax=make
|