]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sbin/atm/atmconfig/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sbin / atm / atmconfig / Makefile
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 PROG=   atmconfig
9 .ifndef RESCUE
10 SRCS=   ${.OBJDIR}/oid.h
11 .endif
12 SRCS+=  main.c diag.c natm.c
13 .ifndef RESCUE
14 SRCS+=  atmconfig_device.c
15 .endif
16 MAN=    atmconfig.8
17 # CFLAGS+= -DPATH_HELP='".:/usr/share/doc/atm:/usr/local/share/doc/atm"'
18
19 CFLAGS+= -I${.OBJDIR}
20
21 .ifndef RESCUE
22 DPADD=  ${LIBBSNMP}
23 LDADD=  -lbsnmp
24 .endif
25
26 .ifndef RESCUE
27 CLEANFILES+= oid.h
28 .endif
29
30 # XXX - this is verboten
31 .if ${MACHINE_CPUARCH} == "arm"
32 WARNS?= 3
33 .endif
34
35 FILES=  atmconfig.help atmconfig_device.help
36 FILESDIR= /usr/share/doc/atm
37
38 SNMP_ATM_DEF= ${.CURDIR}/../../../contrib/ngatm/snmp_atm/atm_tree.def   \
39         ${.CURDIR}/../../../usr.sbin/bsnmpd/modules/snmp_atm/atm_freebsd.def
40
41 ${.OBJDIR}/oid.h: atm_oid.list ${SNMP_ATM_DEF}
42         cat ${SNMP_ATM_DEF} | gensnmptree -e `tail -n +2 ${.CURDIR}/atm_oid.list` \
43                 > ${.OBJDIR}/oid.h
44
45 .include <bsd.prog.mk>