apps/Application.mk: Fix path calculation. (#22)

The GNU make CURDIR will always be a POSIX-like path with forward slashes as path segment separators.  If we know that this is a native build, then we need to fix up the path so the DELIM will match the actual delimiter.
This commit is contained in:
patacongo 2020-01-17 16:44:46 -06:00 committed by Abdelatif Guettouche
parent 367b4d7e5b
commit 8e21be5223

View File

@ -51,7 +51,17 @@ ifneq ($(MAINSRC),)
endif
endif
SUFFIX = $(subst $(DELIM),.,$(CURDIR))
# The GNU make CURDIR will always be a POSIX-like path with forward slashes
# as path segment separators. If we know that this is a native build, then
# we need to fix up the path so the DELIM will match the actual delimiter.
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
CWD = $(strip ${shell echo %CD% | cut -d: -f2})
else
CWD = $(CURDIR)
endif
SUFFIX = $(subst $(DELIM),.,$(CWD))
# Object files