-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVARS
29 lines (21 loc) · 741 Bytes
/
VARS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.EXPORT_ALL_VARIABLES:
BASE_DIR=$(CURDIR)
# Source and destination directories
ARCHIVES_DIR=$(BASE_DIR)/archive
BUILD_DIR=$(BASE_DIR)/compile
PACKAGES_DIR=$(BASE_DIR)/packages
# Installation location
PREFIX=/opt/cross-mint
# Add search path for cross tools
PATH:=$(PATH):$(PREFIX)/bin
# Default host architecture and system
HOSTSYS=$(shell uname -s | tr "[:upper:]" "[:lower:]")
NUM_CPUS=$(shell sysctl -n hw.ncpu)
#ARCH=x86_64
ARCH=$(shell uname -m | tr "[:upper:]" "[:lower:]")
# Homebrew installation location
HOMEBREW_PREFIX=$(shell brew config | grep HOMEBREW_PREFIX | awk '{print $$2}')
##########################################
VERSIONBIN=bin-$(HOSTSYS)
VERSIONBINCPU=$(VERSIONBIN)-$(ARCH)
VERSIONBUILD=$(shell date +%Y%m%d)