]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/DevicePath/GNUmakefile
BaseTools: Fix DevicePath tool build failure issue
[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
22130dcd
GH
19# gcc 12 trips over device path handling\r
20BUILD_CFLAGS += -Wno-error=stringop-overflow\r
5576b173
FB
21endif\r
22endif\r
22130dcd 23\r
7dbc50bd
YZ
24LIBS = -lCommon\r
25ifeq ($(CYGWIN), CYGWIN)\r
26 LIBS += -L/lib/e2fsprogs -luuid\r
27endif\r
28\r
29ifeq ($(LINUX), Linux)\r
30 LIBS += -luuid\r
31endif\r
32\r