# Exim: OS-specific make file for OpenBSD
# Copyright (c) The Exim Maintainers 2022 - 2023
# SPDX-License-Identifier: GPL-2.0-or-later

CHOWN_COMMAND=/usr/sbin/chown
CHGRP_COMMAND=/usr/sbin/chgrp
CHMOD_COMMAND=/bin/chmod

CC=cc
CFLAGS=-O2 -Wall -Wno-parentheses -Wno-self-assign -Wno-logical-op-parentheses

LIBS=-lm

HAVE_SA_LEN=YES

X11=/usr/X11R6
XINCLUDE=-I$(X11)/include
XLFLAGS=-L$(X11)/lib

EXIWHAT_MULTIKILL_CMD=pkill
EXIWHAT_MULTIKILL_ARG='exim( |$$|-)'
EXIWHAT_PS_ARG=-ax
EXIWHAT_EGREP_ARG='/exim( |$$)'
EXIWHAT_KILL_SIGNAL=-USR1

HAVE_IPV6=YES
CFLAGS += -DNO_EXECINFO

# OpenBSD ships with a too-old Berkeley DB.  NDBM is the default if we don't specify one.
#USE_DB=yes

# End
