1# 2# $FreeBSD$ 3# 4 5.include <src.opts.mk> 6PACKAGE= rescue 7MK_SSP= no 8 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.) 15 16.PATH: ${SRCTOP}/lib/libc/gen \ 17 ${SRCTOP}/lib/libc/net \ 18 ${SRCTOP}/lib/libc/stdlib \ 19 ${SRCTOP}/lib/libutil 20 21LIB= rescue 22INTERNALLIB= # Don't install this library 23SRCS= exec.c getusershell.c login_class.c popen.c rcmdsh.c \ 24 sysctl.c system.c 25 26WARNS?= 3 27 28CFLAGS+= -DRESCUE 29# Flags copied from src/lib/libc and src/lib/libutil 30# libc/db/Makefile.inc 31CFLAGS+= -D__DBINTERFACE_PRIVATE 32# libc/net/Makefile.inc & libutil/Makefile 33.if ${MK_INET6_SUPPORT} != "no" 34CFLAGS+= -DINET6 35.endif 36# libc/regex/Makefile.inc & libc/regex/grot/Makefile 37CFLAGS+= -DPOSIX_MISTAKE 38# libc/rpc/Makefile.inc 39CFLAGS+= -DBROKEN_DES -DPORTMAP -DDES_BUILTIN 40# libc/Makefile 41.if ${MK_NIS} != "no" 42CFLAGS+= -DYP 43.endif 44.if ${MK_HESIOD} != "no" 45CFLAGS+= -DHESIOD 46.endif 47CFLAGS+= -I${SRCTOP}/lib/libc/include 48 49.include <bsd.lib.mk> 50