aboutsummaryrefslogtreecommitdiff
path: root/sbin/geom/Makefile
blob: b311a9e8e8fb6f99c13847e468180b3380f57610 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

.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>