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

« back to all changes in this revision

Viewing changes to mozilla/config/Makefile.in

  • 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
#
 
3
# This Source Code Form is subject to the terms of the Mozilla Public
 
4
# License, v. 2.0. If a copy of the MPL was not distributed with this
 
5
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
6
 
 
7
DEPTH           = @DEPTH@
 
8
topsrcdir       = @top_srcdir@
 
9
srcdir          = @srcdir@
 
10
VPATH           = @srcdir@
 
11
 
 
12
include $(DEPTH)/config/autoconf.mk
 
13
 
 
14
# For sanity's sake, we compile nsinstall without the wrapped system
 
15
# headers, so that we can use it to set up the wrapped system headers.
 
16
VISIBILITY_FLAGS =
 
17
 
 
18
# STDCXX_COMPAT is not needed here, and will actually fail because
 
19
# libstdc++-compat is not built yet.
 
20
STDCXX_COMPAT =
 
21
 
 
22
ifneq (WINNT,$(HOST_OS_ARCH))
 
23
HOST_PROGRAM    = nsinstall$(HOST_BIN_SUFFIX)
 
24
HOST_CSRCS      = nsinstall.c pathsub.c
 
25
endif
 
26
 
 
27
TARGETS         = $(HOST_PROGRAM) $(SIMPLE_PROGRAMS)
 
28
 
 
29
ifndef CROSS_COMPILE
 
30
ifdef USE_ELF_DYNSTR_GC
 
31
TARGETS         += elf-dynstr-gc
 
32
# Compiling the above will create dependency files.
 
33
NEED_MDDEPDIR   = 1
 
34
endif
 
35
endif
 
36
 
 
37
# IMPORTANT: Disable NSBUILDROOT for this directory only, otherwise we have
 
38
# a recursive rule for finding nsinstall and the Perl scripts.
 
39
ifdef NSBUILDROOT
 
40
override NSBUILDROOT :=
 
41
endif
 
42
 
 
43
ifdef GNU_CC
 
44
MODULE_OPTIMIZE_FLAGS = -O3
 
45
endif
 
46
 
 
47
ifndef COMPILER_DEPEND
 
48
ifndef MOZ_NATIVE_MAKEDEPEND
 
49
DIRS            += mkdepend
 
50
endif
 
51
endif
 
52
 
 
53
include $(topsrcdir)/config/config.mk
 
54
 
 
55
# Do not install util programs
 
56
NO_INSTALL=1
 
57
 
 
58
include $(topsrcdir)/config/rules.mk
 
59
 
 
60
HOST_CFLAGS += -DUNICODE -D_UNICODE
 
61
 
 
62
ifeq ($(OS_CONFIG),SunOS4.1)
 
63
NSPR_CFLAGS     += -I$(srcdir)/../nsprpub/pr/include/md
 
64
endif
 
65
 
 
66
HEADERS = \
 
67
        $(DEPTH)/mozilla-config.h \
 
68
        $(srcdir)/nsStaticComponents.h \
 
69
        $(NULL)
 
70
 
 
71
export:: $(TARGETS) $(HEADERS)
 
72
        $(INSTALL) $(IFLAGS1) $(HEADERS) $(DIST)/include
 
73
        -$(RM) $(FINAL_LINK_COMPS) $(FINAL_LINK_LIBS) $(FINAL_LINK_COMP_NAMES)
 
74
ifdef HOST_PROGRAM
 
75
        $(INSTALL) $(HOST_PROGRAM) $(DIST)/bin
 
76
endif
 
77
 
 
78
# Generate a new buildid every time we "export" in config... that's only
 
79
# supposed to be once per-build!
 
80
export::
 
81
ifdef MOZ_BUILD_DATE
 
82
        printf "%s" $(MOZ_BUILD_DATE) > buildid
 
83
else
 
84
        $(PYTHON) $(topsrcdir)/toolkit/xre/make-platformini.py --print-buildid > buildid
 
85
endif
 
86
 
 
87
ifdef WRAP_SYSTEM_INCLUDES
 
88
export-preqs = \
 
89
  $(call mkdir_deps,system_wrappers) \
 
90
  $(NULL)
 
91
 
 
92
export:: $(export-preqs)
 
93
        $(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) $(ACDEFINES) \
 
94
                -DMOZ_TREE_CAIRO=$(MOZ_TREE_CAIRO) \
 
95
                -DMOZ_TREE_PIXMAN=$(MOZ_TREE_PIXMAN) \
 
96
                -DMOZ_NATIVE_HUNSPELL=$(MOZ_NATIVE_HUNSPELL) \
 
97
                -DMOZ_NATIVE_BZ2=$(MOZ_NATIVE_BZ2) \
 
98
                -DMOZ_NATIVE_ZLIB=$(MOZ_NATIVE_ZLIB) \
 
99
                -DMOZ_NATIVE_PNG=$(MOZ_NATIVE_PNG) \
 
100
                -DMOZ_NATIVE_JPEG=$(MOZ_NATIVE_JPEG) \
 
101
                -DMOZ_NATIVE_LIBEVENT=$(MOZ_NATIVE_LIBEVENT) \
 
102
                -DMOZ_NATIVE_LIBVPX=$(MOZ_NATIVE_LIBVPX) \
 
103
                $(srcdir)/system-headers | $(PERL) $(topsrcdir)/nsprpub/config/make-system-wrappers.pl system_wrappers
 
104
        $(INSTALL) system_wrappers $(DIST)
 
105
 
 
106
GARBAGE_DIRS += system_wrappers
 
107
endif
 
108
 
 
109
ifdef WRAP_STL_INCLUDES
 
110
ifdef GNU_CXX
 
111
stl_compiler = gcc
 
112
else
 
113
ifdef _MSC_VER
 
114
stl_compiler = msvc
 
115
endif
 
116
endif
 
117
endif
 
118
 
 
119
ifdef stl_compiler
 
120
STL_WRAPPERS_SENTINEL = $(DIST)/stl_wrappers/sentinel
 
121
 
 
122
$(STL_WRAPPERS_SENTINEL): $(srcdir)/make-stl-wrappers.py $(srcdir)/$(stl_compiler)-stl-wrapper.template.h $(srcdir)/stl-headers $(GLOBAL_DEPS)
 
123
        $(PYTHON) $(srcdir)/make-stl-wrappers.py stl_wrappers $(stl_compiler) $(srcdir)/$(stl_compiler)-stl-wrapper.template.h $(srcdir)/stl-headers
 
124
        $(PYTHON) $(srcdir)/nsinstall.py stl_wrappers $(DIST)
 
125
        touch $(STL_WRAPPERS_SENTINEL)
 
126
 
 
127
export:: $(STL_WRAPPERS_SENTINEL)
 
128
 
 
129
GARBAGE += $(STL_WRAPPERS_SENTINEL)
 
130
GARBAGE_DIRS += stl_wrappers
 
131
endif
 
132
 
 
133
install::
 
134
        $(SYSINSTALL) $(IFLAGS1) $(DEPTH)/mozilla-config.h $(DESTDIR)$(includedir)
 
135
 
 
136
GARBAGE += \
 
137
  $(FINAL_LINK_COMPS) $(FINAL_LINK_LIBS) $(FINAL_LINK_COMP_NAMES) buildid $(srcdir)/*.pyc *.pyc
 
138
 
 
139
ifndef CROSS_COMPILE
 
140
ifdef USE_ELF_DYNSTR_GC
 
141
elf-dynstr-gc: elf-dynstr-gc.c $(GLOBAL_DEPS)
 
142
        $(CC) $(COMPILE_CFLAGS) $(GLIB_CFLAGS) -o $@ $< $(LDFLAGS) $(GLIB_LIBS) 
 
143
endif
 
144
endif
 
145
 
 
146
FORCE:
 
147
 
 
148
ifndef COMPILER_DEPEND
 
149
ifdef MKDEPEND_DIR
 
150
clean clobber realclean clobber_all::
 
151
        cd $(MKDEPEND_DIR); $(MAKE) $@
 
152
endif
 
153
endif
 
154
 
 
155
PYUNITS := \
 
156
  unit-Expression.py \
 
157
  unit-Preprocessor.py \
 
158
  unit-nsinstall.py \
 
159
  unit-printprereleasesuffix.py \
 
160
  unit-JarMaker.py \
 
161
  unit-buildlist.py \
 
162
  unit-expandlibs.py \
 
163
  unit-writemozinfo.py \
 
164
  unit-mozunit.py \
 
165
  $(NULL)
 
166
 
 
167
check-preqs = \
 
168
  check-python-modules \
 
169
  check-jar-mn \
 
170
  check-makefiles \
 
171
  $(NULL)
 
172
 
 
173
check:: $(check-preqs)
 
174
 
 
175
check-python-modules::
 
176
        @$(EXIT_ON_ERROR) \
 
177
        for test in $(PYUNITS); do \
 
178
          $(PYTHON) $(srcdir)/tests/$$test ; \
 
179
        done
 
180
 
 
181
check-jar-mn::
 
182
        $(MAKE) -C tests/src-simple check-jar
 
183
        $(MAKE) -C tests/src-simple check-flat
 
184
        $(MAKE) -C tests/src-simple check-flat USE_EXTENSION_MANIFEST=1
 
185
ifneq (,$(filter-out WINNT OS2,$(OS_ARCH)))
 
186
        $(MAKE) -C tests/src-simple check-symlink
 
187
endif
 
188
 
 
189
check-makefiles:
 
190
        $(MAKE) -C tests/makefiles/autodeps check