Makefile revision 270064
119914Swollman# From: @(#)Makefile 8.1 (Berkeley) 6/5/93 250476Speter# $FreeBSD: head/sbin/ifconfig/Makefile 270064 2014-08-16 19:13:52Z melifaro $ 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 33181224SthompsaSRCS+= ifgre.c # GRE keys etc 34193664ShrsSRCS+= ifgif.c # GIF reversed header workaround 3577217Sphk 36270064SmelifaroSRCS+= sfp.c # SFP/SFP+ information 37270064SmelifaroLDADD+= -lm 38270064Smelifaro 39178354SsamSRCS+= ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support 40231642SrmhDPADD+= ${LIBBSDXML} ${LIBSBUF} 41231642SrmhLDADD+= -lbsdxml -lsbuf 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 60231642SrmhDPADD+= ${LIBJAIL} 61231642SrmhLDADD+= -ljail 62231642Srmh.endif 6380057Sobrien 64138593SsamMAN= ifconfig.8 65138593Ssam 66144130SbrooksCFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs 67202532SedWARNS?= 2 681558Srgrimes 691558Srgrimes.include <bsd.prog.mk> 70