~ubuntu-branches/ubuntu/trusty/mozjs17/trusty

« back to all changes in this revision

Viewing changes to js/src/config/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2013-05-25 12:24:23 UTC
  • Revision ID: package-import@ubuntu.com-20130525122423-zmxucrhtensw90xy
Tags: upstream-17.0.0
ImportĀ upstreamĀ versionĀ 17.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# This Source Code Form is subject to the terms of the Mozilla Public
 
3
# License, v. 2.0. If a copy of the MPL was not distributed with this
 
4
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
5
 
 
6
DEPTH           = @DEPTH@
 
7
topsrcdir       = @top_srcdir@
 
8
srcdir          = @srcdir@
 
9
VPATH           = @srcdir@
 
10
 
 
11
include $(DEPTH)/config/autoconf.mk
 
12
 
 
13
# For sanity's sake, we compile nsinstall without the wrapped system
 
14
# headers, so that we can use it to set up the wrapped system headers.
 
15
VISIBILITY_FLAGS =
 
16
 
 
17
ifneq (WINNT,$(HOST_OS_ARCH))
 
18
HOST_PROGRAM    = nsinstall$(HOST_BIN_SUFFIX)
 
19
HOST_CSRCS      = nsinstall.c pathsub.c
 
20
endif
 
21
 
 
22
TARGETS         = $(HOST_PROGRAM) $(SIMPLE_PROGRAMS)
 
23
 
 
24
# IMPORTANT: Disable NSBUILDROOT for this directory only, otherwise we have
 
25
# a recursive rule for finding nsinstall and the Perl scripts.
 
26
ifdef NSBUILDROOT
 
27
override NSBUILDROOT :=
 
28
endif
 
29
 
 
30
ifdef GNU_CC
 
31
MODULE_OPTIMIZE_FLAGS = -O3
 
32
endif
 
33
 
 
34
ifndef COMPILER_DEPEND
 
35
ifndef MOZ_NATIVE_MAKEDEPEND
 
36
DIRS            += mkdepend
 
37
endif
 
38
endif
 
39
 
 
40
include $(topsrcdir)/config/config.mk
 
41
 
 
42
# Do not install util programs
 
43
NO_INSTALL=1
 
44
 
 
45
# Force wrap zlib system header if building js as a shared library.
 
46
ifneq (,$(JS_SHARED_LIBRARY)$(MOZ_NATIVE_ZLIB))
 
47
DEFINES += -DMOZ_NATIVE_ZLIB=1
 
48
endif
 
49
 
 
50
include $(topsrcdir)/config/rules.mk
 
51
 
 
52
HOST_CFLAGS += -DUNICODE -D_UNICODE
 
53
 
 
54
export:: $(TARGETS)
 
55
ifdef HOST_PROGRAM
 
56
        $(INSTALL) $(HOST_PROGRAM) $(DIST)/bin
 
57
endif
 
58
 
 
59
ifdef WRAP_SYSTEM_INCLUDES
 
60
export:: \
 
61
  $(call mkdir_deps,system_wrappers_js) \
 
62
  $(NULL)
 
63
        $(PYTHON) $(srcdir)/Preprocessor.py $(DEFINES) $(ACDEFINES) \
 
64
                $(srcdir)/system-headers | $(PERL) $(srcdir)/make-system-wrappers.pl system_wrappers_js
 
65
        $(INSTALL) system_wrappers_js $(DIST)
 
66
 
 
67
GARBAGE_DIRS += system_wrappers_js
 
68
endif
 
69
 
 
70
GARBAGE += $(srcdir)/*.pyc *.pyc
 
71
 
 
72
FORCE:
 
73
 
 
74
ifndef COMPILER_DEPEND
 
75
ifdef MKDEPEND_DIR
 
76
clean clobber realclean clobber_all::
 
77
        cd $(MKDEPEND_DIR); $(MAKE) $@
 
78
endif
 
79
endif