1# From: @(#)Makefile 8.1 (Berkeley) 6/5/93 2# $FreeBSD$ 3 4PROG= ifconfig 5 6SRCS= ifconfig.c # base support 7 8TOPDIR?=${CURDIR}/../.. 9include ${TOPDIR}/tools/opts.mk 10 11# 12# NB: The order here defines the order in which the constructors 13# are called. This in turn defines the default order in which 14# status is displayed. Probably should add a priority mechanism 15# to the registration process so we don't depend on this aspect 16# of the toolchain. 17# 18SRCS+= af_link.c # LLC support 19ifneq (${MK_INET_SUPPORT},"no") 20SRCS+= af_inet.c # IPv4 support 21endif 22ifneq (${MK_INET6_SUPPORT},"no") 23SRCS+= af_inet6.c # IPv6 support 24endif 25ifneq (${MK_INET6_SUPPORT},"no") 26SRCS+= af_nd6.c # ND6 support 27endif 28 29SRCS+= ifclone.c # clone device support 30 31ifneq (${MK_MAC_SUPPORT},"no") 32SRCS+= ifmac.c # MAC support 33endif 34 35ifneq (${MK_IFMEDIA_SUPPORT},"no") 36SRCS+= ifmedia.c # SIOC[GS]IFMEDIA support 37endif 38 39SRCS+= iffib.c # non-default FIB support 40SRCS+= ifvlan.c # SIOC[GS]ETVLAN support 41SRCS+= ifvxlan.c # VXLAN support 42SRCS+= ifgre.c # GRE keys etc 43SRCS+= ifgif.c # GIF reversed header workaround 44 45ifneq (${MK_SFP_SUPPORT},"no") 46SRCS+= ifipsec.c # IPsec VTI 47endif 48 49ifneq (${MK_SFP_SUPPORT},"no") 50SRCS+= sfp.c # SFP/SFP+ information 51LIBADD+= m 52endif 53 54ifneq (${MK_IEEE80211_SUPPORT},"no") 55SRCS+= ifieee80211.c # SIOC[GS]IEEE80211 support 56LIBADD+= 80211 57endif 58 59SRCS+= carp.c # SIOC[GS]VH support 60SRCS+= ifgroup.c # ... 61ifneq (${MK_PF},"no") 62SRCS+= ifpfsync.c # pfsync(4) support 63endif 64 65SRCS+= ifbridge.c # bridge support 66ifneq (${MK_LAGG_SUPPORT},"no") 67SRCS+= iflagg.c # lagg support 68endif 69 70ifneq (${MK_EXPERIMENTAL},"no") 71CFLAGS+= -DDRAFT_IETF_6MAN_IPV6ONLY_FLAG 72CFLAGS+= -DEXPERIMENTAL 73endif 74ifneq (${MK_INET6_SUPPORT},"no") 75CFLAGS+= -DINET6 76endif 77ifneq (${MK_INET_SUPPORT},"no") 78CFLAGS+= -DINET 79endif 80ifneq (${MK_JAIL},"no") 81ifndef (RESCUE) 82CFLAGS+= -DJAIL 83LIBADD+= jail 84endif 85endif 86 87MAN= ifconfig.8 88 89CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs 90WARNS?= 2 91 92include ${TOPDIR}/tools/prog.mk 93 94