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.)
16 .PATH: ${SRCTOP}/lib/libc/gen \
17 ${SRCTOP}/lib/libc/net \
18 ${SRCTOP}/lib/libc/stdlib \
22 INTERNALLIB= # Don't install this library
23 SRCS= exec.c getusershell.c login_class.c popen.c rcmdsh.c \
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"
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
44 .if ${MK_HESIOD} != "no"
47 CFLAGS+= -I${SRCTOP}/lib/libc/include