1 2.include <src.opts.mk> 3 4PACKAGE=runtime 5PROG= ifconfig 6 7SRCS= ifconfig.c # base support 8 9# 10# NB: The order here defines the order in which the constructors 11# are called. This in turn defines the default order in which 12# status is displayed. Probably should add a priority mechanism 13# to the registration process so we don't depend on this aspect 14# of the toolchain. 15# 16SRCS+= af_link.c # LLC support 17.if ${MK_INET_SUPPORT} != "no" 18SRCS+= af_inet.c # IPv4 support 19.endif 20.if ${MK_INET6_SUPPORT} != "no" 21SRCS+= af_inet6.c # IPv6 support 22.endif 23.if ${MK_INET6_SUPPORT} != "no" 24SRCS+= af_nd6.c # ND6 support 25SRCS+= ifstf.c # STF configuration options 26.endif 27 28SRCS+= ifclone.c # clone device support 29SRCS+= ifmac.c # MAC support 30SRCS+= ifmedia.c # SIOC[GS]IFMEDIA support 31SRCS+= iffib.c # non-default FIB support 32SRCS+= ifvlan.c # SIOC[GS]ETVLAN support 33SRCS+= ifvxlan.c # VXLAN support 34SRCS+= ifgre.c # GRE keys etc 35SRCS+= ifgif.c # GIF reversed header workaround 36SRCS+= ifipsec.c # IPsec VTI 37 38SRCS+= sfp.c # SFP/SFP+ information 39LIBADD+= ifconfig m util 40CFLAGS+= -I${SRCTOP}/lib/libifconfig -I${OBJTOP}/lib/libifconfig 41 42.if ${MK_WIRELESS_SUPPORT} != "no" 43SRCS+= ifieee80211.c # SIOC[GS]IEEE80211 support 44LIBADD+= 80211 45.endif 46 47SRCS+= carp.c # SIOC[GS]VH support 48SRCS+= ifgroup.c # ... 49.if ${MK_PF} != "no" 50SRCS+= ifpfsync.c # pfsync(4) support 51.endif 52 53SRCS+= ifbridge.c # bridge support 54SRCS+= iflagg.c # lagg support 55 56.if ${MK_EXPERIMENTAL} != "no" 57CFLAGS+= -DDRAFT_IETF_6MAN_IPV6ONLY_FLAG 58CFLAGS+= -DEXPERIMENTAL 59.endif 60.if ${MK_INET6_SUPPORT} != "no" 61CFLAGS+= -DINET6 62.endif 63.if ${MK_INET_SUPPORT} != "no" 64CFLAGS+= -DINET 65.endif 66.if ${MK_JAIL} != "no" && !defined(RESCUE) 67CFLAGS+= -DJAIL 68LIBADD+= jail 69.endif 70LIBADD+= nv 71 72.if ${MK_NETLINK_SUPPORT} != "no" 73SRCS+= ifconfig_netlink.c 74.else 75CFLAGS+=-DWITHOUT_NETLINK 76.endif 77 78MAN= ifconfig.8 79 80CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs 81 82HAS_TESTS= 83SUBDIR.${MK_TESTS}+= tests 84 85.include <bsd.prog.mk> 86