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
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2002, 2003 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.
#
#
# We provide this package
#
ifdef PTXCONF_UTELNETD
PACKAGES += utelnetd
endif
#
# Paths and names
#
UTELNETD = utelnetd-0.1.6
UTELNETD_URL = http://www.pengutronix.de/software/utelnetd/$(UTELNETD).tar.gz
UTELNETD_SOURCE = $(SRCDIR)/$(UTELNETD).tar.gz
UTELNETD_DIR = $(BUILDDIR)/$(UTELNETD)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
utelnetd_get: $(STATEDIR)/utelnetd.get
$(STATEDIR)/utelnetd.get: $(UTELNETD_SOURCE)
@$(call targetinfo, $@)
touch $@
$(UTELNETD_SOURCE):
@$(call targetinfo, $@)
@$(call get, $(UTELNETD_URL))
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
utelnetd_extract: $(STATEDIR)/utelnetd.extract
$(STATEDIR)/utelnetd.extract: $(STATEDIR)/utelnetd.get
@$(call targetinfo, $@)
@$(call clean, $(UTELNETS_DIR))
@$(call extract, $(UTELNETD_SOURCE))
touch $@
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
utelnetd_prepare: $(STATEDIR)/utelnetd.prepare
utelnetd_prepare_deps = \
$(STATEDIR)/virtual-xchain.install \
$(STATEDIR)/utelnetd.extract
$(STATEDIR)/utelnetd.prepare: $(utelnetd_prepare_deps)
@$(call targetinfo, $@)
touch $@
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
utelnetd_compile: $(STATEDIR)/utelnetd.compile
UTELNETD_ENVIRONMENT += PATH=$(CROSS_PATH)
UTELNETD_MAKEVARS += CROSS=$(COMPILER_PREFIX)
$(STATEDIR)/utelnetd.compile: $(STATEDIR)/utelnetd.prepare
@$(call targetinfo, $@)
$(UTELNETD_ENVIRONMENT) make -C $(UTELNETD_DIR) $(UTELNETD_MAKEVARS)
touch $@
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
utelnetd_install: $(STATEDIR)/utelnetd.install
$(STATEDIR)/utelnetd.install: $(STATEDIR)/utelnetd.compile
@$(call targetinfo, $@)
touch $@
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
utelnetd_targetinstall: $(STATEDIR)/utelnetd.targetinstall
$(STATEDIR)/utelnetd.targetinstall: $(STATEDIR)/utelnetd.install
@$(call targetinfo, $@)
install -D $(UTELNETD_DIR)/utelnetd $(ROOTDIR)/sbin/utelnetd
$(CROSSSTRIP) -R .note -R .comment $(ROOTDIR)/sbin/utelnetd
touch $@
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
utelnetd_clean:
rm -rf $(STATEDIR)/utelnetd.* $(UTELNETD_DIR)
# vim: syntax=make
|