BUGFIX: forced-fail smtp option tls_sni would dereference NULL
[exim.git] / src / OS / Makefile-FreeBSD
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
5 CHOWN_COMMAND=/usr/sbin/chown
6 STRIP_COMMAND=/usr/bin/strip
7 CHMOD_COMMAND=/bin/chmod
8
9 HAVE_SA_LEN=YES
10
11 # crypt() is in a separate library
12 LIBS=-lcrypt -lm -lutil
13
14 # Dynamicly loaded modules need to be built with -fPIC
15 CFLAGS_DYNAMIC=-shared -rdynamic -fPIC
16
17 # FreeBSD always ships with Berkeley DB
18 USE_DB=yes
19
20 # This code for building outside ports suggested by Richard Clayton
21 .ifdef X11BASE
22 X11=${X11BASE}
23 .elifdef LOCALBASE
24 X11=$(LOCALBASE)
25 .else
26 X11=/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 #
40 XINCLUDE=-I$(X11)/include
41 XLFLAGS=-L$(X11)/lib -Wl,-rpath,${X11}/lib
42 X11_LD_LIB=$(X11)/lib
43
44 EXIWHAT_PS_ARG=-ax
45 EXIWHAT_EGREP_ARG='/exim( |$$)'
46 EXIWHAT_MULTIKILL_CMD='killall -m'
47 EXIWHAT_MULTIKILL_ARG='^exim($$|-[0-9.]+-[0-9]+$$)'
48 EXIWHAT_KILL_SIGNAL=-USR1
49
50 # End