]>
Commit | Line | Data |
---|---|---|
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 |
7 | ARCH ?= IA32\r | |
8 | MAKEROOT ?= ..\r | |
9 | \r | |
10 | APPNAME = DevicePath\r | |
11 | \r | |
12 | OBJECTS = DevicePath.o UefiDevicePathLib.o DevicePathFromText.o DevicePathUtilities.o\r | |
13 | \r | |
14 | include $(MAKEROOT)/Makefiles/app.makefile\r | |
15 | \r | |
5576b173 FB |
16 | GCCVERSION = $(shell gcc -dumpversion | awk -F'.' '{print $$1}')\r |
17 | ifneq ("$(GCCVERSION)", "5")\r | |
18 | ifneq ($(CXX), llvm)\r | |
ba0e0e4c | 19 | ifneq ($(DARWIN),Darwin)\r |
22130dcd GH |
20 | # gcc 12 trips over device path handling\r |
21 | BUILD_CFLAGS += -Wno-error=stringop-overflow\r | |
5576b173 FB |
22 | endif\r |
23 | endif\r | |
ba0e0e4c | 24 | endif\r |
22130dcd | 25 | \r |
7dbc50bd YZ |
26 | LIBS = -lCommon\r |
27 | ifeq ($(CYGWIN), CYGWIN)\r | |
28 | LIBS += -L/lib/e2fsprogs -luuid\r | |
29 | endif\r | |
30 | \r | |
31 | ifeq ($(LINUX), Linux)\r | |
32 | LIBS += -luuid\r | |
33 | endif\r | |
34 | \r |