2003-08-12 14:25:57 +00:00
|
|
|
# Copyright (c) 2001-2003
|
|
|
|
# Fraunhofer Institute for Open Communication Systems (FhG Fokus).
|
|
|
|
# All rights reserved.
|
|
|
|
# Author: Harti Brandt <brandt@fokus.gmd.de>
|
|
|
|
#
|
2003-08-18 15:35:18 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2003-08-12 14:25:57 +00:00
|
|
|
PROG= atmconfig
|
2004-08-12 12:31:43 +00:00
|
|
|
.ifndef RESCUE
|
|
|
|
SRCS= ${.OBJDIR}/oid.h
|
|
|
|
.endif
|
|
|
|
SRCS+= main.c diag.c natm.c
|
|
|
|
.ifndef RESCUE
|
|
|
|
SRCS+= atmconfig_device.c
|
|
|
|
.endif
|
2003-08-12 14:25:57 +00:00
|
|
|
MAN= atmconfig.8
|
2004-07-21 09:39:53 +00:00
|
|
|
# CFLAGS+= -DPATH_HELP='".:/usr/share/doc/atm:/usr/local/share/doc/atm"'
|
2004-05-14 13:31:21 +00:00
|
|
|
|
2004-08-12 12:31:43 +00:00
|
|
|
CFLAGS+= -I${.OBJDIR}
|
|
|
|
|
|
|
|
.ifndef RESCUE
|
|
|
|
DPADD= ${LIBBSNMP}
|
|
|
|
LDADD= -lbsnmp
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifndef RESCUE
|
|
|
|
CLEANFILES+= oid.h
|
|
|
|
.endif
|
|
|
|
|
2004-05-14 13:31:21 +00:00
|
|
|
.if ${MACHINE_ARCH} == "arm"
|
|
|
|
WARNS?= 3
|
|
|
|
.else
|
2004-12-13 15:42:46 +00:00
|
|
|
WARNS?= 6
|
2004-05-14 13:31:21 +00:00
|
|
|
.endif
|
2003-08-12 14:25:57 +00:00
|
|
|
|
2004-08-12 12:31:43 +00:00
|
|
|
FILES= atmconfig.help atmconfig_device.help
|
2003-08-18 15:35:18 +00:00
|
|
|
FILESDIR= /usr/share/doc/atm
|
2003-08-12 14:25:57 +00:00
|
|
|
|
2004-08-12 12:31:43 +00:00
|
|
|
SNMP_ATM_DEF= ${.CURDIR}/../../../contrib/ngatm/snmp_atm/atm_tree.def \
|
2005-03-15 07:38:15 +00:00
|
|
|
${.CURDIR}/../../../usr.sbin/bsnmpd/modules/snmp_atm/atm_freebsd.def
|
2004-08-12 12:31:43 +00:00
|
|
|
|
|
|
|
${.OBJDIR}/oid.h: atm_oid.list ${SNMP_ATM_DEF}
|
|
|
|
cat ${SNMP_ATM_DEF} | gensnmptree -e `tail -n +2 ${.CURDIR}/atm_oid.list` \
|
|
|
|
> ${.OBJDIR}/oid.h
|
|
|
|
|
2003-08-12 14:25:57 +00:00
|
|
|
.include <bsd.prog.mk>
|