Makefile revision 99
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# Copyright 2007 Sun Microsystems, Inc. All Rights Reserved.
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# This code is free software; you can redistribute it and/or modify it
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# under the terms of the GNU General Public License version 2 only, as
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# published by the Free Software Foundation. Sun designates this
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# particular file as subject to the "Classpath" exception as provided
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# by Sun in the LICENSE file that accompanied this code.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This code is distributed in the hope that it will be useful, but WITHOUT
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# version 2 for more details (a copy is included in the LICENSE file that
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# accompanied this code).
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# You should have received a copy of the GNU General Public License version
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# 2 along with this work; if not, write to the Free Software Foundation,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# CA 95054 USA or visit www.sun.com if you need additional information or
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# have any questions.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Makefile for building the corba workspace.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#----- commands
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews#----- locations and deliverables
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic UpdaterSRC_CLASSES_DIR = $(TOPDIR)/src/share/classes
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein JDK_VERSION = $(JDK_MAJOR_VERSION).$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# RELEASE is JDK_VERSION and -MILESTONE if MILESTONE is set
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein RELEASE = $(JDK_VERSION)-$(MILESTONE)$(BUILD_VARIANT_RELEASE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein RELEASE = $(JDK_VERSION)$(BUILD_VARIANT_RELEASE)
12351e0500dff39f56844401fd191a36bcc4a7adMark Andrews# FULL_VERSION is RELEASE and -BUILD_NUMBER if BUILD_NUMBER is set
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein USER_RELEASE_SUFFIX := $(shell echo $(USER)_`date '+%d_%b_%Y_%H_%M' | tr "A-Z" "a-z"`)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein FULL_VERSION = $(RELEASE)-$(USER_RELEASE_SUFFIX)-$(BUILD_NUMBER)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#----- useful macros
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# for jdk, we generate the following:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# corba recompiled to run on the target JDK,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ready for inclusion in rt.jar
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# .properties and .java files for classes in classes.jar,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ready for jdk src.zip
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# corba specific binaries: orb.idl, ir.idl
a1ad6695ed6f988406cf155aa26376f84f73bcb9Automatic Updater# Default target
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSRC_ZIP_FILES = $(shell $(FIND) $(SRC_CLASSES_DIR) \( -name SCCS -o -name \*-template \) -prune -o -type f -print )
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ( cd $(SRC_CLASSES_DIR) ; $(FIND) . \( -name SCCS -o -name \*-template \) -prune -o -type f -print | $(ZIP) -q $$abs_src_zip -@ ) ; \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ( cd $(GENSRC_DIR) ; $(FIND) . -type f -print | $(ZIP) -q $$abs_src_zip -@ ) ;
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinBIN_ZIP_FILES = $(BUILD_DIR/lib/orb.idl $(BUILD_DIR)/lib/ir.idl
CD = cd