NetBSD/usr.sbin/racoon/Makefile

80 lines
2.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.21 2008/04/10 15:42:06 tsutsui Exp $
WARNS= 0 # Will be fixed later
.include <bsd.own.mk>
2007-05-28 16:06:17 +04:00
USE_FORT?= yes # network client and server
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 \
2005-11-26 05:32:32 +03:00
nattraversal.c vmbuf.c sockmisc.c misc.c
MAN= racoon.8 racoon.conf.5
DIST= ${NETBSDSRCDIR}/crypto/dist/ipsec-tools
CPPFLAGS+= -I${DIST}/src/racoon -I${DIST}/src/racoon/missing
CPPFLAGS+= -I${DIST}/src/libipsec
2005-02-19 20:05:02 +03:00
CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libipsec -I.
CPPFLAGS+= -DIPSEC_DEBUG -DHAVE_CONFIG_H
CPPFLAGS+= -DADMINPORTDIR=\"/var/run\"
2005-02-19 20:05:02 +03:00
CPPFLAGS+= -DSYSCONFDIR=\"/etc/racoon\"
CPPFLAGS+= -DSADB_X_EALG_AESCBC=SADB_X_EALG_AES
2005-02-19 20:05:02 +03:00
2006-09-16 10:19:50 +04:00
LDADD+= -ll -ly -lipsec -lutil
2006-09-29 09:06:34 +04:00
DPADD+= ${LIBL} ${LIBY} ${LIBCRYPTO} ${LIBUTIL}
2005-02-19 20:05:02 +03:00
YHEADER=cfparse.h
CPPFLAGS+=-DHAVE_LIBRADIUS
LDADD+=-lradius
DPADD+= ${LIBRADIUS}
.if (${USE_PAM} != "no")
CPPFLAGS+=-DHAVE_LIBPAM
LDADD+= -lpam -lutil ${PAM_STATIC_LDADD}
DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD}
.endif
.if (${USE_KERBEROS} != "no")
CPPFLAGS+=-DHAVE_GSSAPI
LDADD+= -lgssapi -lkrb5 -lhx509 -lheimntlm -lcom_err \
-lroken -lasn1
DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBHEIMNTLM} ${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}
2005-11-26 05:32:32 +03:00
.PATH: ${NETBSDSRCDIR}/lib/libipsec ${DIST}/src/racoon
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 <bsd.prog.mk>