Jim Cownie | 5e8470a | 2013-09-27 10:38:44 +0000 | [diff] [blame] | 1 | # |
| 2 | #//===----------------------------------------------------------------------===// |
| 3 | #// |
| 4 | #// The LLVM Compiler Infrastructure |
| 5 | #// |
| 6 | #// This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | #// Source Licenses. See LICENSE.txt for details. |
| 8 | #// |
| 9 | #//===----------------------------------------------------------------------===// |
| 10 | # |
| 11 | |
| 12 | ####### Detections and Commands ############################################### |
| 13 | |
| 14 | ifndef arch |
| 15 | uname_m:=$(shell uname -m) |
| 16 | ifeq ($(uname_m),i686) |
| 17 | export arch:=32 |
| 18 | endif |
| 19 | ifeq ($(uname_m),x86_64) |
| 20 | export arch:=32e |
| 21 | endif |
| 22 | ifndef arch |
| 23 | export arch:=$(uname_m) |
| 24 | endif |
| 25 | endif |
| 26 | |
| 27 | CMD=sh -c |
| 28 | CWD=$(shell pwd) |
| 29 | CP=cp |
| 30 | RM?=rm -f |
| 31 | RMR?=rm -rf |
| 32 | RD?=rmdir |
| 33 | MD?=mkdir -p |
| 34 | NUL= /dev/null |
| 35 | SLASH=/ |