# $NetBSD: Makefile,v 1.12 2005/03/09 03:11:23 christos Exp $ WARNS= 0 # Will be fixed later .include PROG= racoon SRCS= main.c session.c isakmp.c handler.c \ isakmp_ident.c isakmp_agg.c isakmp_base.c \ isakmp_quick.c isakmp_inf.c isakmp_newg.c \ gssapi.c dnssec.c getcertsbyname.c privsep.c \ pfkey.c admin.c evt.c ipsec_doi.c oakley.c \ grabmyaddr.c vendorid.c policy.c localconf.c \ remoteconf.c crypto_openssl.c algorithm.c \ proposal.c sainfo.c strnames.c plog.c logger.c \ schedule.c str2val.c safefile.c backupsa.c \ genlist.c rsalist.c cftoken.l cfparse.y \ prsa_tok.l prsa_par.y isakmp_xauth.c isakmp_cfg.c \ isakmp_unity.c throttle.c isakmp_frag.c \ nattraversal.c vmbuf.c sockmisc.c misc.c \ sha2.c MAN= racoon.8 racoon.conf.5 DIST= ${NETBSDSRCDIR}/crypto/dist/ipsec-tools CPPFLAGS+= -I${DIST}/src/racoon -I${DIST}/src/libipsec CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libipsec -I. CPPFLAGS+= -I${DIST}/src/racoon/missing CPPFLAGS+= -DIPSEC_DEBUG -DHAVE_CONFIG_H CPPFLAGS+= -DADMINPORTDIR=\"/var/run\" CPPFLAGS+= -DSYSCONFDIR=\"/etc/racoon\" CPPFLAGS+= -DSADB_X_EALG_AESCBC=SADB_X_EALG_AES LDADD+= -ll -ly -lipsec DPADD+= ${LIBL} ${LIBY} ${LIBCRYPTO} YHEADER=cfparse.h CPPFLAGS+=-DHAVE_LIBRADIUS LDADD+=-lradius DPADD+= ${LIBRADIUS} .if (${USE_PAM} != "no") CPPFLAGS+=-DHAVE_LIBPAM LDADD+= -lpam ${PAM_STATIC_LDADD} DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} .endif .if (${USE_KERBEROS} != "no") CPPFLAGS+=-DHAVE_GSSAPI LDADD+= -lgssapi -lkrb5 -lcom_err -lroken -lasn1 DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBCOM_ERR} ${LIBROKEN} ${LIBASN1} .endif .if (${MKCRYPTO_IDEA} != "no") CPPFLAGS+=-DHAVE_OPENSSL_IDEA_H LDADD+= -lcrypto_idea LDADD+= ${LIBCRYPTO_IDEA} .endif .if (${MKCRYPTO_RC5} != "no") CPPFLAGS+=-DHAVE_OPENSSL_RC5_H LDADD+= -lcrypto_rc5 LDADD+= ${LIBCRYPTO_RC5} .endif .if (${USE_INET6} != "no") CPPFLAGS+=-DINET6 .endif LDADD+= -lcrypto -lcrypt DPADD+= ${LIBIPSEC} ${LIBCRYPT} .PATH: ${NETBSDSRCDIR}/lib/libipsec ${DIST}/src/racoon \ ${DIST}/src/racoon/missing/crypto/sha2 prsa_tok.c: ${DIST}/src/racoon/prsa_tok.l ${LEX} -Pprsa -o${.TARGET} ${.ALLSRC} prsa_par.c: ${DIST}/src/racoon/prsa_par.y ${YACC} -pprsa -d -o ${.TARGET} ${.ALLSRC} .include