Makefile revision 113
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# Copyright 2007-2009 Sun Microsystems, Inc. All Rights Reserved.
8f066564bfc0fd6ddc6ca4b2f2410615554597d1jim# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a503caacf7ab36d5bc42cb7c78256e1221642656jim# This code is free software; you can redistribute it and/or modify it
a503caacf7ab36d5bc42cb7c78256e1221642656jim# under the terms of the GNU General Public License version 2 only, as
da40dfabefd6f8eb8450e9a097c594ee2ab13e3eminfrin# published by the Free Software Foundation. Sun designates this
da40dfabefd6f8eb8450e9a097c594ee2ab13e3eminfrin# particular file as subject to the "Classpath" exception as provided
da40dfabefd6f8eb8450e9a097c594ee2ab13e3eminfrin# by Sun in the LICENSE file that accompanied this code.
59d316b83d42d2a07e25c20d8c35a07b369618bdsf# This code is distributed in the hope that it will be useful, but WITHOUT
59d316b83d42d2a07e25c20d8c35a07b369618bdsf# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
59d316b83d42d2a07e25c20d8c35a07b369618bdsf# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
59d316b83d42d2a07e25c20d8c35a07b369618bdsf# version 2 for more details (a copy is included in the LICENSE file that
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf# accompanied this code).
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf# You should have received a copy of the GNU General Public License version
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf# 2 along with this work; if not, write to the Free Software Foundation,
8602c898d4e06a7e7b9d6b7cf4b172a8e7310987sf# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3e2582713ed6883683272fbc628a27419d0ed543minfrin# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
3e2582713ed6883683272fbc628a27419d0ed543minfrin# CA 95054 USA or visit www.sun.com if you need additional information or
3e2582713ed6883683272fbc628a27419d0ed543minfrin# have any questions.
a46801e6532423aa7bd184471eb49158d7c9ae62sf# Makefile for building the corba workspace.
6f9bf764bc79571d1da19dfbbd78527fca278a8eminfrin#----- commands
223c64b836fbc2bc8611da9604379dfe13f56abasf#----- locations and deliverables
dd9f60fdfeb73f829fe0b260b7975b4b22be0838sf JDK_VERSION = $(JDK_MAJOR_VERSION).$(JDK_MINOR_VERSION).$(JDK_MICRO_VERSION)
135e1d6a301398168e3b2e5125508828591e1673niq# RELEASE is JDK_VERSION and -MILESTONE if MILESTONE is set
c7de70e936ac1e36c25676fe62e65dbacb947619minfrin RELEASE = $(JDK_VERSION)-$(MILESTONE)$(BUILD_VARIANT_RELEASE)
c7de70e936ac1e36c25676fe62e65dbacb947619minfrin# FULL_VERSION is RELEASE and -BUILD_NUMBER if BUILD_NUMBER is set
1b1621900bd89ddc496d721c865a726f635ebd7esf USER_RELEASE_SUFFIX := $(shell echo $(USER)_`date '+%d_%b_%Y_%H_%M' | tr "A-Z" "a-z"`)
1b1621900bd89ddc496d721c865a726f635ebd7esf FULL_VERSION = $(RELEASE)-$(USER_RELEASE_SUFFIX)-$(BUILD_NUMBER)
4203a35c28d7c60adb7e9ef3be87aad34951c79asf#----- useful macros
27c5ebb7d411a214f5b6b55a881086ce086d3dd3covener# for jdk, we generate the following:
27c5ebb7d411a214f5b6b55a881086ce086d3dd3covener# corba recompiled to run on the target JDK,
27c5ebb7d411a214f5b6b55a881086ce086d3dd3covener# ready for inclusion in rt.jar
7697b1b7376a532163c621e050b70c90dcb15d66covener# .properties and .java files for classes in classes.jar,
7697b1b7376a532163c621e050b70c90dcb15d66covener# ready for jdk src.zip
7697b1b7376a532163c621e050b70c90dcb15d66covener# corba specific binaries: orb.idl, ir.idl
9e0536cd66a389bdaa758a825b8bbd8fea665a3eigalic# Default target
aec9747aa70c1dce98e536e8eef5a6a0ab0f1d6cjimSRC_ZIP_FILES = $(shell $(FIND) $(SRC_CLASSES_DIR) \( -name \*-template \) -prune -o -type f -print )
220bc4233b21982d7c51842a1774db0ba6172ca4covener ( cd $(SRC_CLASSES_DIR) ; $(FIND) . \( -name \*-template \) -prune -o -type f -print | $(ZIP) -q $$abs_src_zip -@ ) ; \
220bc4233b21982d7c51842a1774db0ba6172ca4covener ( cd $(GENSRC_DIR) ; $(FIND) . -type f -print | $(ZIP) -q $$abs_src_zip -@ ) ;
6f2fbf354b34981f398cf0313aa44702ea2a7066covenerBIN_ZIP_FILES = $(BUILD_DIR/lib/orb.idl $(BUILD_DIR)/lib/ir.idl
9e7c7a8fa19c33d1e90f8f7ffab69beacbe72566covener ( cd $(BUILD_DIR) ; $(FIND) lib -name "*.idl" -print | $(ZIP) -q $$abs_bin_zip -@ ) ;
b761a57b4e63006c287823270876ab40d3212160covener#-------------------------------------------------------------------
5d92fff82718cd018f0b61a10b9ad4d2b8064c95rpluem# Targets for Sun's internal JPRT build system
aec9747aa70c1dce98e536e8eef5a6a0ab0f1d6cjimJPRT_ARCHIVE_BUNDLE=$(ABS_OUTPUTDIR)/$(JPRT_BUILD_FLAVOR)-bundle.zip
84fbf855118f318dd5e511d8e5b902cecc1177c0jimjprt_build_product jprt_build_debug jprt_build_fastdebug: all
0ed19acadd3d3dd593759173d87d2243e97914e2sf#-------------------------------------------------------------------
cb838cc4d5fd559efd6c0579a0fcb8f6e5a7af22minfrin# Phonies to avoid accidents.