119914Swollman# From: @(#)Makefile 8.1 (Berkeley) 6/5/93 250476Speter# $FreeBSD: stable/11/sbin/ifconfig/Makefile 345173 2019-03-15 08:18:02Z avos $ 31558Srgrimes 4265420Simp.include <src.opts.mk> 5156905Sru 6298107SgjbPACKAGE=runtime 71558SrgrimesPROG= ifconfig 825451Speter 9138593SsamSRCS= ifconfig.c # base support 1025451Speter 11138593Ssam# 12138593Ssam# NB: The order here defines the order in which the constructors 13138593Ssam# are called. This in turn defines the default order in which 14138593Ssam# status is displayed. Probably should add a priority mechanism 15138593Ssam# to the registration process so we don't depend on this aspect 16138593Ssam# of the toolchain. 17138593Ssam# 18138593SsamSRCS+= af_link.c # LLC support 19222527Sbz.if ${MK_INET_SUPPORT} != "no" 20138593SsamSRCS+= af_inet.c # IPv4 support 21222527Sbz.endif 22222527Sbz.if ${MK_INET6_SUPPORT} != "no" 23138593SsamSRCS+= af_inet6.c # IPv6 support 24222527Sbz.endif 25222527Sbz.if ${MK_INET6_SUPPORT} != "no" 26197138ShrsSRCS+= af_nd6.c # ND6 support 27222527Sbz.endif 2844764Swpaul 29138593SsamSRCS+= ifclone.c # clone device support 30138593SsamSRCS+= ifmac.c # MAC support 31138593SsamSRCS+= ifmedia.c # SIOC[GS]IFMEDIA support 32223735SbzSRCS+= iffib.c # non-default FIB support 33138593SsamSRCS+= ifvlan.c # SIOC[GS]ETVLAN support 34275851SbryanvSRCS+= ifvxlan.c # VXLAN support 35181224SthompsaSRCS+= ifgre.c # GRE keys etc 36193664ShrsSRCS+= ifgif.c # GIF reversed header workaround 37315514SaeSRCS+= ifipsec.c # IPsec VTI 3877217Sphk 39270064SmelifaroSRCS+= sfp.c # SFP/SFP+ information 40275030SbaptLIBADD+= m 41270064Smelifaro 42345173Savos.if ${MK_WIRELESS_SUPPORT} != "no" 43291470SadrianSRCS+= ifieee80211.c # SIOC[GS]IEEE80211 support 44292684SbaptLIBADD+= 80211 45345173Savos.endif 46178354Ssam 47228577SglebiusSRCS+= carp.c # SIOC[GS]VH support 48159781SmlaierSRCS+= ifgroup.c # ... 49257349Sglebius.if ${MK_PF} != "no" 50142215SglebiusSRCS+= ifpfsync.c # pfsync(4) support 51257349Sglebius.endif 52142215Sglebius 53146987SthompsaSRCS+= ifbridge.c # bridge support 54168793SthompsaSRCS+= iflagg.c # lagg support 55146987Sthompsa 56222527Sbz.if ${MK_INET6_SUPPORT} != "no" 57222527SbzCFLAGS+= -DINET6 58222527Sbz.endif 59222527Sbz.if ${MK_INET_SUPPORT} != "no" 60222527SbzCFLAGS+= -DINET 61222527Sbz.endif 62231642Srmh.if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE) 63231642SrmhCFLAGS+= -DJAIL 64275030SbaptLIBADD+= jail 65231642Srmh.endif 6680057Sobrien 67138593SsamMAN= ifconfig.8 68138593Ssam 69144130SbrooksCFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs 70202532SedWARNS?= 2 711558Srgrimes 72276668Sngie.if ${MK_TESTS} != "no" 73276668SngieSUBDIR+= tests 74276668Sngie.endif 75276668Sngie 761558Srgrimes.include <bsd.prog.mk> 77