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