1# 2# $FreeBSD$ 3# 4 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.) 11 12LIB= rescue 13NOPROFILE= yes # Don't generate profile version 14INTERNALLIB= yes # Don't install this library 15 16CFLAGS+= -DRESCUE 17# Flags copied from src/lib/libc and src/lib/libutil 18CFLAGS+= -I${.CURDIR}/../../lib/libc/include 19CFLAGS+= -D__DBINTERFACE_PRIVATE 20CFLAGS+= -DINET6 21CFLAGS+= -DPOSIX_MISTAKE 22CFLAGS+= -I${.CURDIR}/../../lib/libc/locale 23CFLAGS+= -DBROKEN_DES 24CFLAGS+= -DPORTMAP 25CFLAGS+= -DDES_BUILTIN 26CFLAGS+= -DYP 27CFLAGS+= -DHESIOD 28 29.PATH: ${.CURDIR}/../../lib/libc/gen ${.CURDIR}/../../lib/libutil ${.CURDIR}/../../lib/libc/net ${.CURDIR}/../../lib/libc/stdlib 30 31SRCS = exec.c getusershell.c login_class.c popen.c rcmdsh.c sysctl.c system.c 32 33.include <bsd.lib.mk> 34