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

« back to all changes in this revision

Viewing changes to debian/rules.d/binary-libobjc.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
ifeq ($(with_objcdev),yes)
 
2
  $(lib_binaries) += libobjc
 
3
endif
 
4
ifeq ($(with_lib64objc),yes)
 
5
  $(lib_binaries)  += lib64objc
 
6
endif
 
7
ifeq ($(with_lib32objc),yes)
 
8
  $(lib_binaries)       += lib32objc
 
9
endif
 
10
ifeq ($(with_libn32objc),yes)
 
11
  $(lib_binaries)       += libn32objc
 
12
endif
 
13
ifeq ($(with_libhfobjc),yes)
 
14
  $(lib_binaries)       += libhfobjc
 
15
endif
 
16
ifeq ($(with_libsfobjc),yes)
 
17
  $(lib_binaries)       += libsfobjc
 
18
endif
 
19
 
 
20
files_lobjc = \
 
21
        $(usr_lib$(2))/libobjc.so.*
 
22
ifeq ($(with_objc_gc),yes)
 
23
  files_lobjc += \
 
24
        $(usr_lib$(2))/libobjc_gc.so.*
 
25
endif
 
26
 
 
27
define __do_libobjc
 
28
        dh_testdir
 
29
        dh_testroot
 
30
        mv $(install_stamp) $(install_stamp)-tmp
 
31
 
 
32
        rm -rf $(d_l) $(d_d)
 
33
        dh_installdirs -p$(p_l) \
 
34
                $(usr_lib$(2))
 
35
        DH_COMPAT=2 dh_movefiles -p$(p_l) \
 
36
                $(files_lobjc)
 
37
 
 
38
        debian/dh_doclink -p$(p_l) $(p_base)
 
39
        debian/dh_doclink -p$(p_d) $(p_base)
 
40
 
 
41
        dh_strip -p$(p_l) --dbg-package=$(p_d)
 
42
        dh_compress -p$(p_l) -p$(p_d)
 
43
        dh_fixperms -p$(p_l) -p$(p_d)
 
44
        dh_makeshlibs -p$(p_l) -Xlibobjc_gc.so
 
45
        $(call cross_mangle_shlibs,$(p_l))
 
46
        DIRNAME=$(subst n,,$(2)) $(cross_shlibdeps) dh_shlibdeps -p$(p_l)
 
47
        $(call cross_mangle_substvars,$(p_l))
 
48
        dh_gencontrol -p$(p_l) -p$(p_d) \
 
49
                -- -v$(DEB_VERSION) $(common_substvars)
 
50
        $(call cross_mangle_control,$(p_l))
 
51
        dh_installdeb -p$(p_l) -p$(p_d)
 
52
        dh_md5sums -p$(p_l) -p$(p_d)
 
53
        dh_builddeb -p$(p_l) -p$(p_d)
 
54
 
 
55
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
56
endef
 
57
 
 
58
# ----------------------------------------------------------------------
 
59
 
 
60
do_libobjc = $(call __do_libobjc,lib$(1)objc$(OBJC_SONAME),$(1))
 
61
 
 
62
$(binary_stamp)-libobjc: $(install_stamp)
 
63
        $(call do_libobjc,)
 
64
 
 
65
$(binary_stamp)-lib64objc: $(install_stamp)
 
66
        $(call do_libobjc,64)
 
67
 
 
68
$(binary_stamp)-lib32objc: $(install_stamp)
 
69
        $(call do_libobjc,32)
 
70
 
 
71
$(binary_stamp)-libn32objc: $(install_stamp)
 
72
        $(call do_libobjc,n32)
 
73
 
 
74
$(binary_stamp)-libhfobjc: $(install_stamp)
 
75
        $(call do_libobjc,hf)
 
76
 
 
77
$(binary_stamp)-libsfobjc: $(install_stamp)
 
78
        $(call do_libobjc,sf)