]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - rescue/librescue/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / rescue / librescue / Makefile
1 #
2 # $FreeBSD$
3 #
4
5 .include <bsd.own.mk>
6 MK_SSP=         no
7
8 # Certain library entries have hard-coded references to
9 # /bin, /sbin, etc, that require those entries to be
10 # recompiled for use in /rescue.  This Makefile
11 # accomplishes that.  Note that this is pure build hackery.
12 # This library should never be installed, and isn't even linked
13 # with in the normal way. (See ../rescue/Makefile for details.)
14
15 .PATH: ${.CURDIR}/../../lib/libc/gen \
16        ${.CURDIR}/../../lib/libc/net \
17        ${.CURDIR}/../../lib/libc/stdlib \
18        ${.CURDIR}/../../lib/libutil 
19
20 LIB=            rescue
21 INTERNALLIB=    # Don't install this library
22 SRCS=           exec.c getusershell.c login_class.c popen.c rcmdsh.c \
23                 sysctl.c system.c
24
25 CFLAGS+=        -DRESCUE
26 # Flags copied from src/lib/libc and src/lib/libutil
27 # libc/db/Makefile.inc
28 CFLAGS+=        -D__DBINTERFACE_PRIVATE
29 # libc/net/Makefile.inc & libutil/Makefile
30 .if ${MK_INET6_SUPPORT} != "no"
31 CFLAGS+=        -DINET6
32 .endif
33 # libc/regex/Makefile.inc & libc/regex/grot/Makefile
34 CFLAGS+=        -DPOSIX_MISTAKE
35 # libc/rpc/Makefile.inc
36 CFLAGS+=        -DBROKEN_DES -DPORTMAP -DDES_BUILTIN
37 # libc/Makefile
38 .if ${MK_NIS} != "no"
39 CFLAGS+=       -DYP
40 .endif
41 .if ${MK_HESIOD} != "no"
42 CFLAGS+=       -DHESIOD
43 .endif
44 CFLAGS+=        -I${.CURDIR}/../../lib/libc/include
45
46 .include <bsd.lib.mk>