5fb611c2bf
Check for IPv4 or IPv6 to be available by the kernel to not provoke errors trying to query options not available. Make it possible to compile out INET or INET6 only parts.
25 lines
422 B
Makefile
25 lines
422 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= jail
|
|
MAN= jail.8 jail.conf.5
|
|
SRCS= jail.c command.c config.c state.c jailp.h jaillex.l jailparse.y y.tab.h
|
|
|
|
DPADD= ${LIBJAIL} ${LIBKVM} ${LIBUTIL} ${LIBL}
|
|
LDADD= -ljail -lkvm -lutil -ll
|
|
|
|
YFLAGS+=-v
|
|
CFLAGS+=-I. -I${.CURDIR}
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
CFLAGS+= -DINET6
|
|
.endif
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
CFLAGS+= -DINET
|
|
.endif
|
|
|
|
CLEANFILES= y.output
|
|
|
|
.include <bsd.prog.mk>
|