Makefile revision 265420
155857Ssheldonh# From: @(#)Makefile 8.1 (Berkeley) 6/5/93 255857Ssheldonh# $FreeBSD: head/sbin/ifconfig/Makefile 265420 2014-05-06 04:22:01Z imp $ 355857Ssheldonh 4285612Sdelphij.include <src.opts.mk> 555857Ssheldonh 655857SsheldonhPROG= ifconfig 755857Ssheldonh 855857SsheldonhSRCS= ifconfig.c # base support 955857Ssheldonh 1055857Ssheldonh# 1168965Sru# NB: The order here defines the order in which the constructors 1255857Ssheldonh# are called. This in turn defines the default order in which 1355857Ssheldonh# status is displayed. Probably should add a priority mechanism 1455857Ssheldonh# to the registration process so we don't depend on this aspect 1555857Ssheldonh# of the toolchain. 1655857Ssheldonh# 1755857SsheldonhSRCS+= af_link.c # LLC support 1855857Ssheldonh.if ${MK_INET_SUPPORT} != "no" 1955857SsheldonhSRCS+= af_inet.c # IPv4 support 2099968Scharnier.endif 2199968Scharnier.if ${MK_INET6_SUPPORT} != "no" 2299968ScharnierSRCS+= af_inet6.c # IPv6 support 2355857Ssheldonh.endif 2455857Ssheldonh.if ${MK_INET6_SUPPORT} != "no" 2555857SsheldonhSRCS+= af_nd6.c # ND6 support 2655857Ssheldonh.endif 2755857Ssheldonh 2855857SsheldonhSRCS+= ifclone.c # clone device support 2955857SsheldonhSRCS+= ifmac.c # MAC support 3055857SsheldonhSRCS+= ifmedia.c # SIOC[GS]IFMEDIA support 3155857SsheldonhSRCS+= iffib.c # non-default FIB support 3255857SsheldonhSRCS+= ifvlan.c # SIOC[GS]ETVLAN support 3381099SsheldonhSRCS+= ifgre.c # GRE keys etc 3455857SsheldonhSRCS+= ifgif.c # GIF reversed header workaround 3581099Ssheldonh 3655857SsheldonhSRCS+= ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support 3755857SsheldonhDPADD+= ${LIBBSDXML} ${LIBSBUF} 3855857SsheldonhLDADD+= -lbsdxml -lsbuf 3955857Ssheldonh 4055857SsheldonhSRCS+= carp.c # SIOC[GS]VH support 4155857SsheldonhSRCS+= ifgroup.c # ... 4281099Ssheldonh.if ${MK_PF} != "no" 4355857SsheldonhSRCS+= ifpfsync.c # pfsync(4) support 4455857Ssheldonh.endif 4555857Ssheldonh 4655857SsheldonhSRCS+= ifbridge.c # bridge support 4755857SsheldonhSRCS+= iflagg.c # lagg support 4855857Ssheldonh 4955857Ssheldonh.if ${MK_INET6_SUPPORT} != "no" 5055857SsheldonhCFLAGS+= -DINET6 5155857Ssheldonh.endif 5255857Ssheldonh.if ${MK_INET_SUPPORT} != "no" 5355857SsheldonhCFLAGS+= -DINET 5481099Ssheldonh.endif 5555857Ssheldonh.if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE) 5681099SsheldonhCFLAGS+= -DJAIL 5755857SsheldonhDPADD+= ${LIBJAIL} 5855857SsheldonhLDADD+= -ljail 5955857Ssheldonh.endif 6055857Ssheldonh 6155857SsheldonhMAN= ifconfig.8 6255857Ssheldonh 6355857SsheldonhCFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs 6455857SsheldonhWARNS?= 2 6555857Ssheldonh 6681099Ssheldonh.include <bsd.prog.mk> 6755857Ssheldonh