1117035Sgordon#
2117035Sgordon# $FreeBSD$
3117035Sgordon#
4117035Sgordon
5156813Sru.include <bsd.own.mk>
6188895SruMK_SSP=		no
7156813Sru
8117035Sgordon# Certain library entries have hard-coded references to
9117035Sgordon# /bin, /sbin, etc, that require those entries to be
10117035Sgordon# recompiled for use in /rescue.  This Makefile
11117035Sgordon# accomplishes that.  Note that this is pure build hackery.
12117035Sgordon# This library should never be installed, and isn't even linked
13117035Sgordon# with in the normal way. (See ../rescue/Makefile for details.)
14117035Sgordon
15117680Sobrien.PATH: ${.CURDIR}/../../lib/libc/gen \
16117680Sobrien       ${.CURDIR}/../../lib/libc/net \
17117680Sobrien       ${.CURDIR}/../../lib/libc/stdlib \
18117680Sobrien       ${.CURDIR}/../../lib/libutil 
19117680Sobrien
20117035SgordonLIB=		rescue
21136910SruINTERNALLIB=	# Don't install this library
22117680SobrienSRCS=		exec.c getusershell.c login_class.c popen.c rcmdsh.c \
23117680Sobrien		sysctl.c system.c
24117035Sgordon
25117035SgordonCFLAGS+=	-DRESCUE
26117035Sgordon# Flags copied from src/lib/libc and src/lib/libutil
27117680Sobrien# libc/db/Makefile.inc
28117035SgordonCFLAGS+=	-D__DBINTERFACE_PRIVATE
29117680Sobrien# libc/net/Makefile.inc & libutil/Makefile
30160744Syar.if ${MK_INET6_SUPPORT} != "no"
31117035SgordonCFLAGS+=	-DINET6
32160744Syar.endif
33117680Sobrien# libc/regex/Makefile.inc & libc/regex/grot/Makefile
34117035SgordonCFLAGS+=	-DPOSIX_MISTAKE
35117680Sobrien# libc/rpc/Makefile.inc
36117680SobrienCFLAGS+=	-DBROKEN_DES -DPORTMAP -DDES_BUILTIN
37117680Sobrien# libc/Makefile
38156813Sru.if ${MK_NIS} != "no"
39137675SbzCFLAGS+=       -DYP
40137675Sbz.endif
41156813Sru.if ${MK_HESIOD} != "no"
42137675SbzCFLAGS+=       -DHESIOD
43148796Sphk.endif
44117680SobrienCFLAGS+=	-I${.CURDIR}/../../lib/libc/include
45117035Sgordon
46117035Sgordon.include <bsd.lib.mk>
47