Home | History | Annotate | Line # | Download | only in plainrsa-gen
Makefile revision 1.3
      1  1.3  christos # $NetBSD: Makefile,v 1.3 2025/03/07 20:07:03 christos Exp $
      2  1.1  christos 
      3  1.1  christos WARNS?=	0	# XXX third-party program, many issues
      4  1.1  christos NOCLANGERROR=	# defined
      5  1.1  christos 
      6  1.1  christos .include <bsd.own.mk>
      7  1.1  christos 
      8  1.1  christos PROG=	plainrsa-gen
      9  1.1  christos SRCS=	plainrsa-gen.c plog.c crypto_openssl.c logger.c vmbuf.c misc.c \
     10  1.1  christos 	rsalist.c sockmisc.c genlist.c prsa_tok.c prsa_par.c
     11  1.1  christos MAN=	plainrsa-gen.8
     12  1.1  christos 
     13  1.1  christos DIST=	${NETBSDSRCDIR}/crypto/dist/ipsec-tools
     14  1.1  christos CPPFLAGS+=	-I${DIST}/src/racoon -I${DIST}/src/racoon/missing
     15  1.1  christos CPPFLAGS+=	-I${DIST}/src/libipsec
     16  1.3  christos CPPFLAGS+=	-I${NETBSDSRCDIR}/lib/libipsec -I.
     17  1.1  christos CPPFLAGS+=	-DHAVE_CONFIG_H -DNOUSE_PRIVSEP
     18  1.1  christos .if ${HAVE_OPENSSL} < 11
     19  1.1  christos CPPFLAGS+=	-DHAVE_OPENSSL_RC5_H
     20  1.1  christos CPPFLAGS+=	-DOPENSSL_API_COMPAT=0x10100000L
     21  1.1  christos .endif
     22  1.1  christos 
     23  1.1  christos .PATH:  ${DIST}/src/racoon
     24  1.1  christos 
     25  1.1  christos LDADD+= -lcrypto -lipsec
     26  1.1  christos DPADD+= ${LIBCRYPTO} ${LIBIPSEC}
     27  1.1  christos 
     28  1.2  christos COPTS.plainrsa-gen.c+= -Wno-error=deprecated-declarations
     29  1.2  christos COPTS.crypto_openssl.c+= -Wno-error=deprecated-declarations
     30  1.2  christos COPTS.rsalist.c+= -Wno-error=deprecated-declarations
     31  1.2  christos COPTS.prsa_par.c+= -Wno-error=deprecated-declarations
     32  1.2  christos 
     33  1.1  christos LPREFIX=prsa
     34  1.1  christos YPREFIX=prsa
     35  1.1  christos YFLAGS=-d
     36  1.3  christos LFLAGS+=--header-file=prsa_tok.h
     37  1.3  christos CLEANFILES+=prsa_tok.h
     38  1.1  christos 
     39  1.1  christos prsa_tok.c: prsa_par.c
     40  1.3  christos rsa_list.c: prsa_tok.c
     41  1.1  christos 
     42  1.1  christos .include <bsd.prog.mk>
     43  1.1  christos 
     44