1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= jail 6MAN= jail.8 jail.conf.5 7SRCS= jail.c command.c config.c state.c jailp.h jaillex.l jailparse.y y.tab.h 8 9LIBADD= jail kvm util 10 11PACKAGE=jail 12 13NO_WMISSING_VARIABLE_DECLARATIONS= 14CWARNFLAGS.jailparse.c= ${NO_WUNUSED_BUT_SET_VARIABLE} 15 16YFLAGS+=-v 17CFLAGS+=-I. -I${.CURDIR} 18 19# workaround for GNU ld (GNU Binutils) 2.33.1: 20# relocation truncated to fit: R_RISCV_GPREL_I against `.LANCHOR2' 21# https://bugs.freebsd.org/242109 22.if defined(LINKER_TYPE) && ${LINKER_TYPE} == "bfd" && ${MACHINE} == "riscv" 23CFLAGS+=-Wl,--no-relax 24.endif 25 26.if ${MK_INET6_SUPPORT} != "no" 27CFLAGS+= -DINET6 28.endif 29.if ${MK_INET_SUPPORT} != "no" 30CFLAGS+= -DINET 31.endif 32 33CLEANFILES= y.output 34 35HAS_TESTS= 36SUBDIR.${MK_TESTS}+= tests 37 38.include <bsd.prog.mk> 39