From a16f9b367d9c86fee4cf605d5757cb2a8dabeec6 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sun, 4 Nov 2007 00:32:54 +0000 Subject: Allow building of a special rescue version of geom that has a subset of the classes compiled-in. --- sbin/geom/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'sbin/geom/Makefile') 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 + +.else + SUBDIR= core class .include + +.endif -- cgit v1.2.3