aboutsummaryrefslogtreecommitdiff
path: root/sbin/atm/atmconfig/Makefile
blob: 3e42d3ff87b55163c9e34da7cdf8999d18472995 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright (c) 2001-2003
#	Fraunhofer Institute for Open Communication Systems (FhG Fokus).
#	All rights reserved.
# Author: Harti Brandt <brandt@fokus.gmd.de>
#
# $FreeBSD$

.include <src.opts.mk>

PROG=	atmconfig
.ifndef RESCUE
SRCS=	oid.h
.endif
SRCS+=	main.c diag.c natm.c
.ifndef RESCUE
SRCS+=	atmconfig_device.c
.endif
MAN=	atmconfig.8
# CFLAGS+= -DPATH_HELP='".:/usr/share/doc/atm:/usr/local/share/doc/atm"'

CFLAGS+= -I.

.ifndef RESCUE
DPADD=	${LIBBSNMP}
LDADD=	-lbsnmp
. if ${MK_DYNAMICROOT} == "no" && ${MK_OPENSSL} != "no"
LDADD+= -lcrypto
. endif
.endif

.ifndef RESCUE
CLEANFILES+= oid.h
.endif

# XXX - this is verboten
.if ${MACHINE_CPUARCH} == "arm"
WARNS?= 3
.endif

FILES=	atmconfig.help atmconfig_device.help
FILESDIR= /usr/share/doc/atm

SNMP_ATM_DEF= ${.CURDIR}/../../../contrib/ngatm/snmp_atm/atm_tree.def	\
	${.CURDIR}/../../../usr.sbin/bsnmpd/modules/snmp_atm/atm_freebsd.def

oid.h: atm_oid.list ${SNMP_ATM_DEF}
	cat ${SNMP_ATM_DEF} | gensnmptree -e `tail -n +2 ${.CURDIR}/atm_oid.list` \
		> ${.TARGET}

.include <bsd.prog.mk>