macos.inc

Go to the documentation of this file.
00001 # <copyright>
00002 #    Copyright (c) 2013 Intel Corporation.  All Rights Reserved.
00003 #
00004 #    Redistribution and use in source and binary forms, with or without
00005 #    modification, are permitted provided that the following conditions
00006 #    are met:
00007 #
00008 #      * Redistributions of source code must retain the above copyright
00009 #        notice, this list of conditions and the following disclaimer.
00010 #      * Redistributions in binary form must reproduce the above copyright
00011 #        notice, this list of conditions and the following disclaimer in the
00012 #        documentation and/or other materials provided with the distribution.
00013 #      * Neither the name of Intel Corporation nor the names of its
00014 #        contributors may be used to endorse or promote products derived
00015 #        from this software without specific prior written permission.
00016 #
00017 #    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00018 #    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00019 #    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00020 #    A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
00021 #    HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00022 #    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00023 #    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
00024 #    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
00025 #    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
00026 #    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00027 #    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00028 #
00029 #
00030 #------------------------------------------------------------------------
00031 #
00032 #    Portions of this software are protected under the following patents:
00033 #        U.S. Patent 5,812,852
00034 #        U.S. Patent 6,792,599
00035 #        U.S. Patent 7,069,556
00036 #        U.S. Patent 7,328,433
00037 #        U.S. Patent 7,500,242
00038 #
00039 # </copyright>
00040 
00041 ####### Detections and Commands ###############################################
00042 
00043 ifndef arch
00044  ifeq ($(shell /usr/sbin/sysctl -n hw.machine),Power Macintosh)
00045    ifeq ($(shell /usr/sbin/sysctl -n hw.optional.64bitops),1)
00046      export arch:=ppc64
00047    else
00048      export arch:=ppc32
00049    endif
00050  else
00051    ifeq ($(shell /usr/sbin/sysctl -n hw.optional.x86_64 2>/dev/null),1)
00052      export arch:=intel64
00053    else
00054      export arch:=ia32
00055    endif
00056  endif
00057 endif
00058 
00059 CMD=$(SHELL) -c
00060 CWD=$(shell pwd)
00061 RM?=rm -f
00062 RMR?=rm -rf
00063 RD?=rmdir
00064 MD?=mkdir -p
00065 NUL= /dev/null
00066 SLASH=/

Generated on 25 Aug 2013 for libomp_oss by  doxygen 1.6.1