]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sbin/atm/atmconfig/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.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 .include <bsd.own.mk>
9
10 PROG=   atmconfig
11 .ifndef RESCUE
12 SRCS=   ${.OBJDIR}/oid.h
13 .endif
14 SRCS+=  main.c diag.c natm.c
15 .ifndef RESCUE
16 SRCS+=  atmconfig_device.c
17 .endif
18 MAN=    atmconfig.8
19 # CFLAGS+= -DPATH_HELP='".:/usr/share/doc/atm:/usr/local/share/doc/atm"'
20
21 CFLAGS+= -I${.OBJDIR}
22
23 .ifndef RESCUE
24 DPADD=  ${LIBBSNMP}
25 LDADD=  -lbsnmp
26 . if ${MK_DYNAMICROOT} == "no" && ${MK_OPENSSL} != "no"
27 LDADD+= -lcrypto
28 . endif
29 .endif
30
31 .ifndef RESCUE
32 CLEANFILES+= oid.h
33 .endif
34
35 # XXX - this is verboten
36 .if ${MACHINE_CPUARCH} == "arm"
37 WARNS?= 3
38 .endif
39
40 FILES=  atmconfig.help atmconfig_device.help
41 FILESDIR= /usr/share/doc/atm
42
43 SNMP_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>