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.)
15 .PATH: ${SRCTOP}/lib/libc/gen \
16 ${SRCTOP}/lib/libc/net \
17 ${SRCTOP}/lib/libc/stdlib \
21 INTERNALLIB= # Don't install this library
22 SRCS= exec.c getusershell.c login_class.c popen.c rcmdsh.c \
28 # Flags copied from src/lib/libc and src/lib/libutil
29 # libc/db/Makefile.inc
30 CFLAGS+= -D__DBINTERFACE_PRIVATE
31 # libc/net/Makefile.inc & libutil/Makefile
32 .if ${MK_INET6_SUPPORT} != "no"
35 # libc/regex/Makefile.inc & libc/regex/grot/Makefile
36 CFLAGS+= -DPOSIX_MISTAKE
37 # libc/rpc/Makefile.inc
38 CFLAGS+= -DBROKEN_DES -DPORTMAP -DDES_BUILTIN
43 .if ${MK_HESIOD} != "no"
46 CFLAGS+= -I${SRCTOP}/lib/libc/include