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