Makefile revision 275851
1231855Sbz# From: @(#)Makefile 8.1 (Berkeley) 6/5/93 2231855Sbz# $FreeBSD: head/sbin/ifconfig/Makefile 275851 2014-12-17 05:36:34Z bryanv $ 3231855Sbz 4231855Sbz.include <src.opts.mk> 5231855Sbz 6231855SbzPROG= ifconfig 7231855Sbz 8231855SbzSRCS= ifconfig.c # base support 9231855Sbz 10231855Sbz# 11231855Sbz# NB: The order here defines the order in which the constructors 12231855Sbz# are called. This in turn defines the default order in which 13231855Sbz# status is displayed. Probably should add a priority mechanism 14231855Sbz# to the registration process so we don't depend on this aspect 15231855Sbz# of the toolchain. 16231855Sbz# 17231855SbzSRCS+= af_link.c # LLC support 18231855Sbz.if ${MK_INET_SUPPORT} != "no" 19231855SbzSRCS+= af_inet.c # IPv4 support 20231855Sbz.endif 21231855Sbz.if ${MK_INET6_SUPPORT} != "no" 22231855SbzSRCS+= af_inet6.c # IPv6 support 23231855Sbz.endif 24231855Sbz.if ${MK_INET6_SUPPORT} != "no" 25231855SbzSRCS+= af_nd6.c # ND6 support 26231855Sbz.endif 27231855Sbz 28231855SbzSRCS+= ifclone.c # clone device support 29231855SbzSRCS+= ifmac.c # MAC support 30231855SbzSRCS+= ifmedia.c # SIOC[GS]IFMEDIA support 31231855SbzSRCS+= iffib.c # non-default FIB support 32231855SbzSRCS+= ifvlan.c # SIOC[GS]ETVLAN support 33231855SbzSRCS+= ifvxlan.c # VXLAN support 34231855SbzSRCS+= ifgre.c # GRE keys etc 35231855SbzSRCS+= ifgif.c # GIF reversed header workaround 36231855Sbz 37231855SbzSRCS+= sfp.c # SFP/SFP+ information 38231855SbzLIBADD+= m 39231855Sbz 40231855SbzSRCS+= ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support 41231855SbzLIBADD+= bsdxml sbuf 42231855Sbz 43231855SbzSRCS+= carp.c # SIOC[GS]VH support 44231855SbzSRCS+= ifgroup.c # ... 45231855Sbz.if ${MK_PF} != "no" 46231855SbzSRCS+= ifpfsync.c # pfsync(4) support 47231855Sbz.endif 48231855Sbz 49231855SbzSRCS+= ifbridge.c # bridge support 50231855SbzSRCS+= iflagg.c # lagg support 51231855Sbz 52231855Sbz.if ${MK_INET6_SUPPORT} != "no" 53231855SbzCFLAGS+= -DINET6 54231855Sbz.endif 55231855Sbz.if ${MK_INET_SUPPORT} != "no" 56231855SbzCFLAGS+= -DINET 57231855Sbz.endif 58231855Sbz.if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE) 59231855SbzCFLAGS+= -DJAIL 60231855SbzLIBADD+= jail 61231855Sbz.endif 62231855Sbz 63231855SbzMAN= ifconfig.8 64231855Sbz 65231855SbzCFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs 66231855SbzWARNS?= 2 67231855Sbz 68231855Sbz.include <bsd.prog.mk> 69231855Sbz