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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# -*-makefile-*-
# $Id: xchain-ltt.make,v 1.2 2003/10/23 15:01:19 mkl Exp $
#
# Copyright (C) 2003 by Auerswald GmbH & Co. KG, Schandelah, Germany
# 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_LTT
XCHAIN += xchain-ltt
endif
XCHAIN_LTT_BUILDDIR = $(BUILDDIR)/xchain-$(LTT)-build
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
xchain-ltt_get: $(STATEDIR)/xchain-ltt.get
xchain-ltt_get_deps = \
$(STATEDIR)/ltt.get
$(STATEDIR)/xchain-ltt.get: $(xchain-ltt_get_geps)
@$(call targetinfo, $@)
touch $@
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
xchain-ltt_extract: $(STATEDIR)/xchain-ltt.extract
xchain-ltt_extract_deps = $(STATEDIR)/ltt.extract
$(STATEDIR)/xchain-ltt.extract: $(xchain-ltt_extract_deps)
@$(call targetinfo, $@)
touch $@
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
xchain-ltt_prepare: $(STATEDIR)/xchain-ltt.prepare
#
# dependencies
#
xchain-ltt_prepare_deps = \
$(STATEDIR)/xchain-ltt.extract
XCHAIN_LTT_ENV = $(HOSTCC_ENV)
#
# autoconf
#
XCHAIN_LTT_AUTOCONF = --prefix=$(PTXCONF_PREFIX) #--with-gtk=no
$(STATEDIR)/xchain-ltt.prepare: $(xchain-ltt_prepare_deps)
@$(call targetinfo, $@)
@$(call clean, $(XCHAIN_LTT_BUILDDIR))
mkdir -p $(XCHAIN_LTT_BUILDDIR)
#
# the Daemon/Scripts subdir is needed by 'make install'
# the Visualizer/Scripts subdir is needed by 'make install'
# so link to from the original sources dir
#
mkdir -p $(XCHAIN_LTT_BUILDDIR)/Daemon
ln -s $(LTT_DIR)/Daemon/Scripts $(XCHAIN_LTT_BUILDDIR)/Daemon
mkdir -p $(XCHAIN_LTT_BUILDDIR)/Visualizer
ln -s $(LTT_DIR)/Daemon/Scripts $(XCHAIN_LTT_BUILDDIR)/Visualizer
cd $(XCHAIN_LTT_BUILDDIR) && \
$(XCHAIN_LTT_ENV) \
$(LTT_DIR)/configure $(XCHAIN_LTT_AUTOCONF)
touch $@
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
xchain-ltt_compile: $(STATEDIR)/xchain-ltt.compile
xchain-ltt_compile_deps = \
$(STATEDIR)/xchain-ltt.prepare
$(STATEDIR)/xchain-ltt.compile: $(STATEDIR)/xchain-ltt.prepare
@$(call targetinfo, $@)
make -C $(XCHAIN_LTT_BUILDDIR)
touch $@
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
xchain-ltt_install: $(STATEDIR)/xchain-ltt.install
$(STATEDIR)/xchain-ltt.install: $(STATEDIR)/xchain-ltt.compile
@$(call targetinfo, $@)
make -C $(XCHAIN_LTT_BUILDDIR)/LibLTT install
make -C $(XCHAIN_LTT_BUILDDIR)/Visualizer install
touch $@
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
xchain-ltt_targetinstall: $(STATEDIR)/xchain-ltt.targetinstall
$(STATEDIR)/xchain-ltt.targetinstall:
@$(call targetinfo, $@)
touch $@
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
xchain-ltt_clean:
rm -rf $(STATEDIR)/xchain-ltt.* $(XCHAIN_LTT_BUILDDIR)
# vim: syntax=make
|