summaryrefslogtreecommitdiffstats
path: root/rescue/librescue/Makefile
blob: 62f5da1ba29200060556c4d9126298e226161d1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# $FreeBSD$
#

.include <bsd.own.mk>
MK_SSP=		no

# Certain library entries have hard-coded references to
# /bin, /sbin, etc, that require those entries to be
# recompiled for use in /rescue.  This Makefile
# accomplishes that.  Note that this is pure build hackery.
# This library should never be installed, and isn't even linked
# with in the normal way. (See ../rescue/Makefile for details.)

.PATH: ${.CURDIR}/../../lib/libc/gen \
       ${.CURDIR}/../../lib/libc/net \
       ${.CURDIR}/../../lib/libc/stdlib \
       ${.CURDIR}/../../lib/libutil 

LIB=		rescue
INTERNALLIB=	# Don't install this library
SRCS=		exec.c getusershell.c login_class.c popen.c rcmdsh.c \
		sysctl.c system.c

CFLAGS+=	-DRESCUE
# Flags copied from src/lib/libc and src/lib/libutil
# libc/db/Makefile.inc
CFLAGS+=	-D__DBINTERFACE_PRIVATE
# libc/net/Makefile.inc & libutil/Makefile
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+=	-DINET6
.endif
# libc/regex/Makefile.inc & libc/regex/grot/Makefile
CFLAGS+=	-DPOSIX_MISTAKE
# libc/rpc/Makefile.inc
CFLAGS+=	-DBROKEN_DES -DPORTMAP -DDES_BUILTIN
# libc/Makefile
.if ${MK_NIS} != "no"
CFLAGS+=       -DYP
.endif
.if ${MK_HESIOD} != "no"
CFLAGS+=       -DHESIOD
.endif
CFLAGS+=	-I${.CURDIR}/../../lib/libc/include

.include <bsd.lib.mk>
OpenPOWER on IntegriCloud