]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/DevicePath/GNUmakefile
BaseTools: Fix DevicePath GNUmakefile for macOS
[mirror_edk2.git] / BaseTools / Source / C / DevicePath / GNUmakefile
CommitLineData
7dbc50bd
YZ
1## @file\r
2# GNU/Linux makefile for 'DevicePath' module build.\r
3#\r
4# Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
2e351cbe 5# SPDX-License-Identifier: BSD-2-Clause-Patent\r
7dbc50bd
YZ
6#\r
7ARCH ?= IA32\r
8MAKEROOT ?= ..\r
9\r
10APPNAME = DevicePath\r
11\r
12OBJECTS = DevicePath.o UefiDevicePathLib.o DevicePathFromText.o DevicePathUtilities.o\r
13\r
14include $(MAKEROOT)/Makefiles/app.makefile\r
15\r
5576b173
FB
16GCCVERSION = $(shell gcc -dumpversion | awk -F'.' '{print $$1}')\r
17ifneq ("$(GCCVERSION)", "5")\r
18ifneq ($(CXX), llvm)\r
ba0e0e4c 19ifneq ($(DARWIN),Darwin)\r
22130dcd
GH
20# gcc 12 trips over device path handling\r
21BUILD_CFLAGS += -Wno-error=stringop-overflow\r
5576b173
FB
22endif\r
23endif\r
ba0e0e4c 24endif\r
22130dcd 25\r
7dbc50bd
YZ
26LIBS = -lCommon\r
27ifeq ($(CYGWIN), CYGWIN)\r
28 LIBS += -L/lib/e2fsprogs -luuid\r
29endif\r
30\r
31ifeq ($(LINUX), Linux)\r
32 LIBS += -luuid\r
33endif\r
34\r