2003-06-29 18:35:37 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2009-02-21 15:04:31 +00:00
|
|
|
MK_SSP= no
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2003-06-29 18:35:37 +00:00
|
|
|
# Certain library entries have hard-coded references to
|
|
|
|
# /bin, /sbin, etc, that require those entries to be
|
|
|
|
# recompiled for use in /rescue. This Makefile
|
|
|
|
# accomplishes that. Note that this is pure build hackery.
|
|
|
|
# This library should never be installed, and isn't even linked
|
|
|
|
# with in the normal way. (See ../rescue/Makefile for details.)
|
|
|
|
|
2003-07-17 06:29:10 +00:00
|
|
|
.PATH: ${.CURDIR}/../../lib/libc/gen \
|
|
|
|
${.CURDIR}/../../lib/libc/net \
|
|
|
|
${.CURDIR}/../../lib/libc/stdlib \
|
|
|
|
${.CURDIR}/../../lib/libutil
|
|
|
|
|
2003-06-29 18:35:37 +00:00
|
|
|
LIB= rescue
|
2004-10-24 15:33:08 +00:00
|
|
|
INTERNALLIB= # Don't install this library
|
2003-07-17 06:29:10 +00:00
|
|
|
SRCS= exec.c getusershell.c login_class.c popen.c rcmdsh.c \
|
|
|
|
sysctl.c system.c
|
2003-06-29 18:35:37 +00:00
|
|
|
|
|
|
|
CFLAGS+= -DRESCUE
|
|
|
|
# Flags copied from src/lib/libc and src/lib/libutil
|
2003-07-17 06:29:10 +00:00
|
|
|
# libc/db/Makefile.inc
|
2003-06-29 18:35:37 +00:00
|
|
|
CFLAGS+= -D__DBINTERFACE_PRIVATE
|
2003-07-17 06:29:10 +00:00
|
|
|
# libc/net/Makefile.inc & libutil/Makefile
|
2006-07-27 12:28:05 +00:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
2003-06-29 18:35:37 +00:00
|
|
|
CFLAGS+= -DINET6
|
2006-07-27 12:28:05 +00:00
|
|
|
.endif
|
2003-07-17 06:29:10 +00:00
|
|
|
# libc/regex/Makefile.inc & libc/regex/grot/Makefile
|
2003-06-29 18:35:37 +00:00
|
|
|
CFLAGS+= -DPOSIX_MISTAKE
|
2003-07-17 06:29:10 +00:00
|
|
|
# libc/rpc/Makefile.inc
|
|
|
|
CFLAGS+= -DBROKEN_DES -DPORTMAP -DDES_BUILTIN
|
|
|
|
# libc/Makefile
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_NIS} != "no"
|
2004-11-13 20:40:32 +00:00
|
|
|
CFLAGS+= -DYP
|
|
|
|
.endif
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_HESIOD} != "no"
|
2004-11-13 20:40:32 +00:00
|
|
|
CFLAGS+= -DHESIOD
|
2005-08-06 16:53:55 +00:00
|
|
|
.endif
|
2003-07-17 06:29:10 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../lib/libc/include
|
2003-06-29 18:35:37 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|