~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/config/makefiles/target_libs.mk

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- makefile -*-
 
2
# vim:set ts=8 sw=8 sts=8 noet:
 
3
#
 
4
# This Source Code Form is subject to the terms of the Mozilla Public
 
5
# License, v. 2.0. If a copy of the MPL was not distributed with this
 
6
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
7
 
 
8
PARALLEL_DIRS_libs = $(addsuffix _libs,$(PARALLEL_DIRS))
 
9
 
 
10
.PHONY: libs $(PARALLEL_DIRS_libs)
 
11
 
 
12
###############
 
13
## TIER targets
 
14
###############
 
15
libs_tier_%:
 
16
        @$(ECHO) "$@"
 
17
        @$(MAKE_TIER_SUBMAKEFILES)
 
18
        $(foreach dir,$(tier_$*_dirs),$(call SUBMAKE,libs,$(dir)))
 
19
 
 
20
#################
 
21
## Common targets
 
22
#################
 
23
ifdef PARALLEL_DIRS
 
24
libs:: $(PARALLEL_DIRS_libs)
 
25
 
 
26
$(PARALLEL_DIRS_libs): %_libs: %/Makefile
 
27
        +@$(call SUBMAKE,libs,$*)
 
28
endif
 
29
 
 
30
 
 
31
####################
 
32
##
 
33
####################
 
34
ifdef EXPORT_LIBRARY
 
35
ifeq ($(EXPORT_LIBRARY),1)
 
36
ifdef IS_COMPONENT
 
37
EXPORT_LIBRARY = $(DEPTH)/staticlib/components
 
38
else
 
39
EXPORT_LIBRARY = $(DEPTH)/staticlib
 
40
endif
 
41
else
 
42
# If EXPORT_LIBRARY has a value, we'll be installing there. We also need to cleanup there
 
43
GARBAGE += $(foreach lib,$(LIBRARY),$(EXPORT_LIBRARY)/$(lib))
 
44
endif
 
45
endif # EXPORT_LIBRARY
 
46
 
 
47
libs:: $(SUBMAKEFILES) $(MAKE_DIRS) $(HOST_LIBRARY) $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY) $(HOST_PROGRAM) $(PROGRAM) $(HOST_SIMPLE_PROGRAMS) $(SIMPLE_PROGRAMS) $(JAVA_LIBRARY)
 
48
ifndef NO_DIST_INSTALL
 
49
ifdef LIBRARY
 
50
ifdef EXPORT_LIBRARY # Stage libs that will be linked into a static build
 
51
        $(INSTALL) $(IFLAGS1) $(LIBRARY) $(EXPORT_LIBRARY)
 
52
endif # EXPORT_LIBRARY
 
53
ifdef DIST_INSTALL
 
54
ifdef IS_COMPONENT
 
55
        $(error Shipping static component libs makes no sense.)
 
56
else
 
57
        $(INSTALL) $(IFLAGS1) $(LIBRARY) $(DIST)/lib
 
58
endif
 
59
endif # DIST_INSTALL
 
60
endif # LIBRARY
 
61
ifdef SHARED_LIBRARY
 
62
ifdef IS_COMPONENT
 
63
        $(INSTALL) $(IFLAGS2) $(SHARED_LIBRARY) $(FINAL_TARGET)/components
 
64
        $(ELF_DYNSTR_GC) $(FINAL_TARGET)/components/$(SHARED_LIBRARY)
 
65
ifndef NO_COMPONENTS_MANIFEST
 
66
        @$(PYTHON) $(MOZILLA_DIR)/config/buildlist.py $(FINAL_TARGET)/chrome.manifest "manifest components/components.manifest"
 
67
        @$(PYTHON) $(MOZILLA_DIR)/config/buildlist.py $(FINAL_TARGET)/components/components.manifest "binary-component $(SHARED_LIBRARY)"
 
68
endif
 
69
else # ! IS_COMPONENT
 
70
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))
 
71
ifndef NO_INSTALL_IMPORT_LIBRARY
 
72
        $(INSTALL) $(IFLAGS2) $(IMPORT_LIBRARY) $(DIST)/lib
 
73
endif
 
74
else
 
75
        $(INSTALL) $(IFLAGS2) $(SHARED_LIBRARY) $(DIST)/lib
 
76
endif
 
77
        $(INSTALL) $(IFLAGS2) $(SHARED_LIBRARY) $(FINAL_TARGET)
 
78
endif # IS_COMPONENT
 
79
endif # SHARED_LIBRARY
 
80
ifdef PROGRAM
 
81
        $(INSTALL) $(IFLAGS2) $(PROGRAM) $(FINAL_TARGET)
 
82
endif
 
83
ifdef SIMPLE_PROGRAMS
 
84
        $(INSTALL) $(IFLAGS2) $(SIMPLE_PROGRAMS) $(FINAL_TARGET)
 
85
endif
 
86
ifdef HOST_PROGRAM
 
87
        $(INSTALL) $(IFLAGS2) $(HOST_PROGRAM) $(DIST)/host/bin
 
88
endif
 
89
ifdef HOST_SIMPLE_PROGRAMS
 
90
        $(INSTALL) $(IFLAGS2) $(HOST_SIMPLE_PROGRAMS) $(DIST)/host/bin
 
91
endif
 
92
ifdef HOST_LIBRARY
 
93
        $(INSTALL) $(IFLAGS1) $(HOST_LIBRARY) $(DIST)/host/lib
 
94
endif
 
95
ifdef JAVA_LIBRARY
 
96
ifdef IS_COMPONENT
 
97
        $(INSTALL) $(IFLAGS1) $(JAVA_LIBRARY) $(FINAL_TARGET)/components
 
98
else
 
99
        $(INSTALL) $(IFLAGS1) $(JAVA_LIBRARY) $(FINAL_TARGET)
 
100
endif
 
101
endif # JAVA_LIBRARY
 
102
endif # !NO_DIST_INSTALL
 
103
        $(LOOP_OVER_DIRS)
 
104
 
 
105
# EOF