Makefile revision 290083
11849Swollman# Copyright (c) 2001-2003
21849Swollman#	Fraunhofer Institute for Open Communication Systems (FhG Fokus).
31849Swollman#	All rights reserved.
41849Swollman# Author: Harti Brandt <brandt@fokus.gmd.de>
51849Swollman#
61849Swollman# $FreeBSD: head/sbin/atm/atmconfig/Makefile 290083 2015-10-27 23:35:02Z bdrewery $
71849Swollman
81849Swollman.include <src.opts.mk>
91849Swollman
101849SwollmanPROG=	atmconfig
111849SwollmanSRCS=	main.c diag.c natm.c
121849SwollmanMAN=	atmconfig.8
131849Swollman# CFLAGS+= -DPATH_HELP='".:${SHAREDIR}/doc/atm:/usr/local/share/doc/atm"'
141849Swollman
151849SwollmanCFLAGS+= -I${.OBJDIR}
161849Swollman
171849Swollman.if !defined(RESCUE) && ${MK_BSNMP} != "no"
181849SwollmanCFLAGS+=	-DWITH_BSNMP
191849SwollmanSRCS+=	oid.h atmconfig_device.c
201849SwollmanLIBADD+=	bsnmp
211849Swollman. if ${MK_DYNAMICROOT} == "no" && ${MK_OPENSSL} != "no"
221849SwollmanLIBADD+=	crypto
231849Swollman. endif
241849Swollman.endif
251849Swollman
261849SwollmanCLEANFILES+= oid.h
271849Swollman
281849Swollman# XXX - this is verboten
291849Swollman.if ${MACHINE_CPUARCH} == "arm"
301849SwollmanWARNS?= 3
311849Swollman.endif
321849Swollman
331849SwollmanFILES=	atmconfig.help atmconfig_device.help
341849SwollmanFILESDIR= ${SHAREDIR}/doc/atm
351849Swollman
361849SwollmanSNMP_ATM_DEF= ${.CURDIR}/../../../contrib/ngatm/snmp_atm/atm_tree.def	\
371849Swollman	${.CURDIR}/../../../usr.sbin/bsnmpd/modules/snmp_atm/atm_freebsd.def
381849Swollman
391849Swollmanoid.h: atm_oid.list ${SNMP_ATM_DEF}
401849Swollman	cat ${SNMP_ATM_DEF} | gensnmptree -e `tail -n +2 ${.CURDIR}/atm_oid.list` \
411849Swollman		> ${.TARGET}
421849Swollman
431849Swollman.include <bsd.prog.mk>
441849Swollman