Fri, 24 Dec 2010 11:16:02 -0800
Merge
duke@2 | 1 | # |
ohair@182 | 2 | # Copyright (c) 2006, 2009, Oracle and/or its affiliates. All rights reserved. |
duke@2 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@2 | 4 | # |
duke@2 | 5 | # This code is free software; you can redistribute it and/or modify it |
duke@2 | 6 | # under the terms of the GNU General Public License version 2 only, as |
ohair@182 | 7 | # published by the Free Software Foundation. Oracle designates this |
duke@2 | 8 | # particular file as subject to the "Classpath" exception as provided |
ohair@182 | 9 | # by Oracle in the LICENSE file that accompanied this code. |
duke@2 | 10 | # |
duke@2 | 11 | # This code is distributed in the hope that it will be useful, but WITHOUT |
duke@2 | 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@2 | 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@2 | 14 | # version 2 for more details (a copy is included in the LICENSE file that |
duke@2 | 15 | # accompanied this code). |
duke@2 | 16 | # |
duke@2 | 17 | # You should have received a copy of the GNU General Public License version |
duke@2 | 18 | # 2 along with this work; if not, write to the Free Software Foundation, |
duke@2 | 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@2 | 20 | # |
ohair@182 | 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@182 | 22 | # or visit www.oracle.com if you need additional information or have any |
ohair@182 | 23 | # questions. |
duke@2 | 24 | # |
duke@2 | 25 | |
duke@2 | 26 | ################################################################ |
duke@2 | 27 | # JPRT rule to build |
duke@2 | 28 | ################################################################ |
duke@2 | 29 | |
duke@2 | 30 | # To get all the bundles from JPRT, use: |
duke@2 | 31 | # jprt submit -buildenv HAVE_JPRT_SAVE_BUNDLES=true -control "..." ... |
duke@2 | 32 | |
duke@2 | 33 | DEFAULT_BUILD_FLAVOR=product |
duke@2 | 34 | |
duke@2 | 35 | # JPRT will define these when it builds |
duke@2 | 36 | JPRT_ARCHIVE_BUNDLE=$(ABS_OUTPUTDIR)/$(DEFAULT_BUILD_FLAVOR)-bundle.zip |
duke@2 | 37 | JPRT_ARCHIVE_INSTALL_BUNDLE=$(ABS_OUTPUTDIR)/$(DEFAULT_BUILD_FLAVOR)-install-bundle.zip |
duke@2 | 38 | |
ohair@62 | 39 | jprt_build_product: sanity all_product_build |
duke@2 | 40 | ( $(CD) $(OUTPUTDIR)/j2sdk-image && \ |
duke@2 | 41 | $(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . ) |
duke@2 | 42 | ifdef HAVE_JPRT_SAVE_BUNDLES |
duke@2 | 43 | ( $(CD) $(OUTPUTDIR)/bundles && \ |
duke@2 | 44 | $(ZIPEXE) -q -r $(JPRT_ARCHIVE_INSTALL_BUNDLE) . ) |
duke@2 | 45 | endif |
duke@2 | 46 | |
duke@2 | 47 | jprt_build_fastdebug: fastdebug_build |
ohair@191 | 48 | ( $(CD) $(OUTPUTDIR)/../$(PLATFORM)-$(ARCH)-fastdebug/j2sdk-image && \ |
duke@2 | 49 | $(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . ) |
duke@2 | 50 | |
duke@2 | 51 | jprt_build_debug: debug_build |
ohair@191 | 52 | ( $(CD) $(OUTPUTDIR)/../$(PLATFORM)-$(ARCH)-debug/j2sdk-image && \ |
duke@2 | 53 | $(ZIPEXE) -q -r $(JPRT_ARCHIVE_BUNDLE) . ) |
duke@2 | 54 | |
duke@2 | 55 | ################################################################ |
duke@2 | 56 | # PHONY |
duke@2 | 57 | ################################################################ |
duke@2 | 58 | |
duke@2 | 59 | .PHONY: jprt_build_product jprt_build_fastdebug jprt_build_debug |
duke@2 | 60 |