xref: /freebsd/sbin/geom/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1.include <src.opts.mk>
2
3.PATH: ${.CURDIR}/core ${.CURDIR}/misc
4
5PACKAGE=geom
6PROG=		geom
7SRCS=		geom.c subr.c
8MAN=		geom.8
9CFLAGS+=	-I${.CURDIR} -I${.CURDIR}/core
10CFLAGS+=	-DGEOM_CLASS_DIR=\"${GEOM_CLASS_DIR}\"
11
12LIBADD=		geom util
13
14.if defined(RESCUE)
15.PATH:	${SRCTOP}/lib/geom/part \
16	${SRCTOP}/lib/geom/label
17
18SRCS+=	geom_label.c geom_part.c
19MAN=
20
21WARNS?=	2
22CFLAGS+=-DSTATIC_GEOM_CLASSES
23.else
24.include "${SRCTOP}/lib/geom/Makefile.classes"
25LINKS=		${GEOM_CLASSES:S|^|${BINDIR}/geom ${BINDIR}/g|}
26.endif
27
28.include <bsd.prog.mk>
29