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 12.PATH: ${.CURDIR}/../../lib/libc/gen \ 13 ${.CURDIR}/../../lib/libc/net \ 14 ${.CURDIR}/../../lib/libc/stdlib \ 15 ${.CURDIR}/../../lib/libutil 16 17LIB= rescue 18INTERNALLIB= yes # Don't install this library 19SRCS= exec.c getusershell.c login_class.c popen.c rcmdsh.c \ 20 sysctl.c system.c 21 22CFLAGS+= -DRESCUE 23# Flags copied from src/lib/libc and src/lib/libutil 24# libc/db/Makefile.inc 25CFLAGS+= -D__DBINTERFACE_PRIVATE 26# libc/net/Makefile.inc & libutil/Makefile 27CFLAGS+= -DINET6 28# libc/regex/Makefile.inc & libc/regex/grot/Makefile 29CFLAGS+= -DPOSIX_MISTAKE 30# libc/rpc/Makefile.inc 31CFLAGS+= -DBROKEN_DES -DPORTMAP -DDES_BUILTIN 32# libc/Makefile 33CFLAGS+= -DYP -DHESIOD 34CFLAGS+= -I${.CURDIR}/../../lib/libc/include 35 36.include <bsd.lib.mk> 37