1c6063d0dSWarner Losh.include <src.opts.mk> 2cea557adSRuslan Ermilov 3406d87b1SGlen BarberPACKAGE=runtime 48fae3551SRodney W. GrimesPROG= ifconfig 59906480aSPeter Wemm 65faf8dcbSSam LefflerSRCS= ifconfig.c # base support 79906480aSPeter Wemm 85faf8dcbSSam Leffler# 95faf8dcbSSam Leffler# NB: The order here defines the order in which the constructors 105faf8dcbSSam Leffler# are called. This in turn defines the default order in which 115faf8dcbSSam Leffler# status is displayed. Probably should add a priority mechanism 125faf8dcbSSam Leffler# to the registration process so we don't depend on this aspect 135faf8dcbSSam Leffler# of the toolchain. 145faf8dcbSSam Leffler# 155faf8dcbSSam LefflerSRCS+= af_link.c # LLC support 165af3fa9aSBjoern A. Zeeb.if ${MK_INET_SUPPORT} != "no" 175faf8dcbSSam LefflerSRCS+= af_inet.c # IPv4 support 185af3fa9aSBjoern A. Zeeb.endif 195af3fa9aSBjoern A. Zeeb.if ${MK_INET6_SUPPORT} != "no" 205faf8dcbSSam LefflerSRCS+= af_inet6.c # IPv6 support 215af3fa9aSBjoern A. Zeeb.endif 225af3fa9aSBjoern A. Zeeb.if ${MK_INET6_SUPPORT} != "no" 23a283298cSHiroki SatoSRCS+= af_nd6.c # ND6 support 2419dc6445SKristof ProvostSRCS+= ifstf.c # STF configuration options 255af3fa9aSBjoern A. Zeeb.endif 2697ed1257SBill Paul 275faf8dcbSSam LefflerSRCS+= ifclone.c # clone device support 285faf8dcbSSam LefflerSRCS+= ifmac.c # MAC support 295faf8dcbSSam LefflerSRCS+= ifmedia.c # SIOC[GS]IFMEDIA support 3035fd7bc0SBjoern A. ZeebSRCS+= iffib.c # non-default FIB support 315faf8dcbSSam LefflerSRCS+= ifvlan.c # SIOC[GS]ETVLAN support 32c6e32006SBryan VenteicherSRCS+= ifvxlan.c # VXLAN support 333b0edf7dSAndrew ThompsonSRCS+= ifgre.c # GRE keys etc 34dbe59260SHiroki SatoSRCS+= ifgif.c # GIF reversed header workaround 35fcf59617SAndrey V. ElsukovSRCS+= ifipsec.c # IPsec VTI 36b032f27cSSam Leffler 37f732123eSAlexander V. ChernikovSRCS+= sfp.c # SFP/SFP+ information 3894cba803SRyan MoellerLIBADD+= ifconfig m util 3994cba803SRyan MoellerCFLAGS+= -I${SRCTOP}/lib/libifconfig -I${OBJTOP}/lib/libifconfig 40f732123eSAlexander V. Chernikov 4138979c4bSAndriy Voskoboinyk.if ${MK_WIRELESS_SUPPORT} != "no" 42d01cb677SAdrian ChaddSRCS+= ifieee80211.c # SIOC[GS]IEEE80211 support 431921045dSBaptiste DaroussinLIBADD+= 80211 4438979c4bSAndriy Voskoboinyk.endif 45419d8080SPoul-Henning Kamp 465f024827SGleb SmirnoffSRCS+= carp.c # SIOC[GS]VH support 470dad3f0eSMax LaierSRCS+= ifgroup.c # ... 483e4d5cd3SGleb Smirnoff.if ${MK_PF} != "no" 49a9771948SGleb SmirnoffSRCS+= ifpfsync.c # pfsync(4) support 503e4d5cd3SGleb Smirnoff.endif 51a9771948SGleb Smirnoff 527afc53b8SAndrew ThompsonSRCS+= ifbridge.c # bridge support 5318242d3bSAndrew ThompsonSRCS+= iflagg.c # lagg support 547afc53b8SAndrew Thompson 55201100c5SBjoern A. Zeeb.if ${MK_EXPERIMENTAL} != "no" 56201100c5SBjoern A. ZeebCFLAGS+= -DDRAFT_IETF_6MAN_IPV6ONLY_FLAG 5721231a7aSBjoern A. ZeebCFLAGS+= -DEXPERIMENTAL 58201100c5SBjoern A. Zeeb.endif 595af3fa9aSBjoern A. Zeeb.if ${MK_INET6_SUPPORT} != "no" 605af3fa9aSBjoern A. ZeebCFLAGS+= -DINET6 615af3fa9aSBjoern A. Zeeb.endif 625af3fa9aSBjoern A. Zeeb.if ${MK_INET_SUPPORT} != "no" 635af3fa9aSBjoern A. ZeebCFLAGS+= -DINET 645af3fa9aSBjoern A. Zeeb.endif 6551d357cbSWarner Losh.if ${MK_JAIL} != "no" && !defined(RESCUE) 669697f9f8SRobert MillanCFLAGS+= -DJAIL 6713eb765fSBaptiste DaroussinLIBADD+= jail 689697f9f8SRobert Millan.endif 692338da03SMatt MacyLIBADD+= nv 70b5cd4931SDavid E. O'Brien 71*4c91a5dfSAlexander V. Chernikov.if ${MK_NETLINK_SUPPORT} != "no" 72*4c91a5dfSAlexander V. ChernikovSRCS+= ifconfig_netlink.c 73*4c91a5dfSAlexander V. Chernikov.else 74*4c91a5dfSAlexander V. ChernikovCFLAGS+=-DWITHOUT_NETLINK 75*4c91a5dfSAlexander V. Chernikov.endif 76*4c91a5dfSAlexander V. Chernikov 775faf8dcbSSam LefflerMAN= ifconfig.8 785faf8dcbSSam Leffler 796c6faad6SBrooks DavisCFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs 808fae3551SRodney W. Grimes 81d511b20aSEnji CooperHAS_TESTS= 824b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests 83b219c275SEnji Cooper 848fae3551SRodney W. Grimes.include <bsd.prog.mk> 85