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