xref: /freebsd/rescue/librescue/Makefile (revision edc02bfbfabab51684a83f4fd285e6c766e6eb72)
1#
2# $FreeBSD$
3#
4
5# Certain library entries have hard-coded references to
6# /bin, /sbin, etc, that require those entries to be
7# recompiled for use in /rescue.  This Makefile
8# accomplishes that.  Note that this is pure build hackery.
9# This library should never be installed, and isn't even linked
10# with in the normal way. (See ../rescue/Makefile for details.)
11
12LIB=		rescue
13NOPROFILE=	yes	# Don't generate profile version
14INTERNALLIB=	yes	# Don't install this library
15
16CFLAGS+=	-DRESCUE
17# Flags copied from src/lib/libc and src/lib/libutil
18CFLAGS+=	-I${.CURDIR}/../../lib/libc/include
19CFLAGS+=	-I${.CURDIR}/../../include
20CFLAGS+=	-D__DBINTERFACE_PRIVATE
21CFLAGS+=	-DINET6
22CFLAGS+=	-I${.OBJDIR}/../../lib/libc
23CFLAGS+=	-DPOSIX_MISTAKE
24CFLAGS+=	-I${.CURDIR}/../../lib/libc/locale
25CFLAGS+=	-DBROKEN_DES
26CFLAGS+=	-DPORTMAP
27CFLAGS+=	-DDES_BUILTIN
28CFLAGS+=	-DYP
29CFLAGS+=	-DHESIOD
30
31.PATH: ${.CURDIR}/../../lib/libc/gen ${.CURDIR}/../../lib/libutil ${.CURDIR}/../../lib/libc/net ${.CURDIR}/../../lib/libc/stdlib
32
33SRCS = exec.c getusershell.c login_class.c popen.c rcmdsh.c sysctl.c system.c
34
35.include <bsd.lib.mk>
36