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
|
ifeq ($(with_libgccjit),yes)
$(lib_binaries) += libgccjit
endif
$(lib_binaries) += libgccjitdev
ifneq ($(DEB_CROSS),yes)
indep_binaries := $(indep_binaries) libgccjitdoc
endif
p_jitlib = libgccjit$(GCCJIT_SONAME)
p_jitdbg = libgccjit$(GCCJIT_SONAME)-dbg
p_jitdev = libgccjit$(pkg_ver)-dev
p_jitdoc = libgccjit$(pkg_ver)-doc
d_jitlib = debian/$(p_jitlib)
d_jitdev = debian/$(p_jitdev)
d_jitdbg = debian/$(p_jitdbg)
d_jitdoc = debian/$(p_jitdoc)
$(binary_stamp)-libgccjit: $(install_jit_stamp)
dh_testdir
dh_testroot
mv $(install_stamp) $(install_stamp)-tmp
rm -rf $(d_jitlib) $(d_jitdbg)
dh_installdirs -p$(p_jitlib) \
$(usr_lib)
ifeq ($(with_dbg),yes)
dh_installdirs -p$(p_jitdbg)
endif
$(dh_compat2) dh_movefiles -p$(p_jitlib) \
$(usr_lib)/libgccjit.so.*
rm -f $(d)/$(usr_lib)/libgccjit.so
debian/dh_doclink -p$(p_jitlib) $(p_base)
ifeq ($(with_dbg),yes)
debian/dh_doclink -p$(p_jitdbg) $(p_base)
endif
$(call do_strip_lib_dbg, $(p_jitlib), $(p_jitdbg), $(v_dbg),,)
$(cross_makeshlibs) dh_makeshlibs -p$(p_jitlib)
$(call cross_mangle_shlibs,$(p_jitlib))
$(ignshld)$(cross_shlibdeps) dh_shlibdeps -p$(p_jitlib) \
$(if $(filter yes, $(with_common_libs)),,-- -Ldebian/shlibs.common$(2))
$(call cross_mangle_substvars,$(p_jitlib))
echo $(p_jitlib) $(if $(with_dbg), $(p_jitdbg)) >> debian/arch_binaries
trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
touch $@
$(binary_stamp)-libgccjitdev: $(install_jit_stamp)
dh_testdir
dh_testroot
mv $(install_stamp) $(install_stamp)-tmp
rm -rf $(d_jitdev)
dh_installdirs -p$(p_jitdev) \
$(usr_lib) \
$(gcc_lib_dir)/include
rm -f $(d)/$(usr_lib)/libgccjit.so
$(dh_compat2) dh_movefiles -p$(p_jitdev) \
$(gcc_lib_dir)/include/libgccjit*.h
dh_link -p$(p_jitdev) \
$(usr_lib)/libgccjit.so.$(GCCJIT_SONAME) $(gcc_lib_dir)/libgccjit.so
debian/dh_doclink -p$(p_jitdev) $(p_base)
echo $(p_jitdev) >> debian/arch_binaries
trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
touch $@
$(binary_stamp)-libgccjitdoc: $(install_jit_stamp)
dh_testdir
dh_testroot
mv $(install_stamp) $(install_stamp)-tmp
rm -rf $(d_jitdoc)
dh_installdirs -p$(p_jitdoc) \
$(PF)/share/info/libgccjit-figures
$(dh_compat2) dh_movefiles -p$(p_jitdoc) \
$(PF)/share/info/libgccjit*
cp -p $(srcdir)/gcc/jit/docs/_build/texinfo/libgccjit-figures/*.png \
$(d_jitdoc)/$(PF)/share/info/libgccjit-figures/.
debian/dh_doclink -p$(p_jitdoc) $(p_base)
echo $(p_jitdoc) >> debian/indep_binaries
trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
touch $@
|