Dynamic target name

This commit is contained in:
David Chavez 2022-05-30 17:04:26 +02:00
commit acebb20838

View file

@ -5,6 +5,7 @@ AR := ar
FORMAT := clang-format-11 FORMAT := clang-format-11
ZAPD := ../ZAPDTR/ZAPD.out ZAPD := ../ZAPDTR/ZAPD.out
UNAME := $(shell uname) UNAME := $(shell uname)
UNAMEM := $(shell uname -m)
LIBULTRASHIP := ../libultraship/libultraship.a LIBULTRASHIP := ../libultraship/libultraship.a
ZAPDUTILS := ../ZAPDTR/ZAPDUtils/ZAPDUtils.a ZAPDUTILS := ../ZAPDTR/ZAPDUtils/ZAPDUtils.a
@ -51,15 +52,13 @@ ifneq ($(LTO),0)
LDFLAGS += -flto LDFLAGS += -flto
endif endif
TARGET := soh.arm64 ifeq ($(UNAME), Linux) #LINUX
TARGET := soh.elf
endif
# ifeq ($(UNAME), Linux) #LINUX ifeq ($(UNAME), Darwin) #APPLE
# TARGET := soh.elf TARGET := soh.$(UNAMEM)
# endif endif
# ifeq ($(UNAME), Darwin) #APPLE
# TARGET := soh.arm64
# endif
INC_DIRS := $(addprefix -I, \ INC_DIRS := $(addprefix -I, \
. \ . \