Bug 459878, fix up errors for 3.0.5 -> 3.1b2 MU test
[mozilla-1.9.git] / xulrunner / build.mk
blobf63d1d776983dc0455d07029b2d554d47879404c
1 # ***** BEGIN LICENSE BLOCK *****
2 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 # http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # The Original Code is the Mozilla build system.
16 # The Initial Developer of the Original Code is
17 # the Mozilla Foundation <http://www.mozilla.org/>.
18 # Portions created by the Initial Developer are Copyright (C) 2006
19 # the Initial Developer. All Rights Reserved.
21 # Contributor(s):
22 # Benjamin Smedberg <benjamin@smedbergs.us> (Initial Code)
24 # Alternatively, the contents of this file may be used under the terms of
25 # either the GNU General Public License Version 2 or later (the "GPL"), or
26 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
36 # ***** END LICENSE BLOCK *****
38 include $(topsrcdir)/toolkit/toolkit-tiers.mk
40 TIERS += app
42 ifdef MOZ_EXTENSIONS
43 tier_app_dirs += extensions
44 endif
46 # axcontrol
47 ifndef LIBXUL_SDK
48 ifeq ($(OS_ARCH),WINNT)
49 ifndef MOZ_NO_ACTIVEX_SUPPORT
50 tier_app_dirs += \
51 embedding/browser/activex/src/control \
52 embedding/browser/activex/src/control_kicker \
53 $(NULL)
54 endif # MOZ_NO_ACTIVEX_SUPPORT
55 endif # WINNT
56 endif # LIBXUL_SDK
58 # winembed, mfcembed
59 ifeq ($(OS_ARCH),WINNT)
60 ifneq (,$(ENABLE_TESTS)$(MOZILLA_OFFICIAL))
61 tier_app_dirs += embedding/tests
62 endif
63 endif
65 # os2embed
66 ifeq ($(OS_ARCH),OS2)
67 ifdef ENABLE_TESTS
68 tier_app_dirs += embedding/tests
69 endif
70 endif
72 ifdef MOZ_JAVAXPCOM
73 tier_app_dirs += extensions/java
74 endif
76 tier_app_dirs += xulrunner
78 installer:
79 @echo "XULRunner doesn't have an installer yet."
80 @exit 1
82 package:
83 @$(MAKE) -C xulrunner/installer
85 install:
86 @$(MAKE) -C xulrunner/installer install
88 sdk:
89 @$(MAKE) -C xulrunner/installer make-sdk
91 distclean::
92 @$(MAKE) -C xulrunner/installer distclean