freebsd-dev/sbin/geom/Makefile
Emmanuel Vadot 0bf688786f pkgbase: Put geom utilities in their own package
For most users it's not needed to boot and they are also
available in the FreeBSD-rescue package in case an update
break and FreeBSD-geom package isn't updated correctly.

Differential Revision:	https://reviews.freebsd.org/D36224
2022-10-26 19:46:28 +02:00

31 lines
543 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
.PATH: ${.CURDIR}/core ${.CURDIR}/misc
PACKAGE=geom
PROG= geom
SRCS= geom.c subr.c
MAN= geom.8
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/core
CFLAGS+= -DGEOM_CLASS_DIR=\"${GEOM_CLASS_DIR}\"
LIBADD= geom util
.if defined(RESCUE)
.PATH: ${SRCTOP}/lib/geom/part \
${SRCTOP}/lib/geom/label
SRCS+= geom_label.c geom_part.c
MAN=
WARNS?= 2
CFLAGS+=-DSTATIC_GEOM_CLASSES
.else
.include "${SRCTOP}/lib/geom/Makefile.classes"
LINKS= ${GEOM_CLASSES:S|^|${BINDIR}/geom ${BINDIR}/g|}
.endif
.include <bsd.prog.mk>