xref: /freebsd/sbin/ifconfig/Makefile (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1#	From: @(#)Makefile	8.1 (Berkeley) 6/5/93
2# $FreeBSD$
3
4.include <src.opts.mk>
5
6PACKAGE=runtime
7PROG=	ifconfig
8
9SRCS=	ifconfig.c		# base support
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
19.if ${MK_INET_SUPPORT} != "no"
20SRCS+=	af_inet.c		# IPv4 support
21.endif
22.if ${MK_INET6_SUPPORT} != "no"
23SRCS+=	af_inet6.c		# IPv6 support
24.endif
25.if ${MK_INET6_SUPPORT} != "no"
26SRCS+=	af_nd6.c		# ND6 support
27SRCS+=	ifstf.c			# STF configuration options
28.endif
29
30SRCS+=	ifclone.c		# clone device support
31SRCS+=	ifmac.c			# MAC support
32SRCS+=	ifmedia.c		# SIOC[GS]IFMEDIA support
33SRCS+=	iffib.c			# non-default FIB support
34SRCS+=	ifvlan.c		# SIOC[GS]ETVLAN support
35SRCS+=	ifvxlan.c		# VXLAN support
36SRCS+=	ifgre.c			# GRE keys etc
37SRCS+=	ifgif.c			# GIF reversed header workaround
38SRCS+=	ifipsec.c		# IPsec VTI
39
40SRCS+=	sfp.c			# SFP/SFP+ information
41LIBADD+=	ifconfig m util
42CFLAGS+=	-I${SRCTOP}/lib/libifconfig -I${OBJTOP}/lib/libifconfig
43
44.if ${MK_WIRELESS_SUPPORT} != "no"
45SRCS+=	ifieee80211.c		# SIOC[GS]IEEE80211 support
46LIBADD+=	80211
47.endif
48
49SRCS+=	carp.c			# SIOC[GS]VH support
50SRCS+=	ifgroup.c		# ...
51.if ${MK_PF} != "no"
52SRCS+=	ifpfsync.c		# pfsync(4) support
53.endif
54
55SRCS+=	ifbridge.c		# bridge support
56SRCS+=	iflagg.c		# lagg support
57
58.if ${MK_EXPERIMENTAL} != "no"
59CFLAGS+= -DDRAFT_IETF_6MAN_IPV6ONLY_FLAG
60CFLAGS+= -DEXPERIMENTAL
61.endif
62.if ${MK_INET6_SUPPORT} != "no"
63CFLAGS+= -DINET6
64.endif
65.if ${MK_INET_SUPPORT} != "no"
66CFLAGS+= -DINET
67.endif
68.if ${MK_JAIL} != "no" && !defined(RESCUE)
69CFLAGS+= -DJAIL
70LIBADD+=	jail
71.endif
72LIBADD+=	nv
73
74MAN=	ifconfig.8
75
76CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
77WARNS?=	2
78
79HAS_TESTS=
80SUBDIR.${MK_TESTS}+= tests
81
82.include <bsd.prog.mk>
83