forked from Omega-Numworks/Omega
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpimp.mak
66 lines (55 loc) · 1.94 KB
/
pimp.mak
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# You gotta PIMP MY CALC
ifndef NO_PIMP
PLS_IGNORE := $(shell >&2 printf "\e[91m\e[1m ____ \n")
PLS_IGNORE := $(shell >&2 printf "\e[91m\e[1m / __ \\____ ___ ___ ____ _____ _ \n")
PLS_IGNORE := $(shell >&2 printf "\e[91m\e[1m / / / / __ \`__ \\/ _ \\/ __ \`/ __ \`/ \n")
PLS_IGNORE := $(shell >&2 printf "\e[91m\e[1m / /_/ / / / / / / __/ /_/ / /_/ / \n")
PLS_IGNORE := $(shell >&2 printf "\e[91m\e[1m \\____/_/ /_/ /_/\\___/\\__, /\\__,_/ \n")
PLS_IGNORE := $(shell >&2 printf "\e[91m\e[1m /____/ \n")
PLS_IGNORE := $(shell >&2 printf "\e[33m - Omega does what Epsilon't \e[0m\n")
PLS_IGNORE := $(shell >&2 printf "\n")
PLS_IGNORE := $(shell >&2 printf "\e[32mBuilding O$(OMEGA_VERSION)-E$(EPSILON_VERSION)\n")
ifeq (${PLATFORM},device)
DISPLAY_TARGET = Numworks $(MODEL)
endif
ifeq (${PLATFORM},simulator)
DISPLAY_TARGET = $(TARGET) simulator
endif
DISPLAY_TARGET ?= "Undefined"
PLS_IGNORE := $(shell >&2 printf "\e[32m Targetting $(DISPLAY_TARGET)\n")
ifeq ($(OS),Windows_NT)
DISPLAY_OS = Windows
ifeq ($(PROCESSOR_ARCHITEW6432),AMD64)
DISPLAY_OS += amd64
else
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
DISPLAY_OS += x86
endif
ifeq ($(PROCESSOR_ARCHITECTURE),x86)
DISPLAY_OS += x86
endif
endif
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
DISPLAY_OS = Linux
endif
ifeq ($(UNAME_S),Darwin)
DISPLAY_OS = macOS
endif
UNAME_P := $(shell uname -m)
ifeq ($(UNAME_P),x86_64)
DISPLAY_OS += amd64
endif
ifneq ($(filter %86,$(UNAME_P)),)
DISPLAY_OS += x86
endif
ifneq ($(filter arm%,$(UNAME_P)),)
DISPLAY_OS += arm
endif
endif
DISPLAY_OS ?= "Unknown"
PLS_IGNORE := $(shell >&2 printf "\e[32m Building on $(DISPLAY_OS)\n")
PLS_IGNORE := $(shell >&2 printf "\e[0m\e[39m\n")
endif
MAKE += NO_PIMP=1