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
|
# -*-makefile-*-
# $Id: wireless.make,v 1.3 2003/10/23 15:01:19 mkl Exp $
#
# Copyright (C) 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_WIRELESS
PACKAGES += wireless
endif
#
# Paths and names
#
WIRELESS_VERSION = 26
WIRELESS = wireless_tools.$(WIRELESS_VERSION)
WIRELESS_SUFFIX = tar.gz
WIRELESS_URL = http://pcmcia-cs.sourceforge.net/ftp/contrib/$(WIRELESS).$(WIRELESS_SUFFIX)
WIRELESS_SOURCE = $(SRCDIR)/$(WIRELESS).$(WIRELESS_SUFFIX)
WIRELESS_DIR = $(BUILDDIR)/$(WIRELESS)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
wireless_get: $(STATEDIR)/wireless.get
wireless_get_deps = $(WIRELESS_SOURCE)
$(STATEDIR)/wireless.get: $(wireless_get_deps)
@$(call targetinfo, $@)
touch $@
$(WIRELESS_SOURCE):
@$(call targetinfo, $@)
@$(call get, $(WIRELESS_URL))
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
wireless_extract: $(STATEDIR)/wireless.extract
wireless_extract_deps = $(STATEDIR)/wireless.get
$(STATEDIR)/wireless.extract: $(wireless_extract_deps)
@$(call targetinfo, $@)
@$(call clean, $(WIRELESS_DIR))
@$(call extract, $(WIRELESS_SOURCE))
touch $@
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
wireless_prepare: $(STATEDIR)/wireless.prepare
wireless_prepare_deps = $(STATEDIR)/wireless.extract
$(STATEDIR)/wireless.prepare: $(wireless_prepare_deps)
@$(call targetinfo, $@)
touch $@
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
wireless_compile: $(STATEDIR)/wireless.compile
wireless_compile_deps = $(STATEDIR)/wireless.prepare
$(STATEDIR)/wireless.compile: $(wireless_compile_deps)
@$(call targetinfo, $@)
make -C $(WIRELESS_DIR)
touch $@
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
wireless_install: $(STATEDIR)/wireless.install
wireless_compile_deps = $(STATEDIR)/wireless.compile
$(STATEDIR)/wireless.install: $(wireless_compile_deps)
@$(call targetinfo, $@)
touch $@
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
wireless_targetinstall: $(STATEDIR)/wireless.targetinstall
$(STATEDIR)/wireless.targetinstall: $(STATEDIR)/wireless.install
@$(call targetinfo, $@)
# TODO
touch $@
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
wireless_clean:
rm -rf $(STATEDIR)/wireless.* $(WIRELESS_DIR)
# vim: syntax=make
|