make/nashorn-rules.gmk
author jlaskey
Mon, 18 Feb 2013 19:01:59 -0400
changeset 21151 50756ed31352
parent 21148 56d120d0c2b7
child 21156 7a0479f63dcd
permissions -rw-r--r--
8008420: Fix Nashorn forest to build with NEWBUILD=false Reviewed-by: jjh Contributed-by: james.laskey@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21148
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
     1
#
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
     2
# Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
     4
#
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    10
#
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    15
# accompanied this code).
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    16
#
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    20
#
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    23
# questions.
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    24
#
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    25
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    26
################################################################
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    27
# NASHORN TARGETS
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    28
################################################################
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    29
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    30
NASHORN_BUILD_ARGUMENTS = \
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    31
   $(COMMON_BUILD_ARGUMENTS) \
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    32
   ALT_OUTPUTDIR=$(NASHORN_OUTPUTDIR) \
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    33
   ALT_BOOTDIR=$(BOOTDIR) \
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    34
   ALT_JDK_IMPORT_PATH=$(JDK_IMPORT_PATH)
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    35
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    36
ifeq ($(BUILD_LANGTOOLS), true)
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    37
   NASHORN_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    38
endif
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    39
21151
50756ed31352 8008420: Fix Nashorn forest to build with NEWBUILD=false
jlaskey
parents: 21148
diff changeset
    40
# Default targets
50756ed31352 8008420: Fix Nashorn forest to build with NEWBUILD=false
jlaskey
parents: 21148
diff changeset
    41
NASHORN = nashorn-build
50756ed31352 8008420: Fix Nashorn forest to build with NEWBUILD=false
jlaskey
parents: 21148
diff changeset
    42
21148
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    43
nashorn: nashorn-build
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    44
nashorn-build:
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    45
	$(MKDIR) -p $(NASHORN_OUTPUTDIR)
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    46
	@$(call MakeStart,nashorn,all)
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    47
	($(CD) $(NASHORN_TOPDIR)/make && \
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    48
	 $(MAKE) $(NASHORN_BUILD_ARGUMENTS) all)
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    49
	@$(call MakeFinish,nashorn,all)
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    50
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    51
nashorn-clobber::
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    52
	$(MKDIR) -p $(NASHORN_OUTPUTDIR)
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    53
	@$(call MakeStart,nashorn,clobber)
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    54
	($(CD) $(NASHORN_TOPDIR)/make &&  \
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    55
	 $(MAKE) $(NASHORN_BUILD_ARGUMENTS) clobber)
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    56
	@$(call MakeFinish,nashorn,clobber)
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    57
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    58
.PHONY: nashorn nashorn-build nashorn-clobber 
56d120d0c2b7 8006676: Integrate Nashorn into new build system
jlaskey
parents:
diff changeset
    59