Build: fix parallelism problem. Bug 2566
[exim.git] / src / OS / Makefile-FreeBSD
CommitLineData
61ec970d 1# Exim: OS-specific make file for FreeBSD
1e1ddfac 2# Copyright (c) The Exim Maintainers 2020
61ec970d 3
61ec970d 4CHOWN_COMMAND=/usr/sbin/chown
4a23603b 5STRIP_COMMAND=/usr/bin/strip
c40dee92 6CHMOD_COMMAND=/bin/chmod
61ec970d 7
f3facb66 8
f6ef9370
PP
9# FreeBSD Ports no longer insert compatibility symlinks into /usr/bin for
10# scripting languages which traditionally have had them.
11PERL_COMMAND=/usr/local/bin/perl
12
61ec970d
PH
13HAVE_SA_LEN=YES
14
15# crypt() is in a separate library
e173618b 16LIBS=-lcrypt -lm -lutil
61ec970d 17
4c04137d 18# Dynamically loaded modules need to be built with -fPIC
0a349494
PP
19CFLAGS_DYNAMIC=-shared -rdynamic -fPIC
20
61ec970d
PH
21# FreeBSD always ships with Berkeley DB
22USE_DB=yes
23
d04744c2
NM
24# This code for building outside ports suggested by Richard Clayton
25.ifdef X11BASE
26X11=${X11BASE}
27.elifdef LOCALBASE
28X11=$(LOCALBASE)
29.else
30X11=/usr/local
31.endif
61ec970d 32
2126b083
PP
33# nb: FreeBSD is entirely elf; objformat was removed prior to FreeBSD 7
34# http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/objformat/Attic/objformat.c
35# deleted Jan 2007.
36#
37# So if this fails, you're on an ancient unsupported FreeBSD release *and*
38# running GUI software, which seems both unusual and unwise.
39#
40# http://www.freebsd.org/doc/handbook/binary-formats.html suggests that the
41# switch to default to ELF came with FreeBSD 3. elf(5) claims ELF support
42# introduced in FreeBSD 2.2.6.
43#
61ec970d 44XINCLUDE=-I$(X11)/include
2126b083 45XLFLAGS=-L$(X11)/lib -Wl,-rpath,${X11}/lib
61ec970d
PH
46X11_LD_LIB=$(X11)/lib
47
48EXIWHAT_PS_ARG=-ax
49EXIWHAT_EGREP_ARG='/exim( |$$)'
50EXIWHAT_MULTIKILL_CMD='killall -m'
51EXIWHAT_MULTIKILL_ARG='^exim($$|-[0-9.]+-[0-9]+$$)'
52EXIWHAT_KILL_SIGNAL=-USR1
53
54# End