mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
A native route Netlink interface will replace this stack. Requested by: glebius This reverts commit1ccf543b21. This reverts commit2c04cfa148. This reverts commit2d6114f6d2. This reverts commitd15f2551b2. This reverts commitceb282bbd6. This reverts commitc30021fe0d. This reverts commitfb1820d23a. This reverts commit8696cc600f.
82 lines
1.9 KiB
Makefile
82 lines
1.9 KiB
Makefile
.include <src.opts.mk>
|
|
|
|
PACKAGE=runtime
|
|
PROG= ifconfig
|
|
|
|
SRCS= ifconfig.c # base support
|
|
|
|
#
|
|
# NB: The order here defines the order in which the constructors
|
|
# are called. This in turn defines the default order in which
|
|
# status is displayed. Probably should add a priority mechanism
|
|
# to the registration process so we don't depend on this aspect
|
|
# of the toolchain.
|
|
#
|
|
SRCS+= af_link.c # LLC support
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
SRCS+= af_inet.c # IPv4 support
|
|
.endif
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
SRCS+= af_inet6.c # IPv6 support
|
|
.endif
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
SRCS+= af_nd6.c # ND6 support
|
|
SRCS+= ifstf.c # STF configuration options
|
|
.endif
|
|
|
|
SRCS+= ifclone.c # clone device support
|
|
SRCS+= ifmac.c # MAC support
|
|
SRCS+= ifmedia.c # SIOC[GS]IFMEDIA support
|
|
SRCS+= iffib.c # non-default FIB support
|
|
SRCS+= ifvlan.c # SIOC[GS]ETVLAN support
|
|
SRCS+= ifvxlan.c # VXLAN support
|
|
SRCS+= ifgre.c # GRE keys etc
|
|
SRCS+= ifgif.c # GIF reversed header workaround
|
|
SRCS+= ifipsec.c # IPsec VTI
|
|
|
|
SRCS+= sfp.c # SFP/SFP+ information
|
|
LIBADD+= ifconfig m util
|
|
CFLAGS+= -I${SRCTOP}/lib/libifconfig -I${OBJTOP}/lib/libifconfig
|
|
|
|
.if ${MK_WIRELESS_SUPPORT} != "no"
|
|
SRCS+= ifieee80211.c # SIOC[GS]IEEE80211 support
|
|
LIBADD+= 80211
|
|
.endif
|
|
|
|
SRCS+= carp.c # SIOC[GS]VH support
|
|
SRCS+= ifgroup.c # ...
|
|
.if ${MK_PF} != "no"
|
|
SRCS+= ifpfsync.c # pfsync(4) support
|
|
.endif
|
|
|
|
SRCS+= ifbridge.c # bridge support
|
|
SRCS+= iflagg.c # lagg support
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
CFLAGS+= -DINET6
|
|
.endif
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
CFLAGS+= -DINET
|
|
.endif
|
|
.if ${MK_JAIL} != "no" && !defined(RESCUE)
|
|
CFLAGS+= -DJAIL
|
|
LIBADD+= jail
|
|
.endif
|
|
LIBADD+= nv
|
|
|
|
.if ${MK_NETLINK_SUPPORT} != "no"
|
|
SRCS+= ifconfig_netlink.c
|
|
SRCS+= ifgeneve.c # GENEVE support
|
|
.else
|
|
CFLAGS+=-DWITHOUT_NETLINK
|
|
.endif
|
|
|
|
MAN= ifconfig.8
|
|
|
|
CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.include <bsd.prog.mk>
|