Force OBJDIR, GENDIR and TARGETDIR to all be absolute paths at the start of tail.mk. This fixes a link problem that can happen if OBJDIR is set to a relative path.

This commit is contained in:
Jeremy Rand 2020-11-26 17:40:39 -05:00
parent f8334194f4
commit dd691f7802

View File

@ -5,6 +5,9 @@
export PATH := $(PATH):$(ORCA_BIN) export PATH := $(PATH):$(ORCA_BIN)
CWD=$(shell pwd) CWD=$(shell pwd)
OBJDIR:=$(abspath $(OBJDIR))
GENDIR:=$(abspath $(GENDIR))
TARGETDIR:=$(abspath $(TARGETDIR))
DISKIMAGE=$(TARGETDIR)/$(PGM).2mg DISKIMAGE=$(TARGETDIR)/$(PGM).2mg
BUILDTARGET=$(DISKIMAGE) BUILDTARGET=$(DISKIMAGE)