edk2/BaseTools/Source/C/Makefiles/app.makefile
Michael D Kinney f0542ae07d 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>
2026-02-06 04:40:03 +00:00

36 lines
837 B
Makefile

## @file
# Makefiles
#
# Copyright (c) 2007 - 2025, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
MAKEROOT ?= ../..
BUILDROOT ?= $(MAKEROOT)
OBJDIR ?= .
include $(MAKEROOT)/Makefiles/header.makefile
OBJECTS := $(addprefix $(OBJDIR)$(SEP),$(OBJECTS))
APPLICATION = $(BUILDROOT)/bin/$(APPNAME)
.PHONY:all
all: $(BUILDROOT)/bin $(APPLICATION)
$(APPLICATION): $(OBJECTS)
$(LINKER) -o $(APPLICATION) $(LDFLAGS) $(OBJECTS) -L$(BUILDROOT)/libs $(LIBS)
ifeq (Windows, $(findstring Windows,$(OS)))
$(CP) $(APPLICATION).exe $(BIN_PATH)
endif
$(OBJECTS): $(MAKEROOT)/Include/Common/BuildVersion.h
clean: appClean
appClean:
ifeq (Windows, $(findstring Windows,$(OS)))
$(RM) $(BIN_PATH)/$(APPNAME).exe
endif
include $(MAKEROOT)/Makefiles/footer.makefile