summaryrefslogtreecommitdiff
path: root/sbin/iked/Makefile
blob: 90d2c4017cab351f35aedd6fbfe6c28fc241352f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $OpenBSD: Makefile,v 1.2 2010/06/03 17:05:01 reyk Exp $
# $vantronix: Makefile,v 1.22 2010/06/02 12:22:58 reyk Exp $

PROG=		iked
SRCS=		dh.c iked.c ikev1.c ikev2.c log.c \
		proc.c util.c config.c policy.c crypto.c ca.c pfkey.c \
		control.c chap_ms.c eap.c
SRCS+=		parse.y
SRCS+=		${.OBJDIR}/ikev2_map.c ${.OBJDIR}/eap_map.c
MAN=		iked.conf.5 iked.8
#NOMAN=		yes

LDADD=		-lutil -levent -lssl -lcrypto
DPADD=		${LIBUTIL} ${LIBEVENT} ${LIBSSL} ${LIBCRYPTO}
CFLAGS+=	-Wall -I${.CURDIR}
CFLAGS+=	-Wstrict-prototypes -Wmissing-prototypes
CFLAGS+=	-Wmissing-declarations
CFLAGS+=	-Wshadow -Wpointer-arith -Wcast-qual
CFLAGS+=	-Wsign-compare -Wbounded
CLEANFILES+=	y.tab.h ikev2_map.c eap_map.c
GENERATED=	ikev2_map.c eap_map.c

ikev2_map.c: genmap.sh ikev2.h
	/bin/sh ${.CURDIR}/genmap.sh ${.CURDIR}/ikev2.h ikev2 > $@
	@touch $@

eap_map.c: genmap.sh eap.h
	/bin/sh ${.CURDIR}/genmap.sh ${.CURDIR}/eap.h eap > $@
	@touch $@

${PROG} beforedepend: ${GENERATED}

.include <bsd.prog.mk>