duke@2: # ohair@182: # Copyright (c) 2006, 2009, Oracle and/or its affiliates. All rights reserved. duke@2: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@2: # duke@2: # This code is free software; you can redistribute it and/or modify it duke@2: # under the terms of the GNU General Public License version 2 only, as ohair@182: # published by the Free Software Foundation. Oracle designates this duke@2: # particular file as subject to the "Classpath" exception as provided ohair@182: # by Oracle in the LICENSE file that accompanied this code. duke@2: # duke@2: # This code is distributed in the hope that it will be useful, but WITHOUT duke@2: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@2: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@2: # version 2 for more details (a copy is included in the LICENSE file that duke@2: # accompanied this code). duke@2: # duke@2: # You should have received a copy of the GNU General Public License version duke@2: # 2 along with this work; if not, write to the Free Software Foundation, duke@2: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@2: # ohair@182: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@182: # or visit www.oracle.com if you need additional information or have any ohair@182: # questions. duke@2: # duke@2: duke@2: ################################################################ duke@2: # JPRT rule to build duke@2: ################################################################ duke@2: duke@2: # To get all the bundles from JPRT, use: duke@2: # jprt submit -buildenv HAVE_JPRT_SAVE_BUNDLES=true -control "..." ... duke@2: duke@2: DEFAULT_BUILD_FLAVOR=product duke@2: duke@2: # JPRT will define these when it builds duke@2: JPRT_ARCHIVE_BUNDLE=$(ABS_OUTPUTDIR)/$(DEFAULT_BUILD_FLAVOR)-bundle.zip duke@2: JPRT_ARCHIVE_INSTALL_BUNDLE=$(ABS_OUTPUTDIR)/$(DEFAULT_BUILD_FLAVOR)-install-bundle.zip duke@2: ohair@62: jprt_build_product: sanity all_product_build duke@2: ( $(CD) $(OUTPUTDIR)/j2sdk-image && \ duke@2: $(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . ) duke@2: ifdef HAVE_JPRT_SAVE_BUNDLES duke@2: ( $(CD) $(OUTPUTDIR)/bundles && \ duke@2: $(ZIPEXE) -q -r $(JPRT_ARCHIVE_INSTALL_BUNDLE) . ) duke@2: endif duke@2: duke@2: jprt_build_fastdebug: fastdebug_build duke@2: ( $(CD) $(OUTPUTDIR)-fastdebug/j2sdk-image && \ duke@2: $(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . ) duke@2: duke@2: jprt_build_debug: debug_build duke@2: ( $(CD) $(OUTPUTDIR)-debug/j2sdk-image && \ duke@2: $(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . ) duke@2: duke@2: ################################################################ duke@2: # PHONY duke@2: ################################################################ duke@2: duke@2: .PHONY: jprt_build_product jprt_build_fastdebug jprt_build_debug duke@2: