xmake revision 1003
454N/A# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 3252N/A# Permission is hereby granted, free of charge, to any person obtaining a 3252N/A# copy of this software and associated documentation files (the "Software"), 3252N/A# to deal in the Software without restriction, including without limitation 3252N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense, 2666N/A# and/or sell copies of the Software, and to permit persons to whom the 3252N/A# Software is furnished to do so, subject to the following conditions: 3252N/A# The above copyright notice and this permission notice (including the next 454N/A# paragraph) shall be included in all copies or substantial portions of the 454N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 2245N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 2666N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 3252N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 3252N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 454N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 3252N/Arequire 5.005;
# minimal Perl version required 454N/A# Arguments: (envvar, defval) 454N/A# If environment variable 'envvar' is not set, set it to 'defval' 454N/A# save full path to current directory 454N/A# climb the tree to find the open-src module directory we're in 454N/A# Use dmake unless user environment overrides 454N/A # Set dmake environment for parallel builds by default 454N/A# Set some make variables that our makefiles recognize 454N/A# if in top two levels, just run make 454N/A# Otherwise get info from the module makefile