Commit | Line | Data |
---|---|---|
420a0d19 CE |
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 | ||
2ea97746 CE |
9 | # FreeBSD Ports no longer insert compatibility symlinks into /usr/bin for |
10 | # scripting languages which traditionally have had them. | |
11 | PERL_COMMAND=/usr/local/bin/perl | |
12 | ||
420a0d19 CE |
13 | HAVE_SA_LEN=YES |
14 | ||
15 | # crypt() is in a separate library | |
16 | LIBS=-lcrypt -lm -lutil | |
17 | ||
2ea97746 | 18 | # Dynamically loaded modules need to be built with -fPIC |
420a0d19 CE |
19 | CFLAGS_DYNAMIC=-shared -rdynamic -fPIC |
20 | ||
21 | # FreeBSD always ships with Berkeley DB | |
22 | USE_DB=yes | |
23 | ||
24 | # This code for building outside ports suggested by Richard Clayton | |
25 | .ifdef X11BASE | |
26 | X11=${X11BASE} | |
27 | .elifdef LOCALBASE | |
28 | X11=$(LOCALBASE) | |
29 | .else | |
30 | X11=/usr/local | |
31 | .endif | |
32 | ||
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 | # | |
44 | XINCLUDE=-I$(X11)/include | |
45 | XLFLAGS=-L$(X11)/lib -Wl,-rpath,${X11}/lib | |
46 | X11_LD_LIB=$(X11)/lib | |
47 | ||
48 | EXIWHAT_PS_ARG=-ax | |
49 | EXIWHAT_EGREP_ARG='/exim( |$$)' | |
50 | EXIWHAT_MULTIKILL_CMD='killall -m' | |
51 | EXIWHAT_MULTIKILL_ARG='^exim($$|-[0-9.]+-[0-9]+$$)' | |
52 | EXIWHAT_KILL_SIGNAL=-USR1 | |
53 | ||
54 | # End |