1# $OpenBSD: Makefile,v 1.3 2022/02/23 22:50:32 bluhm Exp $ 2 3WARNINGS=Yes 4 5PROG= test_parser 6SRCS= tests.c common.c test_parser_fuzz.c 7IKEOBJS= ikev2_pld.o imsg_util.o log.o util.o \ 8 ikev2_map.o eap_map.o 9CLEANFILES= ${IKEOBJS} ${PROG}.log 10 11LDADD+= -lutil -lcrypto ${IKEOBJS} 12DPADD+= ${LIBUTIL} ${LIBCRYPTO} 13CFLAGS+= -I${.CURDIR}/../../../../sbin/iked 14CFLAGS+= -Wno-missing-field-initializers 15 16run-regress-${PROG}: ${PROG} 17 ./${PROG} >${PROG}.log 2>&1 18 19test_parser: ${IKEOBJS} 20 21${IKEOBJS}: 22 cd ${.CURDIR}/../../../../sbin/iked && make $@ 23 ln -sf ${.OBJDIR}/../../../../sbin/iked/$@ . 24 25LDADD+= -L${.OBJDIR} -ltest_helper 26DPADD+= libtest_helper.a 27CFLAGS+= -I${.CURDIR}/../test_helper 28 29libtest_helper.a: 30 cd ${.CURDIR}/../test_helper && make $@ 31 ln -sf ${.OBJDIR}/../test_helper/$@ . 32 33.include <bsd.regress.mk> 34