Makefile revision 292684
150477Speter#	From: @(#)Makefile	8.1 (Berkeley) 6/5/93
233548Sjkh# $FreeBSD: head/sbin/ifconfig/Makefile 292684 2015-12-24 11:30:29Z bapt $
32893Sdfr
4139776Simp.include <src.opts.mk>
52893Sdfr
68876SrgrimesPROG=	ifconfig
72893Sdfr
82893SdfrSRCS=	ifconfig.c		# base support
98876Srgrimes
102893Sdfr#
118876Srgrimes# NB: The order here defines the order in which the constructors
122893Sdfr#     are called.  This in turn defines the default order in which
132893Sdfr#     status is displayed.  Probably should add a priority mechanism
142893Sdfr#     to the registration process so we don't depend on this aspect
152893Sdfr#     of the toolchain.
168876Srgrimes#
172893SdfrSRCS+=	af_link.c		# LLC support
182893Sdfr.if ${MK_INET_SUPPORT} != "no"
19203827SkibSRCS+=	af_inet.c		# IPv4 support
20203827Skib.endif
212893Sdfr.if ${MK_INET6_SUPPORT} != "no"
222893SdfrSRCS+=	af_inet6.c		# IPv6 support
232893Sdfr.endif
242893Sdfr.if ${MK_INET6_SUPPORT} != "no"
252893SdfrSRCS+=	af_nd6.c		# ND6 support
262893Sdfr.endif
272893Sdfr
2833548SjkhSRCS+=	ifclone.c		# clone device support
2933548SjkhSRCS+=	ifmac.c			# MAC support
3033548SjkhSRCS+=	ifmedia.c		# SIOC[GS]IFMEDIA support
3133548SjkhSRCS+=	iffib.c			# non-default FIB support
3233548SjkhSRCS+=	ifvlan.c		# SIOC[GS]ETVLAN support
3333548SjkhSRCS+=	ifvxlan.c		# VXLAN support
3433548SjkhSRCS+=	ifgre.c			# GRE keys etc
3533548SjkhSRCS+=	ifgif.c			# GIF reversed header workaround
3633548Sjkh
372893SdfrSRCS+=	sfp.c			# SFP/SFP+ information
382893SdfrLIBADD+=	m
3933548Sjkh
4033548SjkhSRCS+=	ifieee80211.c		# SIOC[GS]IEEE80211 support
4133548SjkhLIBADD+=	80211
4233548Sjkh
432893SdfrSRCS+=	carp.c			# SIOC[GS]VH support
4433548SjkhSRCS+=	ifgroup.c		# ...
4533548Sjkh.if ${MK_PF} != "no"
4633548SjkhSRCS+=	ifpfsync.c		# pfsync(4) support
472893Sdfr.endif
482893Sdfr
4933548SjkhSRCS+=	ifbridge.c		# bridge support
5033548SjkhSRCS+=	iflagg.c		# lagg support
5133548Sjkh
5233548Sjkh.if ${MK_INET6_SUPPORT} != "no"
5333548SjkhCFLAGS+= -DINET6
5433548Sjkh.endif
5533548Sjkh.if ${MK_INET_SUPPORT} != "no"
5633548SjkhCFLAGS+= -DINET
5733548Sjkh.endif
5833548Sjkh.if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE)
5933548SjkhCFLAGS+= -DJAIL
6033548SjkhLIBADD+=	jail
6133548Sjkh.endif
6233548Sjkh
6333548SjkhMAN=	ifconfig.8
64105645Sjhb
6533548SjkhCFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
66150711SpeadarWARNS?=	2
6733548Sjkh
6833548Sjkh.if ${MK_TESTS} != "no"
6933548SjkhSUBDIR+=	tests
7033548Sjkh.endif
7133548Sjkh
7233548Sjkh.include <bsd.prog.mk>
732893Sdfr