xref: /freebsd/rescue/librescue/Makefile (revision 1e413cf93298b5b97441a21d9a50fdcd0ee9945e)
1#
2# $FreeBSD$
3#
4
5.include <bsd.own.mk>
6
7# Certain library entries have hard-coded references to
8# /bin, /sbin, etc, that require those entries to be
9# recompiled for use in /rescue.  This Makefile
10# accomplishes that.  Note that this is pure build hackery.
11# This library should never be installed, and isn't even linked
12# with in the normal way. (See ../rescue/Makefile for details.)
13
14.PATH: ${.CURDIR}/../../lib/libc/gen \
15       ${.CURDIR}/../../lib/libc/net \
16       ${.CURDIR}/../../lib/libc/stdlib \
17       ${.CURDIR}/../../lib/libutil
18
19LIB=		rescue
20INTERNALLIB=	# Don't install this library
21SRCS=		exec.c getusershell.c login_class.c popen.c rcmdsh.c \
22		sysctl.c system.c
23
24CFLAGS+=	-DRESCUE
25# Flags copied from src/lib/libc and src/lib/libutil
26# libc/db/Makefile.inc
27CFLAGS+=	-D__DBINTERFACE_PRIVATE
28# libc/net/Makefile.inc & libutil/Makefile
29.if ${MK_INET6_SUPPORT} != "no"
30CFLAGS+=	-DINET6
31.endif
32# libc/regex/Makefile.inc & libc/regex/grot/Makefile
33CFLAGS+=	-DPOSIX_MISTAKE
34# libc/rpc/Makefile.inc
35CFLAGS+=	-DBROKEN_DES -DPORTMAP -DDES_BUILTIN
36# libc/Makefile
37.if ${MK_NIS} != "no"
38CFLAGS+=       -DYP
39.endif
40.if ${MK_HESIOD} != "no"
41CFLAGS+=       -DHESIOD
42.endif
43CFLAGS+=	-I${.CURDIR}/../../lib/libc/include
44
45.include <bsd.lib.mk>
46