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: releng/10.2/sbin/atm/atmconfig/Makefile 270824 2014-08-29 18:26:55Z ngie $ 7 8.include <bsd.own.mk> 9 10PROG= atmconfig 11SRCS= main.c diag.c natm.c 12MAN= atmconfig.8 13# CFLAGS+= -DPATH_HELP='".:/usr/share/doc/atm:/usr/local/share/doc/atm"' 14 15CFLAGS+= -I${.OBJDIR} 16 17.if !defined(RESCUE) && ${MK_BSNMP} != "no" 18CFLAGS+= -DWITH_BSNMP 19SRCS+= oid.h atmconfig_device.c 20DPADD+= ${LIBBSNMP} 21LDADD+= -lbsnmp 22. if ${MK_DYNAMICROOT} == "no" && ${MK_OPENSSL} != "no" 23DPADD+= ${LIBCRYPTO} 24LDADD+= -lcrypto 25. endif 26.endif 27 28CLEANFILES+= oid.h 29 30# XXX - this is verboten 31.if ${MACHINE_CPUARCH} == "arm" 32WARNS?= 3 33.endif 34 35FILES= atmconfig.help atmconfig_device.help 36FILESDIR= /usr/share/doc/atm 37 38SNMP_ATM_DEF= ${.CURDIR}/../../../contrib/ngatm/snmp_atm/atm_tree.def \ 39 ${.CURDIR}/../../../usr.sbin/bsnmpd/modules/snmp_atm/atm_freebsd.def 40 41oid.h: atm_oid.list ${SNMP_ATM_DEF} 42 cat ${SNMP_ATM_DEF} | gensnmptree -e `tail -n +2 ${.CURDIR}/atm_oid.list` \ 43 > ${.TARGET} 44 45.include <bsd.prog.mk> 46