~ubuntu-branches/ubuntu/raring/gcc-4.7/raring

« back to all changes in this revision

Viewing changes to debian/rules.d/binary-libquadmath.mk

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-12-17 23:19:46 UTC
  • Revision ID: package-import@ubuntu.com-20111217231946-n668coanjbjgqxq7
Tags: 4.7-20111217-1
* GCC-4.7 snapshot build.
  - Including the GFDL documentation; will stay in experimental
    until the 4.7.0 release sometime next year.
* Update patches for the trunk.
* Update symbols files.
* Build libitm packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
$(lib_binaries)  += libqmath
 
2
ifeq ($(with_lib64qmath),yes)
 
3
  $(lib_binaries)  += lib64qmath
 
4
endif
 
5
ifeq ($(with_lib32qmath),yes)
 
6
  $(lib_binaries)       += lib32qmath
 
7
endif
 
8
ifeq ($(with_libn32qmath),yes)
 
9
  $(lib_binaries)       += libn32qmath
 
10
endif
 
11
ifeq ($(with_libhfqmath),yes)
 
12
  $(lib_binaries)       += libhfqmath
 
13
endif
 
14
ifeq ($(with_libsfqmath),yes)
 
15
  $(lib_binaries)       += libsfqmath
 
16
endif
 
17
 
 
18
define __do_qmath
 
19
        dh_testdir
 
20
        dh_testroot
 
21
        mv $(install_stamp) $(install_stamp)-tmp
 
22
 
 
23
        rm -rf $(d_l) $(d_d)
 
24
        dh_installdirs -p$(p_l) $(2)
 
25
        DH_COMPAT=2 dh_movefiles -p$(p_l) $(2)/libquadmath.so.*
 
26
 
 
27
        debian/dh_doclink -p$(p_l) $(p_base)
 
28
        debian/dh_doclink -p$(p_d) $(p_base)
 
29
 
 
30
        dh_strip -p$(p_l) --dbg-package=$(p_d)
 
31
        dh_compress -p$(p_l) -p$(p_d)
 
32
        dh_fixperms -p$(p_l) -p$(p_d)
 
33
        dh_makeshlibs -p$(p_l)
 
34
        $(call cross_mangle_shlibs,$(p_l))
 
35
        $(cross_shlibdeps) dh_shlibdeps -p$(p_l)
 
36
        $(call cross_mangle_substvars,$(p_l))
 
37
        dh_gencontrol -p$(p_l) -p$(p_d) \
 
38
                -- -v$(DEB_VERSION) $(common_substvars)
 
39
        $(call cross_mangle_control,$(p_l))
 
40
        dh_installdeb -p$(p_l) -p$(p_d)
 
41
        dh_md5sums -p$(p_l) -p$(p_d)
 
42
        dh_builddeb -p$(p_l) -p$(p_d)
 
43
 
 
44
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
45
endef
 
46
 
 
47
# ----------------------------------------------------------------------
 
48
 
 
49
do_qmath = $(call __do_qmath,lib$(1)quadmath$(QMATH_SONAME),$(usr_lib$(1)))
 
50
 
 
51
$(binary_stamp)-libqmath: $(install_stamp)
 
52
        $(call do_qmath,)
 
53
 
 
54
$(binary_stamp)-lib64qmath: $(install_stamp)
 
55
        $(call do_qmath,64)
 
56
 
 
57
$(binary_stamp)-lib32qmath: $(install_stamp)
 
58
        $(call do_qmath,32)
 
59
 
 
60
$(binary_stamp)-libn32qmath: $(install_stamp)
 
61
        $(call do_qmath,n32)
 
62
 
 
63
$(binary_stamp)-libhfqmath: $(install_stamp)
 
64
        $(call do_qmath,hf)
 
65
 
 
66
$(binary_stamp)-libsfqmath: $(install_stamp)
 
67
        $(call do_qmath,sf)