aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/geom/Makefile
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2007-11-04 00:32:54 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2007-11-04 00:32:54 +0000
commita16f9b367d9c86fee4cf605d5757cb2a8dabeec6 (patch)
tree39bd6447af5779e5d5f8008faa8cd7b63166dfc0 /sbin/geom/Makefile
parenta3393da7bf1953d0d833ffa9ac62bd3003c11dc7 (diff)
downloadsrc-a16f9b367d9c86fee4cf605d5757cb2a8dabeec6.tar.gz
src-a16f9b367d9c86fee4cf605d5757cb2a8dabeec6.zip
Allow building of a special rescue version of geom that
has a subset of the classes compiled-in.
Notes
Notes: svn path=/head/; revision=173313
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 95f00d914756..af2b77bbec28 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