make/deploy-rules.gmk
author alanb
Thu, 24 Jul 2008 12:40:30 +0100
changeset 894 15e617238139
parent 0 fd16c54261b3
child 3032 ffadbf4b17f6
permissions -rw-r--r--
6728728: (se) WindowsSelectorImpl.c doesn't compile with Visual Studio 2008 Reviewed-by: tbell, chegar
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
fd16c54261b3 Initial load
duke
parents:
diff changeset
     1
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
     2
# Copyright 2002-2007 Sun Microsystems, Inc.  All Rights Reserved.
fd16c54261b3 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
fd16c54261b3 Initial load
duke
parents:
diff changeset
     4
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
fd16c54261b3 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
fd16c54261b3 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
fd16c54261b3 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
fd16c54261b3 Initial load
duke
parents:
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
fd16c54261b3 Initial load
duke
parents:
diff changeset
    10
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
fd16c54261b3 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fd16c54261b3 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
fd16c54261b3 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
fd16c54261b3 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
fd16c54261b3 Initial load
duke
parents:
diff changeset
    16
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
fd16c54261b3 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
fd16c54261b3 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fd16c54261b3 Initial load
duke
parents:
diff changeset
    20
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
fd16c54261b3 Initial load
duke
parents:
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
fd16c54261b3 Initial load
duke
parents:
diff changeset
    23
# have any questions.
fd16c54261b3 Initial load
duke
parents:
diff changeset
    24
#
fd16c54261b3 Initial load
duke
parents:
diff changeset
    25
fd16c54261b3 Initial load
duke
parents:
diff changeset
    26
################################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
    27
# DEPLOY TARGETS
fd16c54261b3 Initial load
duke
parents:
diff changeset
    28
################################################################
fd16c54261b3 Initial load
duke
parents:
diff changeset
    29
fd16c54261b3 Initial load
duke
parents:
diff changeset
    30
ifeq ($(ARCH_DATA_MODEL), 32)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    31
deploy:  deploy-build
fd16c54261b3 Initial load
duke
parents:
diff changeset
    32
else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    33
deploy:
fd16c54261b3 Initial load
duke
parents:
diff changeset
    34
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    35
fd16c54261b3 Initial load
duke
parents:
diff changeset
    36
DEPLOY = deploy
fd16c54261b3 Initial load
duke
parents:
diff changeset
    37
fd16c54261b3 Initial load
duke
parents:
diff changeset
    38
# put the generated bundles in their own place in OUTPUTDIR
fd16c54261b3 Initial load
duke
parents:
diff changeset
    39
DEPLOY_OUTPUTDIR = $(ABS_OUTPUTDIR)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    40
fd16c54261b3 Initial load
duke
parents:
diff changeset
    41
# NO_IMAGES may be set in conjunction with DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
    42
ifdef NO_IMAGES
fd16c54261b3 Initial load
duke
parents:
diff changeset
    43
  IMAGES_TARGET =
fd16c54261b3 Initial load
duke
parents:
diff changeset
    44
else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    45
  IMAGES_TARGET = images
fd16c54261b3 Initial load
duke
parents:
diff changeset
    46
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    47
fd16c54261b3 Initial load
duke
parents:
diff changeset
    48
DEPLOY_BUILD_TARGETS = sanity javaws-all plugin-all
fd16c54261b3 Initial load
duke
parents:
diff changeset
    49
ifndef DEV_ONLY
fd16c54261b3 Initial load
duke
parents:
diff changeset
    50
  DEPLOY_BUILD_TARGETS += images
fd16c54261b3 Initial load
duke
parents:
diff changeset
    51
else
fd16c54261b3 Initial load
duke
parents:
diff changeset
    52
  DEPLOY_BUILD_TARGETS += $(IMAGES_TARGET)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    53
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    54
fd16c54261b3 Initial load
duke
parents:
diff changeset
    55
DEPLOY_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    56
			ALT_OUTPUTDIR=$(DEPLOY_OUTPUTDIR) 
fd16c54261b3 Initial load
duke
parents:
diff changeset
    57
fd16c54261b3 Initial load
duke
parents:
diff changeset
    58
ifeq ($(BUILD_LANGTOOLS), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    59
   DEPLOY_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    60
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    61
fd16c54261b3 Initial load
duke
parents:
diff changeset
    62
ifdef ALT_IMAGE_DIR
fd16c54261b3 Initial load
duke
parents:
diff changeset
    63
  DEPLOY_BUILD_ARGUMENTS += ALT_IMAGE_DIR=$(ALT_IMAGE_DIR)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    64
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    65
fd16c54261b3 Initial load
duke
parents:
diff changeset
    66
ifdef ALT_BUNDLE_DATE
fd16c54261b3 Initial load
duke
parents:
diff changeset
    67
  DEPLOY_BUILD_ARGUMENTS += ALT_BUNDLE_DATE=$(ALT_BUNDLE_DATE)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    68
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    69
fd16c54261b3 Initial load
duke
parents:
diff changeset
    70
ifdef ALT_JAVAWS_BOOTDIR
fd16c54261b3 Initial load
duke
parents:
diff changeset
    71
  DEPLOY_BUILD_ARGUMENTS += ALT_JAVAWS_BOOTDIR=$(ALT_JAVAWS_BOOTDIR)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    72
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    73
fd16c54261b3 Initial load
duke
parents:
diff changeset
    74
ifdef CERT
fd16c54261b3 Initial load
duke
parents:
diff changeset
    75
  DEPLOY_BUILD_ARGUMENTS += CERT=$(CERT)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    76
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    77
fd16c54261b3 Initial load
duke
parents:
diff changeset
    78
ifdef PKEY
fd16c54261b3 Initial load
duke
parents:
diff changeset
    79
  DEPLOY_BUILD_ARGUMENTS += PKEY=$(PKEY)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    80
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    81
fd16c54261b3 Initial load
duke
parents:
diff changeset
    82
deploy-build:
fd16c54261b3 Initial load
duke
parents:
diff changeset
    83
ifeq ($(ARCH_DATA_MODEL), 32)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    84
  ifeq ($(BUILD_DEPLOY), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    85
	($(CD) $(DEPLOY_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    86
	  $(MAKE) $(DEPLOY_BUILD_TARGETS) $(DEPLOY_BUILD_ARGUMENTS))
fd16c54261b3 Initial load
duke
parents:
diff changeset
    87
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    88
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
    89
fd16c54261b3 Initial load
duke
parents:
diff changeset
    90
deploy-clobber::
fd16c54261b3 Initial load
duke
parents:
diff changeset
    91
ifeq ($(ARCH_DATA_MODEL), 32)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    92
  ifeq ($(BUILD_DEPLOY), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
    93
	($(CD) $(DEPLOY_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
    94
	  $(MAKE) clobber $(DEPLOY_BUILD_ARGUMENTS))
fd16c54261b3 Initial load
duke
parents:
diff changeset
    95
  endif 
fd16c54261b3 Initial load
duke
parents:
diff changeset
    96
endif 
fd16c54261b3 Initial load
duke
parents:
diff changeset
    97
fd16c54261b3 Initial load
duke
parents:
diff changeset
    98
deploy-sanity::
fd16c54261b3 Initial load
duke
parents:
diff changeset
    99
ifeq ($(ARCH_DATA_MODEL), 32)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   100
  ifeq ($(BUILD_DEPLOY), true)
fd16c54261b3 Initial load
duke
parents:
diff changeset
   101
	($(CD) $(DEPLOY_TOPDIR)/make && \
fd16c54261b3 Initial load
duke
parents:
diff changeset
   102
	  $(MAKE) sanity $(DEPLOY_BUILD_ARGUMENTS))
fd16c54261b3 Initial load
duke
parents:
diff changeset
   103
  endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   104
endif
fd16c54261b3 Initial load
duke
parents:
diff changeset
   105
fd16c54261b3 Initial load
duke
parents:
diff changeset
   106
.PHONY: deploy deploy-build deploy-clobber deploy-sanity
fd16c54261b3 Initial load
duke
parents:
diff changeset
   107