Makefile revision 133565
1272343Sngie# Copyright (c) 2001-2003
2272343Sngie#	Fraunhofer Institute for Open Communication Systems (FhG Fokus).
3272343Sngie#	All rights reserved.
4272343Sngie# Author: Harti Brandt <brandt@fokus.gmd.de>
5272343Sngie#
6272343Sngie# $FreeBSD: head/sbin/atm/atmconfig/Makefile 133565 2004-08-12 12:31:43Z harti $
7272343Sngie
8272343SngiePROG=	atmconfig
9272343Sngie.ifndef RESCUE
10272343SngieSRCS=	${.OBJDIR}/oid.h
11272343Sngie.endif
12272343SngieSRCS+=	main.c diag.c natm.c
13272343Sngie.ifndef RESCUE
14272343SngieSRCS+=	atmconfig_device.c
15272343Sngie.endif
16272343SngieMAN=	atmconfig.8
17272343Sngie# CFLAGS+= -DPATH_HELP='".:/usr/share/doc/atm:/usr/local/share/doc/atm"'
18272343Sngie
19272343SngieCFLAGS+= -I${.OBJDIR}
20272343Sngie
21272343Sngie.ifndef RESCUE
22272343SngieDPADD=	${LIBBSNMP}
23272343SngieLDADD=	-lbsnmp
24272343Sngie.endif
25272343Sngie
26272343Sngie.ifndef RESCUE
27272343SngieCLEANFILES+= oid.h
28272343Sngie.endif
29272343Sngie
30272343Sngie.if ${MACHINE_ARCH} == "arm"
31272343SngieWARNS?= 3
32272343Sngie.else
33272343SngieWARNS?=	9
34272343Sngie.endif
35272343Sngie
36272343SngieFILES=	atmconfig.help atmconfig_device.help
37272343SngieFILESDIR= /usr/share/doc/atm
38272343Sngie
39272343SngieSNMP_ATM_DEF= ${.CURDIR}/../../../contrib/ngatm/snmp_atm/atm_tree.def	\
40272343Sngie	${.CURDIR}/../../../lib/libbsnmp/modules/snmp_atm/atm_freebsd.def
41272343Sngie
42272343Sngie${.OBJDIR}/oid.h: atm_oid.list ${SNMP_ATM_DEF}
43272343Sngie	cat ${SNMP_ATM_DEF} | gensnmptree -e `tail -n +2 ${.CURDIR}/atm_oid.list` \
44272343Sngie		> ${.OBJDIR}/oid.h
45272343Sngie
46272343Sngie.include <bsd.prog.mk>
47272343Sngie