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