summaryrefslogtreecommitdiffstats
path: root/sbin/geom/Makefile
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2007-11-04 00:32:54 +0000
committermarcel <marcel@FreeBSD.org>2007-11-04 00:32:54 +0000
commite52d34f074eb45508929484728604bbb8fb94593 (patch)
tree39bd6447af5779e5d5f8008faa8cd7b63166dfc0 /sbin/geom/Makefile
parent46608d3cace876f78956135d50fcacc0c45d9a8e (diff)
downloadFreeBSD-src-e52d34f074eb45508929484728604bbb8fb94593.zip
FreeBSD-src-e52d34f074eb45508929484728604bbb8fb94593.tar.gz
Allow building of a special rescue version of geom that
has a subset of the classes compiled-in.
Diffstat (limited to 'sbin/geom/Makefile')
-rw-r--r--sbin/geom/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/sbin/geom/Makefile b/sbin/geom/Makefile
index 95f00d9..af2b77b 100644
--- a/sbin/geom/Makefile
+++ b/sbin/geom/Makefile
@@ -1,5 +1,23 @@
# $FreeBSD$
+.if defined(RESCUE)
+
+.PATH: ${.CURDIR}/class/part ${.CURDIR}/core ${.CURDIR}/misc
+
+PROG= geom
+SRCS= geom.c geom_part.c subr.c
+
+CFLAGS+=-I${.CURDIR} -I${.CURDIR}/core
+
+DPADD= ${LIBGEOM} ${LIBSBUF} ${LIBBSDXML} ${LIBUTIL}
+LDADD= -lgeom -lsbuf -lbsdxml -lutil
+
+.include <bsd.prog.mk>
+
+.else
+
SUBDIR= core class
.include <bsd.subdir.mk>
+
+.endif
OpenPOWER on IntegriCloud