1 # From: @(#)Makefile 8.1 (Berkeley) 6/5/93
9 SRCS= ifconfig.c # base support
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
18 SRCS+= af_link.c # LLC support
19 .if ${MK_INET_SUPPORT} != "no"
20 SRCS+= af_inet.c # IPv4 support
22 .if ${MK_INET6_SUPPORT} != "no"
23 SRCS+= af_inet6.c # IPv6 support
25 .if ${MK_INET6_SUPPORT} != "no"
26 SRCS+= af_nd6.c # ND6 support
29 SRCS+= ifclone.c # clone device support
30 SRCS+= ifmac.c # MAC support
31 SRCS+= ifmedia.c # SIOC[GS]IFMEDIA support
32 SRCS+= iffib.c # non-default FIB support
33 SRCS+= ifvlan.c # SIOC[GS]ETVLAN support
34 SRCS+= ifvxlan.c # VXLAN support
35 SRCS+= ifgre.c # GRE keys etc
36 SRCS+= ifgif.c # GIF reversed header workaround
37 SRCS+= ifipsec.c # IPsec VTI
39 SRCS+= sfp.c # SFP/SFP+ information
40 LIBADD+= ifconfig m util
41 CFLAGS+= -I${SRCTOP}/lib/libifconfig -I${OBJTOP}/lib/libifconfig
43 .if ${MK_WIRELESS_SUPPORT} != "no"
44 SRCS+= ifieee80211.c # SIOC[GS]IEEE80211 support
48 SRCS+= carp.c # SIOC[GS]VH support
49 SRCS+= ifgroup.c # ...
51 SRCS+= ifpfsync.c # pfsync(4) support
54 SRCS+= ifbridge.c # bridge support
55 SRCS+= iflagg.c # lagg support
57 .if ${MK_EXPERIMENTAL} != "no"
58 CFLAGS+= -DDRAFT_IETF_6MAN_IPV6ONLY_FLAG
59 CFLAGS+= -DEXPERIMENTAL
61 .if ${MK_INET6_SUPPORT} != "no"
64 .if ${MK_INET_SUPPORT} != "no"
67 .if ${MK_JAIL} != "no" && !defined(RESCUE)
74 CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
78 SUBDIR.${MK_TESTS}+= tests
80 .include <bsd.prog.mk>