1*528ce0b1Schristos# $NetBSD: Makefile,v 1.2 2023/05/09 20:14:37 christos Exp $ 2f0fde990Schristos 3f0fde990SchristosWARNS?= 0 # XXX third-party program, many issues 4f0fde990SchristosNOCLANGERROR= # defined 5f0fde990Schristos 6f0fde990Schristos.include <bsd.own.mk> 7f0fde990Schristos 8f0fde990SchristosPROG= plainrsa-gen 9f0fde990SchristosSRCS= plainrsa-gen.c plog.c crypto_openssl.c logger.c vmbuf.c misc.c \ 10f0fde990Schristos rsalist.c sockmisc.c genlist.c prsa_tok.c prsa_par.c 11f0fde990SchristosMAN= plainrsa-gen.8 12f0fde990Schristos 13f0fde990SchristosDIST= ${NETBSDSRCDIR}/crypto/dist/ipsec-tools 14f0fde990SchristosCPPFLAGS+= -I${DIST}/src/racoon -I${DIST}/src/racoon/missing 15f0fde990SchristosCPPFLAGS+= -I${DIST}/src/libipsec 16f0fde990SchristosCPPFLAGS+= -I${NETBSDSRCDIR}/lib/libipsec 17f0fde990SchristosCPPFLAGS+= -DHAVE_CONFIG_H -DNOUSE_PRIVSEP 18f0fde990Schristos.if ${HAVE_OPENSSL} < 11 19f0fde990SchristosCPPFLAGS+= -DHAVE_OPENSSL_RC5_H 20f0fde990SchristosCPPFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L 21f0fde990Schristos.endif 22f0fde990Schristos 23f0fde990Schristos.PATH: ${DIST}/src/racoon 24f0fde990Schristos 25f0fde990SchristosLDADD+= -lcrypto -lipsec 26f0fde990SchristosDPADD+= ${LIBCRYPTO} ${LIBIPSEC} 27f0fde990Schristos 28*528ce0b1SchristosCOPTS.plainrsa-gen.c+= -Wno-error=deprecated-declarations 29*528ce0b1SchristosCOPTS.crypto_openssl.c+= -Wno-error=deprecated-declarations 30*528ce0b1SchristosCOPTS.rsalist.c+= -Wno-error=deprecated-declarations 31*528ce0b1SchristosCOPTS.prsa_par.c+= -Wno-error=deprecated-declarations 32*528ce0b1Schristos 33f0fde990SchristosLPREFIX=prsa 34f0fde990SchristosYPREFIX=prsa 35f0fde990SchristosYFLAGS=-d 36f0fde990Schristos 37f0fde990Schristosprsa_tok.c: prsa_par.c 38f0fde990Schristos 39f0fde990Schristos.include <bsd.prog.mk> 40f0fde990Schristos 41