Makefile revision 287
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# This code is free software; you can redistribute it and/or modify it
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# under the terms of the GNU General Public License version 2 only, as
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# published by the Free Software Foundation. Oracle designates this
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# particular file as subject to the "Classpath" exception as provided
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# by Oracle 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
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# 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
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# accompanied this code).
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# 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,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# or visit www.oracle.com if you need additional information or have any
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Makefile for building the corba workspace.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox Userinclude $(BUILDDIR)/common/CancelImplicits.gmk
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#----- commands
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User#----- locations and deliverables
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User BUILD_DIR = $(TOPDIR)/build/$(PLATFORM)-$(ARCH)
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
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User RELEASE = $(JDK_VERSION)-$(MILESTONE)$(BUILD_VARIANT_RELEASE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User RELEASE = $(JDK_VERSION)$(BUILD_VARIANT_RELEASE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# 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"`)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User 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,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# ready for inclusion in rt.jar
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# .properties and .java files for classes in classes.jar,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ready for jdk src.zip
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# corba specific binaries: orb.idl, ir.idl
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Default target
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSRC_ZIP_FILES = $(shell $(FIND) $(SRC_CLASSES_DIR) \( -name \*-template \) -prune -o -type f -print )
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ( cd $(SRC_CLASSES_DIR) ; $(FIND) . \( -name \*-template \) -prune -o -type f -print | $(ZIP) -q $$abs_src_zip -@ ) ; \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User ( 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