Makefile revision 239
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# This code is free software; you can redistribute it and/or modify it
bb25c06cca41ca78e5fb87fbb8e81d55beb18c95jg# under the terms of the GNU General Public License version 2 only, as
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# published by the Free Software Foundation. Oracle designates this
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# particular file as subject to the "Classpath" exception as provided
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# by Oracle in the LICENSE file that accompanied this code.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# This code is distributed in the hope that it will be useful, but WITHOUT
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# version 2 for more details (a copy is included in the LICENSE file that
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# accompanied this code).
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# You should have received a copy of the GNU General Public License version
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# 2 along with this work; if not, write to the Free Software Foundation,
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
489b7c4ab76ae8df137fbfcc2214f7baa52883a0Raymond Chen# or visit www.oracle.com if you need additional information or have any
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# questions.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Makefile for building the corba workspace.
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#----- commands
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#----- locations and deliverables
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz JDK_VERSION = $(JDK_MAJOR_VERSION).$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# RELEASE is JDK_VERSION and -MILESTONE if MILESTONE is set
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz RELEASE = $(JDK_VERSION)-$(MILESTONE)$(BUILD_VARIANT_RELEASE)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# FULL_VERSION is RELEASE and -BUILD_NUMBER if BUILD_NUMBER is set
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz USER_RELEASE_SUFFIX := $(shell echo $(USER)_`date '+%d_%b_%Y_%H_%M' | tr "A-Z" "a-z"`)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz FULL_VERSION = $(RELEASE)-$(USER_RELEASE_SUFFIX)-$(BUILD_NUMBER)
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz#----- useful macros
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# for jdk, we generate the following:
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# corba recompiled to run on the target JDK,
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# ready for inclusion in rt.jar
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# .properties and .java files for classes in classes.jar,
bf56214c0556fa6864189c826d39dbe156bb22a0stevel# ready for jdk src.zip
4ebb14b236958cfe1ef4ff3b7a50216d9e51f997frits# corba specific binaries: orb.idl, ir.idl
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz# Default target
60b08185ce63023f22fd6b2ed0db8c0d119b2023yzSRC_ZIP_FILES = $(shell $(FIND) $(SRC_CLASSES_DIR) \( -name \*-template \) -prune -o -type f -print )
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz ( cd $(SRC_CLASSES_DIR) ; $(FIND) . \( -name \*-template \) -prune -o -type f -print | $(ZIP) -q $$abs_src_zip -@ ) ; \
60b08185ce63023f22fd6b2ed0db8c0d119b2023yz ( cd $(GENSRC_DIR) ; $(FIND) . -type f -print | $(ZIP) -q $$abs_src_zip -@ ) ;
#----- bin.zip
CD = cd