5 # Certain library entries have hard-coded references to
6 # /bin, /sbin, etc, that require those entries to be
7 # recompiled for use in /rescue. This Makefile
8 # accomplishes that. Note that this is pure build hackery.
9 # This library should never be installed, and isn't even linked
10 # with in the normal way. (See ../rescue/Makefile for details.)
12 .PATH: ${.CURDIR}/../../lib/libc/gen \
13 ${.CURDIR}/../../lib/libc/net \
14 ${.CURDIR}/../../lib/libc/stdlib \
15 ${.CURDIR}/../../lib/libutil
18 INTERNALLIB= # Don't install this library
19 SRCS= exec.c getusershell.c login_class.c popen.c rcmdsh.c \
23 # Flags copied from src/lib/libc and src/lib/libutil
24 # libc/db/Makefile.inc
25 CFLAGS+= -D__DBINTERFACE_PRIVATE
26 # libc/net/Makefile.inc & libutil/Makefile
28 # libc/regex/Makefile.inc & libc/regex/grot/Makefile
29 CFLAGS+= -DPOSIX_MISTAKE
30 # libc/rpc/Makefile.inc
31 CFLAGS+= -DBROKEN_DES -DPORTMAP -DDES_BUILTIN
36 .if defined(YES_HESIOD)
39 CFLAGS+= -I${.CURDIR}/../../lib/libc/include