1118824Sharti# Copyright (c) 2001-2003 2118824Sharti# Fraunhofer Institute for Open Communication Systems (FhG Fokus). 3118824Sharti# All rights reserved. 4119075Sobrien# Author: Harti Brandt <brandt@fokus.gmd.de> 5118824Sharti# 6118824Sharti# $FreeBSD: releng/10.2/sbin/atm/atmconfig/Makefile 270824 2014-08-29 18:26:55Z ngie $ 7119075Sobrien 8226440Scognet.include <bsd.own.mk> 9226440Scognet 10118824ShartiPROG= atmconfig 11270824SngieSRCS= main.c diag.c natm.c 12118824ShartiMAN= atmconfig.8 13132492Sharti# CFLAGS+= -DPATH_HELP='".:/usr/share/doc/atm:/usr/local/share/doc/atm"' 14129215Scognet 15133565ShartiCFLAGS+= -I${.OBJDIR} 16133565Sharti 17270824Sngie.if !defined(RESCUE) && ${MK_BSNMP} != "no" 18270824SngieCFLAGS+= -DWITH_BSNMP 19270824SngieSRCS+= oid.h atmconfig_device.c 20270824SngieDPADD+= ${LIBBSNMP} 21270824SngieLDADD+= -lbsnmp 22226440Scognet. if ${MK_DYNAMICROOT} == "no" && ${MK_OPENSSL} != "no" 23270824SngieDPADD+= ${LIBCRYPTO} 24226440ScognetLDADD+= -lcrypto 25226440Scognet. endif 26133565Sharti.endif 27133565Sharti 28133565ShartiCLEANFILES+= oid.h 29133565Sharti 30211725Simp# XXX - this is verboten 31211725Simp.if ${MACHINE_CPUARCH} == "arm" 32129215ScognetWARNS?= 3 33129215Scognet.endif 34118824Sharti 35133565ShartiFILES= atmconfig.help atmconfig_device.help 36119075SobrienFILESDIR= /usr/share/doc/atm 37118824Sharti 38133565ShartiSNMP_ATM_DEF= ${.CURDIR}/../../../contrib/ngatm/snmp_atm/atm_tree.def \ 39143617Sharti ${.CURDIR}/../../../usr.sbin/bsnmpd/modules/snmp_atm/atm_freebsd.def 40133565Sharti 41270824Sngieoid.h: atm_oid.list ${SNMP_ATM_DEF} 42133565Sharti cat ${SNMP_ATM_DEF} | gensnmptree -e `tail -n +2 ${.CURDIR}/atm_oid.list` \ 43270824Sngie > ${.TARGET} 44133565Sharti 45118824Sharti.include <bsd.prog.mk> 46