xref: /freebsd/rescue/librescue/Makefile (revision a5921bc3653e2e286715e6fe8d473ec0d02da38c)
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: ${.CURDIR}/../../lib/libc/gen \
17       ${.CURDIR}/../../lib/libc/net \
18       ${.CURDIR}/../../lib/libc/stdlib \
19       ${.CURDIR}/../../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
26CFLAGS+=	-DRESCUE
27# Flags copied from src/lib/libc and src/lib/libutil
28# libc/db/Makefile.inc
29CFLAGS+=	-D__DBINTERFACE_PRIVATE
30# libc/net/Makefile.inc & libutil/Makefile
31.if ${MK_INET6_SUPPORT} != "no"
32CFLAGS+=	-DINET6
33.endif
34# libc/regex/Makefile.inc & libc/regex/grot/Makefile
35CFLAGS+=	-DPOSIX_MISTAKE
36# libc/rpc/Makefile.inc
37CFLAGS+=	-DBROKEN_DES -DPORTMAP -DDES_BUILTIN
38# libc/Makefile
39.if ${MK_NIS} != "no"
40CFLAGS+=       -DYP
41.endif
42.if ${MK_HESIOD} != "no"
43CFLAGS+=       -DHESIOD
44.endif
45CFLAGS+=	-I${.CURDIR}/../../lib/libc/include
46
47.include <bsd.lib.mk>
48