1# $OpenBSD: Makefile,v 1.2 2017/05/30 15:36:13 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} 10 11LDADD+= -lutil -lcrypto ${IKEOBJS} 12DPADD+= ${LIBUTIL} ${LIBCRYPTO} 13CFLAGS+= -I${.CURDIR}/../../../../sbin/iked 14CFLAGS+= -Wno-missing-field-initializers 15 16test_parser: ${IKEOBJS} 17 18${IKEOBJS}: 19 cd ${.CURDIR}/../../../../sbin/iked && make $@ 20 ln -sf ${.OBJDIR}/../../../../sbin/iked/$@ . 21 22LDADD+= -L${.OBJDIR} -ltest_helper 23DPADD+= libtest_helper.a 24CFLAGS+= -I${.CURDIR}/../test_helper 25 26libtest_helper.a: 27 cd ${.CURDIR}/../test_helper && make $@ 28 ln -sf ${.OBJDIR}/../test_helper/$@ . 29 30.include <bsd.regress.mk> 31