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