mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
14bf405be4
and define STATIC_GEOM_CLASSES when building the rescue binary. This way geom can more easily be part of other crunched binaries, as it requires only a Makefile change.
27 lines
422 B
Makefile
27 lines
422 B
Makefile
# $FreeBSD$
|
|
|
|
.if defined(RESCUE)
|
|
|
|
.PATH: ${.CURDIR}/class/part \
|
|
${.CURDIR}/class/label \
|
|
${.CURDIR}/core \
|
|
${.CURDIR}/misc
|
|
|
|
PROG= geom
|
|
SRCS= geom.c geom_label.c geom_part.c subr.c
|
|
|
|
CFLAGS+=-I${.CURDIR} -I${.CURDIR}/core -DSTATIC_GEOM_CLASSES
|
|
|
|
DPADD= ${LIBGEOM} ${LIBSBUF} ${LIBBSDXML} ${LIBUTIL}
|
|
LDADD= -lgeom -lsbuf -lbsdxml -lutil
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.else
|
|
|
|
SUBDIR= core class
|
|
|
|
.include <bsd.subdir.mk>
|
|
|
|
.endif
|