2017-12-27 14:12:29 +08:00
|
|
|
## @file
|
|
|
|
# GNU/Linux makefile for 'DevicePath' module build.
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 07:03:11 +08:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2017-12-27 14:12:29 +08:00
|
|
|
#
|
|
|
|
ARCH ?= IA32
|
|
|
|
MAKEROOT ?= ..
|
|
|
|
|
|
|
|
APPNAME = DevicePath
|
|
|
|
|
|
|
|
OBJECTS = DevicePath.o UefiDevicePathLib.o DevicePathFromText.o DevicePathUtilities.o
|
|
|
|
|
|
|
|
include $(MAKEROOT)/Makefiles/app.makefile
|
|
|
|
|
2023-02-16 23:40:46 +08:00
|
|
|
GCCVERSION = $(shell $(CC) -dumpversion | awk -F'.' '{print $$1}')
|
2022-04-04 11:46:21 +08:00
|
|
|
ifneq ("$(GCCVERSION)", "5")
|
|
|
|
ifneq ($(CXX), llvm)
|
2022-08-26 09:31:46 +08:00
|
|
|
ifneq ($(DARWIN),Darwin)
|
2022-03-24 20:04:36 +08:00
|
|
|
# gcc 12 trips over device path handling
|
2023-02-16 23:40:46 +08:00
|
|
|
CFLAGS += -Wno-error=stringop-overflow
|
2022-04-04 11:46:21 +08:00
|
|
|
endif
|
|
|
|
endif
|
2022-08-26 09:31:46 +08:00
|
|
|
endif
|
2022-03-24 20:04:36 +08:00
|
|
|
|
2017-12-27 14:12:29 +08:00
|
|
|
LIBS = -lCommon
|
|
|
|
ifeq ($(CYGWIN), CYGWIN)
|
|
|
|
LIBS += -L/lib/e2fsprogs -luuid
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(LINUX), Linux)
|
|
|
|
LIBS += -luuid
|
|
|
|
endif
|
|
|
|
|