mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
67 lines
1.9 KiB
Makefile
67 lines
1.9 KiB
Makefile
# You gotta PIMP MY CALC
|
|
|
|
ifndef NO_PIMP
|
|
PLS_IGNORE := $(shell >&2 printf "\e[91m\e[1m ____ \n")
|
|
PLS_IGNORE := $(shell >&2 printf " / __ \\____ ___ ___ ____ _____ _ \n")
|
|
PLS_IGNORE := $(shell >&2 printf " / / / / __ \`__ \\/ _ \\/ __ \`/ __ \`/ \n")
|
|
PLS_IGNORE := $(shell >&2 printf " / /_/ / / / / / / __/ /_/ / /_/ / \n")
|
|
PLS_IGNORE := $(shell >&2 printf " \\____/_/ /_/ /_/\\___/\\__, /\\__,_/ \n")
|
|
PLS_IGNORE := $(shell >&2 printf " /____/ \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
|