blob: 7ad2512466f865d75996f0ba3a4919a02787f7fd [file] [log] [blame]
Jim Cownie5e8470a2013-09-27 10:38:44 +00001#
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
14ifndef 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
25endif
26
27CMD=sh -c
28CWD=$(shell pwd)
29CP=cp
30RM?=rm -f
31RMR?=rm -rf
32RD?=rmdir
33MD?=mkdir -p
34NUL= /dev/null
35SLASH=/