mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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>
36 lines
837 B
Makefile
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
|