mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-28 15:33:42 +02:00
Makefile: summarize systems with the same CPPFLAGS and LDFLAGS
Change-Id: I067430e52eb41bf0af4f08246bbe59117bc09bdb Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/58247 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
parent
155ce3d9a3
commit
bb0a6447d9
20
Makefile
20
Makefile
@ -165,31 +165,21 @@ endif
|
|||||||
override TARGET_OS := $(strip $(call debug_shell,$(CC) $(CPPFLAGS) -E os.h 2>/dev/null \
|
override TARGET_OS := $(strip $(call debug_shell,$(CC) $(CPPFLAGS) -E os.h 2>/dev/null \
|
||||||
| tail -1 | cut -f 2 -d'"'))
|
| tail -1 | cut -f 2 -d'"'))
|
||||||
|
|
||||||
|
ifeq ($(TARGET_OS), $(filter $(TARGET_OS), FreeBSD OpenBSD DragonFlyBSD))
|
||||||
|
override CPPFLAGS += -I/usr/local/include
|
||||||
|
override LDFLAGS += -L/usr/local/lib
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET_OS), Darwin)
|
ifeq ($(TARGET_OS), Darwin)
|
||||||
override CPPFLAGS += -I/opt/local/include -I/usr/local/include
|
override CPPFLAGS += -I/opt/local/include -I/usr/local/include
|
||||||
override LDFLAGS += -L/opt/local/lib -L/usr/local/lib
|
override LDFLAGS += -L/opt/local/lib -L/usr/local/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET_OS), FreeBSD)
|
|
||||||
override CPPFLAGS += -I/usr/local/include
|
|
||||||
override LDFLAGS += -L/usr/local/lib
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(TARGET_OS), OpenBSD)
|
|
||||||
override CPPFLAGS += -I/usr/local/include
|
|
||||||
override LDFLAGS += -L/usr/local/lib
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(TARGET_OS), NetBSD)
|
ifeq ($(TARGET_OS), NetBSD)
|
||||||
override CPPFLAGS += -I/usr/pkg/include
|
override CPPFLAGS += -I/usr/pkg/include
|
||||||
override LDFLAGS += -L/usr/pkg/lib
|
override LDFLAGS += -L/usr/pkg/lib
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET_OS), DragonFlyBSD)
|
|
||||||
override CPPFLAGS += -I/usr/local/include
|
|
||||||
override LDFLAGS += -L/usr/local/lib
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(TARGET_OS), DOS)
|
ifeq ($(TARGET_OS), DOS)
|
||||||
EXEC_SUFFIX := .exe
|
EXEC_SUFFIX := .exe
|
||||||
# DJGPP has odd uint*_t definitions which cause lots of format string warnings.
|
# DJGPP has odd uint*_t definitions which cause lots of format string warnings.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user