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