Makefile revision 275851
119914Swollman#	From: @(#)Makefile	8.1 (Berkeley) 6/5/93
250476Speter# $FreeBSD: head/sbin/ifconfig/Makefile 275851 2014-12-17 05:36:34Z bryanv $
31558Srgrimes
4265420Simp.include <src.opts.mk>
5156905Sru
61558SrgrimesPROG=	ifconfig
725451Speter
8138593SsamSRCS=	ifconfig.c		# base support
925451Speter
10138593Ssam#
11138593Ssam# NB: The order here defines the order in which the constructors
12138593Ssam#     are called.  This in turn defines the default order in which
13138593Ssam#     status is displayed.  Probably should add a priority mechanism
14138593Ssam#     to the registration process so we don't depend on this aspect
15138593Ssam#     of the toolchain.
16138593Ssam#
17138593SsamSRCS+=	af_link.c		# LLC support
18222527Sbz.if ${MK_INET_SUPPORT} != "no"
19138593SsamSRCS+=	af_inet.c		# IPv4 support
20222527Sbz.endif
21222527Sbz.if ${MK_INET6_SUPPORT} != "no"
22138593SsamSRCS+=	af_inet6.c		# IPv6 support
23222527Sbz.endif
24222527Sbz.if ${MK_INET6_SUPPORT} != "no"
25197138ShrsSRCS+=	af_nd6.c		# ND6 support
26222527Sbz.endif
2744764Swpaul
28138593SsamSRCS+=	ifclone.c		# clone device support
29138593SsamSRCS+=	ifmac.c			# MAC support
30138593SsamSRCS+=	ifmedia.c		# SIOC[GS]IFMEDIA support
31223735SbzSRCS+=	iffib.c			# non-default FIB support
32138593SsamSRCS+=	ifvlan.c		# SIOC[GS]ETVLAN support
33275851SbryanvSRCS+=	ifvxlan.c		# VXLAN support
34181224SthompsaSRCS+=	ifgre.c			# GRE keys etc
35193664ShrsSRCS+=	ifgif.c			# GIF reversed header workaround
3677217Sphk
37270064SmelifaroSRCS+=	sfp.c			# SFP/SFP+ information
38275030SbaptLIBADD+=	m
39270064Smelifaro
40178354SsamSRCS+=	ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support
41275030SbaptLIBADD+=	bsdxml sbuf
42178354Ssam
43228577SglebiusSRCS+=	carp.c			# SIOC[GS]VH support
44159781SmlaierSRCS+=	ifgroup.c		# ...
45257349Sglebius.if ${MK_PF} != "no"
46142215SglebiusSRCS+=	ifpfsync.c		# pfsync(4) support
47257349Sglebius.endif
48142215Sglebius
49146987SthompsaSRCS+=	ifbridge.c		# bridge support
50168793SthompsaSRCS+=	iflagg.c		# lagg support
51146987Sthompsa
52222527Sbz.if ${MK_INET6_SUPPORT} != "no"
53222527SbzCFLAGS+= -DINET6
54222527Sbz.endif
55222527Sbz.if ${MK_INET_SUPPORT} != "no"
56222527SbzCFLAGS+= -DINET
57222527Sbz.endif
58231642Srmh.if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE)
59231642SrmhCFLAGS+= -DJAIL
60275030SbaptLIBADD+=	jail
61231642Srmh.endif
6280057Sobrien
63138593SsamMAN=	ifconfig.8
64138593Ssam
65144130SbrooksCFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
66202532SedWARNS?=	2
671558Srgrimes
681558Srgrimes.include <bsd.prog.mk>
69