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