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