Import Debian patch 4.84.2-2+deb8u3
[hcoop/debian/exim4.git] / OS / Makefile-FreeBSD
CommitLineData
420a0d19
CE
1# Exim: OS-specific make file for FreeBSD
2# There's no setting of CFLAGS here, to allow the system default
3# for "make" to be the default.
4
5CHOWN_COMMAND=/usr/sbin/chown
6STRIP_COMMAND=/usr/bin/strip
7CHMOD_COMMAND=/bin/chmod
8
9HAVE_SA_LEN=YES
10
11# crypt() is in a separate library
12LIBS=-lcrypt -lm -lutil
13
14# Dynamicly loaded modules need to be built with -fPIC
15CFLAGS_DYNAMIC=-shared -rdynamic -fPIC
16
17# FreeBSD always ships with Berkeley DB
18USE_DB=yes
19
20# This code for building outside ports suggested by Richard Clayton
21.ifdef X11BASE
22X11=${X11BASE}
23.elifdef LOCALBASE
24X11=$(LOCALBASE)
25.else
26X11=/usr/local
27.endif
28
29# nb: FreeBSD is entirely elf; objformat was removed prior to FreeBSD 7
30# http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/objformat/Attic/objformat.c
31# deleted Jan 2007.
32#
33# So if this fails, you're on an ancient unsupported FreeBSD release *and*
34# running GUI software, which seems both unusual and unwise.
35#
36# http://www.freebsd.org/doc/handbook/binary-formats.html suggests that the
37# switch to default to ELF came with FreeBSD 3. elf(5) claims ELF support
38# introduced in FreeBSD 2.2.6.
39#
40XINCLUDE=-I$(X11)/include
41XLFLAGS=-L$(X11)/lib -Wl,-rpath,${X11}/lib
42X11_LD_LIB=$(X11)/lib
43
44EXIWHAT_PS_ARG=-ax
45EXIWHAT_EGREP_ARG='/exim( |$$)'
46EXIWHAT_MULTIKILL_CMD='killall -m'
47EXIWHAT_MULTIKILL_ARG='^exim($$|-[0-9.]+-[0-9]+$$)'
48EXIWHAT_KILL_SIGNAL=-USR1
49
50# End