summaryrefslogtreecommitdiffstats
path: root/rules/gcclibs.make
blob: 897f6b14307af36658280fed099ae902ca28bd71 (plain)
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
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2004 by Robert Schwebel
#                       Marc Kleine-Budde <kleine-budde@gmx.de>
#               2005 by Marc Kleine-Budde <mkl@pengutronix.de>, Pengutronix
#          
# 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
#
PACKAGES-$(PTXCONF_GCCLIBS_GCC_S) += gcclibs


# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

gcclibs_get: $(STATEDIR)/gcclibs.get

$(STATEDIR)/gcclibs.get:
	@$(call targetinfo, $@)
	@$(call touch, $@)

-include $(call package_depfile)

# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------

gcclibs_extract: $(STATEDIR)/gcclibs.extract

gcclibs_extract_deps = $(STATEDIR)/gcclibs.get

$(STATEDIR)/gcclibs.extract: $(gcclibs_extract_deps)
	@$(call targetinfo, $@)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

gcclibs_prepare: $(STATEDIR)/gcclibs.prepare

gcclibs_prepare_deps = $(STATEDIR)/gcclibs.extract

$(STATEDIR)/gcclibs.prepare: $(gcclibs_prepare_deps)
	@$(call targetinfo, $@)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

gcclibs_compile: $(STATEDIR)/gcclibs.compile

gcclibs_compile_deps = $(STATEDIR)/gcclibs.prepare

$(STATEDIR)/gcclibs.compile: $(gcclibs_compile_deps)
	@$(call targetinfo, $@)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

gcclibs_install: $(STATEDIR)/gcclibs.install

$(STATEDIR)/gcclibs.install: $(STATEDIR)/gcclibs.compile
	@$(call targetinfo, $@)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

gcclibs_targetinstall: $(STATEDIR)/gcclibs.targetinstall

gcclibs_targetinstall_deps = $(STATEDIR)/gcclibs.compile

$(STATEDIR)/gcclibs.targetinstall: $(gcclibs_targetinstall_deps)
	@$(call targetinfo, $@)

	@$(call install_init,default)
	@$(call install_fixup,PACKAGE,gcclibs)
	@$(call install_fixup,PRIORITY,optional)
	@$(call install_fixup,VERSION,$(shell $(CROSS_CC) -dumpversion))
	@$(call install_fixup,SECTION,base)
	@$(call install_fixup,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
	@$(call install_fixup,DEPENDS,)
	@$(call install_fixup,DESCRIPTION,missing)

ifdef PTXCONF_GCCLIBS_CXX
	@$(call install_copy_toolchain_lib, libstdc++.so, /usr/lib)
endif

ifdef PTXCONF_GCCLIBS_GCC_S
	@$(call install_copy_toolchain_lib, libgcc_s.so, /lib)
endif

ifdef PTXCONF_GCCLIBS_GCC_S_NOF
	@$(call install_copy_toolchain_lib, libgcc_s_nof.so, /lib)
endif

	@$(call install_finish)

	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

gcclibs_clean:
	rm -rf $(STATEDIR)/gcclibs.*

# vim: syntax=make