Fixes for FreeBSD outside of ports. Fixes: #914
[exim.git] / src / OS / Makefile-FreeBSD
CommitLineData
d04744c2 1# $Cambridge: exim/src/OS/Makefile-FreeBSD,v 1.6 2009/11/19 18:58:44 nm4 Exp $
61ec970d
PH
2
3# Exim: OS-specific make file for FreeBSD
4# There's no setting of CFLAGS here, to allow the system default
5# for "make" to be the default.
6
7PORTOBJFORMAT!= test -x /usr/bin/objformat && /usr/bin/objformat || echo aout
8
9CHOWN_COMMAND=/usr/sbin/chown
4a23603b 10STRIP_COMMAND=/usr/bin/strip
c40dee92 11CHMOD_COMMAND=/bin/chmod
61ec970d
PH
12
13HAVE_SA_LEN=YES
14
15# crypt() is in a separate library
e173618b 16LIBS=-lcrypt -lm -lutil
61ec970d
PH
17
18# FreeBSD always ships with Berkeley DB
19USE_DB=yes
20
d04744c2
NM
21# This code for building outside ports suggested by Richard Clayton
22.ifdef X11BASE
23X11=${X11BASE}
24.elifdef LOCALBASE
25X11=$(LOCALBASE)
26.else
27X11=/usr/local
28.endif
61ec970d
PH
29
30XINCLUDE=-I$(X11)/include
31XLFLAGS=-L$(X11)/lib
32.if ${PORTOBJFORMAT} == "elf"
d04744c2 33XLFLAGS+=-Wl,-rpath,${X11}/lib
61ec970d
PH
34.endif
35X11_LD_LIB=$(X11)/lib
36
37EXIWHAT_PS_ARG=-ax
38EXIWHAT_EGREP_ARG='/exim( |$$)'
39EXIWHAT_MULTIKILL_CMD='killall -m'
40EXIWHAT_MULTIKILL_ARG='^exim($$|-[0-9.]+-[0-9]+$$)'
41EXIWHAT_KILL_SIGNAL=-USR1
42
43# End