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
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2005 Ladislav Michl <ladis@linux-mips.org>
#
# 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_FLEX254) += host-flex254
#
# Paths and names
#
HOST_FLEX254_DIR = $(HOST_BUILDDIR)/$(FLEX)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
host-flex254_get: $(STATEDIR)/host-flex254.get
$(STATEDIR)/host-flex254.get: $(STATE)/flex254.get
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
host-flex254_extract: $(STATEDIR)/host-flex254.extract
$(STATEDIR)/host-flex254.extract: $(host-flex254_extract_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(HOST_FLEX254_DIR))
@$(call extract, FLEX, $(HOST_BUILDDIR))
@$(call patchin, FLEX, $(HOST_BUILDDIR))
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
host-flex254_prepare: $(STATEDIR)/host-flex254.prepare
HOST_FLEX254_PATH = PATH=$(CROSS_PATH)
HOST_FLEX254_ENV = $(HOSTCC_ENV)
#
# autoconf, but without automake :-(
#
HOST_FLEX254_AUTOCONF = --prefix=$(PTXCONF_PREFIX)/usr
$(STATEDIR)/host-flex254.prepare: $(host-flex254_prepare_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(HOST_FLEX254_DIR)/config.cache)
cd $(HOST_FLEX254_DIR) && \
$(HOST_FLEX254_PATH) $(HOST_FLEX254_ENV) \
./configure $(HOST_FLEX254_AUTOCONF)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
host-flex254_compile: $(STATEDIR)/host-flex254.compile
$(STATEDIR)/host-flex254.compile: $(host-flex254_compile_deps_default)
@$(call targetinfo, $@)
cd $(HOST_FLEX254_DIR) && $(HOST_FLEX254_PATH) make
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
host-flex254_install: $(STATEDIR)/host-flex254.install
$(STATEDIR)/host-flex254.install: $(host-flex254_install_deps_default)
@$(call targetinfo, $@)
@$(call install, HOST_FLEX254,,h)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
host-flex254_targetinstall: $(STATEDIR)/host-flex254.targetinstall
$(STATEDIR)/host-flex254.targetinstall: $(host-flex254_targetinstall_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
host-flex254_clean:
rm -rf $(STATEDIR)/host-flex254.*
rm -rf $(HOST_FLEX254_DIR)
# vim: syntax=make
|