1# Copyright (c) 2001-2003
2#	Fraunhofer Institute for Open Communication Systems (FhG Fokus).
3#	All rights reserved.
4# Author: Harti Brandt <brandt@fokus.gmd.de>
5#
6# $FreeBSD$
7
8.include <bsd.own.mk>
9
10PROG=	atmconfig
11.ifndef RESCUE
12SRCS=	${.OBJDIR}/oid.h
13.endif
14SRCS+=	main.c diag.c natm.c
15.ifndef RESCUE
16SRCS+=	atmconfig_device.c
17.endif
18MAN=	atmconfig.8
19# CFLAGS+= -DPATH_HELP='".:/usr/share/doc/atm:/usr/local/share/doc/atm"'
20
21CFLAGS+= -I${.OBJDIR}
22
23.ifndef RESCUE
24DPADD=	${LIBBSNMP}
25LDADD=	-lbsnmp
26. if ${MK_DYNAMICROOT} == "no" && ${MK_OPENSSL} != "no"
27LDADD+= -lcrypto
28. endif
29.endif
30
31.ifndef RESCUE
32CLEANFILES+= oid.h
33.endif
34
35# XXX - this is verboten
36.if ${MACHINE_CPUARCH} == "arm"
37WARNS?= 3
38.endif
39
40FILES=	atmconfig.help atmconfig_device.help
41FILESDIR= /usr/share/doc/atm
42
43SNMP_ATM_DEF= ${.CURDIR}/../../../contrib/ngatm/snmp_atm/atm_tree.def	\
44	${.CURDIR}/../../../usr.sbin/bsnmpd/modules/snmp_atm/atm_freebsd.def
45
46${.OBJDIR}/oid.h: atm_oid.list ${SNMP_ATM_DEF}
47	cat ${SNMP_ATM_DEF} | gensnmptree -e `tail -n +2 ${.CURDIR}/atm_oid.list` \
48		> ${.OBJDIR}/oid.h
49
50.include <bsd.prog.mk>
51