radare2/libr/util/deps.mk
pancake a6e0d6c480 Merge rhash into rcrypto and improve apis ##api
* Update meson and make build systems
* Remove leftovers and unused dependencies
2022-09-15 11:25:40 +02:00

44 lines
708 B
Makefile

include $(SHLR)/sdb.mk
include $(SHLR)/zip/deps.mk
LDFLAGS+=-lm
# NetBSD 7.0 ships with backtrace(3) in -lexecinfo
ifeq (${BUILD_OS},netbsd)
ifneq ($(shell expr "`uname -r`" : '[0-6]\.'), 2)
LDFLAGS+=-lexecinfo
endif
endif
ifeq (${BUILD_OS},serenityos)
LDFLAGS+=
else
ifeq ($(OSTYPE),bsd)
LDFLAGS+=-lkvm
endif
endif
# FreeBSD 10.0 ships with backtrace(3) in -lexecinfo
ifeq (${BUILD_OS},freebsd)
ifneq ($(shell expr "`uname -r`" : '[0-9]\.'), 2)
LDFLAGS+=-lexecinfo
endif
LDFLAGS+=-lutil
endif
ifeq (${BUILD_OS},dragonfly)
LDFLAGS+=-lexecinfo
endif
ifeq (${BUILD_OS},haiku)
LDFLAGS+=-lexecinfo
endif
ifneq ($(OSTYPE),darwin)
ifneq ($(OSTYPE),haiku)
LDFLAGS+=-lm
LINK+=-lm
endif
endif