7 # Certain library entries have hard-coded references to
8 # /bin, /sbin, etc, that require those entries to be
9 # recompiled for use in /rescue. This Makefile
10 # accomplishes that. Note that this is pure build hackery.
11 # This library should never be installed, and isn't even linked
12 # with in the normal way. (See ../rescue/Makefile for details.)
14 .PATH: ${.CURDIR}/../../lib/libc/gen \
15 ${.CURDIR}/../../lib/libc/net \
16 ${.CURDIR}/../../lib/libc/stdlib \
17 ${.CURDIR}/../../lib/libutil
20 INTERNALLIB= # Don't install this library
21 SRCS= exec.c getusershell.c login_class.c popen.c rcmdsh.c \
25 # Flags copied from src/lib/libc and src/lib/libutil
26 # libc/db/Makefile.inc
27 CFLAGS+= -D__DBINTERFACE_PRIVATE
28 # libc/net/Makefile.inc & libutil/Makefile
29 .if ${MK_INET6_SUPPORT} != "no"
32 # libc/regex/Makefile.inc & libc/regex/grot/Makefile
33 CFLAGS+= -DPOSIX_MISTAKE
34 # libc/rpc/Makefile.inc
35 CFLAGS+= -DBROKEN_DES -DPORTMAP -DDES_BUILTIN
40 .if ${MK_HESIOD} != "no"
43 CFLAGS+= -I${.CURDIR}/../../lib/libc/include