aboutsummaryrefslogtreecommitdiffstats
path: root/rescue/librescue/Makefile
diff options
context:
space:
mode:
authorGordon Tetlow <gordon@FreeBSD.org>2003-06-29 18:35:37 +0000
committerGordon Tetlow <gordon@FreeBSD.org>2003-06-29 18:35:37 +0000
commit884c25d15a315711e0a9dc1efbbf42829746cf09 (patch)
tree0754f4a5c813bf14e8452456b036099cbbec48c5 /rescue/librescue/Makefile
parent3c9b8563579fd04ca520af3f84316761e528a65e (diff)
downloadsrc-884c25d15a315711e0a9dc1efbbf42829746cf09.tar.gz
src-884c25d15a315711e0a9dc1efbbf42829746cf09.zip
Add /rescue bits. This basically encompasses all of bin and sbin along
with a couple of bits from usr.bin in a crunchgen'd binary. Submitted by: Tim Kientzle <kientzle@acm.org>
Notes
Notes: svn path=/head/; revision=117035
Diffstat (limited to 'rescue/librescue/Makefile')
-rw-r--r--rescue/librescue/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/rescue/librescue/Makefile b/rescue/librescue/Makefile
new file mode 100644
index 000000000000..8464adf325b5
--- /dev/null
+++ b/rescue/librescue/Makefile
@@ -0,0 +1,36 @@
+#
+# $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.)
+
+LIB= rescue
+NOPROFILE= yes # Don't generate profile version
+INTERNALLIB= yes # Don't install this library
+
+CFLAGS+= -DRESCUE
+# Flags copied from src/lib/libc and src/lib/libutil
+CFLAGS+= -I${.CURDIR}/../../lib/libc/include
+CFLAGS+= -I${.CURDIR}/../../include
+CFLAGS+= -D__DBINTERFACE_PRIVATE
+CFLAGS+= -DINET6
+CFLAGS+= -I${.OBJDIR}/../../lib/libc
+CFLAGS+= -DPOSIX_MISTAKE
+CFLAGS+= -I${.CURDIR}/../../lib/libc/locale
+CFLAGS+= -DBROKEN_DES
+CFLAGS+= -DPORTMAP
+CFLAGS+= -DDES_BUILTIN
+CFLAGS+= -DYP
+CFLAGS+= -DHESIOD
+CFLAGS+= -Wall -Wwrite-strings -Wpointer-arith
+
+.PATH: ${.CURDIR}/../../lib/libc/gen ${.CURDIR}/../../lib/libutil ${.CURDIR}/../../lib/libc/net ${.CURDIR}/../../lib/libc/stdlib
+
+SRCS = exec.c getusershell.c login_class.c popen.c rcmdsh.c sysctl.c system.c
+
+.include <bsd.lib.mk>