freebsd-skq/rescue/librescue/Makefile

37 lines
1.1 KiB
Makefile
Raw Normal View History

#
# $FreeBSD$
#
# 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.)
2003-07-17 06:29:10 +00:00
.PATH: ${.CURDIR}/../../lib/libc/gen \
${.CURDIR}/../../lib/libc/net \
${.CURDIR}/../../lib/libc/stdlib \
${.CURDIR}/../../lib/libutil
LIB= rescue
INTERNALLIB= yes # Don't install this library
2003-07-17 06:29:10 +00:00
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
2003-07-17 06:29:10 +00:00
# libc/db/Makefile.inc
CFLAGS+= -D__DBINTERFACE_PRIVATE
2003-07-17 06:29:10 +00:00
# libc/net/Makefile.inc & libutil/Makefile
CFLAGS+= -DINET6
2003-07-17 06:29:10 +00:00
# libc/regex/Makefile.inc & libc/regex/grot/Makefile
CFLAGS+= -DPOSIX_MISTAKE
2003-07-17 06:29:10 +00:00
# libc/rpc/Makefile.inc
CFLAGS+= -DBROKEN_DES -DPORTMAP -DDES_BUILTIN
# libc/Makefile
CFLAGS+= -DYP -DHESIOD
CFLAGS+= -I${.CURDIR}/../../lib/libc/include
.include <bsd.lib.mk>