BaseTools/Source/C/Makefile: Update OBJECTS using OS specific SEP

Use $(SEP) with addprefix of $(OBJDIR) to support Windows MINGW
CLANG builds that use Windows path separators with GNU makefiles.

This fixes Windows MINGW CLANG builds of the PcdValueInit
application that is required for structured PCDs.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
Michael D Kinney 2026-02-05 15:15:08 -08:00 committed by mergify[bot]
parent e092122653
commit f0542ae07d

View file

@ -8,10 +8,11 @@
MAKEROOT ?= ../..
BUILDROOT ?= $(MAKEROOT)
OBJDIR ?= .
OBJECTS := $(addprefix $(OBJDIR)/,$(OBJECTS))
include $(MAKEROOT)/Makefiles/header.makefile
OBJECTS := $(addprefix $(OBJDIR)$(SEP),$(OBJECTS))
APPLICATION = $(BUILDROOT)/bin/$(APPNAME)
.PHONY:all