Makefile revision 345173
1#	From: @(#)Makefile	8.1 (Berkeley) 6/5/93
2# $FreeBSD: stable/11/sbin/ifconfig/Makefile 345173 2019-03-15 08:18:02Z avos $
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
27.endif
28
29SRCS+=	ifclone.c		# clone device support
30SRCS+=	ifmac.c			# MAC support
31SRCS+=	ifmedia.c		# SIOC[GS]IFMEDIA support
32SRCS+=	iffib.c			# non-default FIB support
33SRCS+=	ifvlan.c		# SIOC[GS]ETVLAN support
34SRCS+=	ifvxlan.c		# VXLAN support
35SRCS+=	ifgre.c			# GRE keys etc
36SRCS+=	ifgif.c			# GIF reversed header workaround
37SRCS+=	ifipsec.c		# IPsec VTI
38
39SRCS+=	sfp.c			# SFP/SFP+ information
40LIBADD+=	m
41
42.if ${MK_WIRELESS_SUPPORT} != "no"
43SRCS+=	ifieee80211.c		# SIOC[GS]IEEE80211 support
44LIBADD+=	80211
45.endif
46
47SRCS+=	carp.c			# SIOC[GS]VH support
48SRCS+=	ifgroup.c		# ...
49.if ${MK_PF} != "no"
50SRCS+=	ifpfsync.c		# pfsync(4) support
51.endif
52
53SRCS+=	ifbridge.c		# bridge support
54SRCS+=	iflagg.c		# lagg support
55
56.if ${MK_INET6_SUPPORT} != "no"
57CFLAGS+= -DINET6
58.endif
59.if ${MK_INET_SUPPORT} != "no"
60CFLAGS+= -DINET
61.endif
62.if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE)
63CFLAGS+= -DJAIL
64LIBADD+=	jail
65.endif
66
67MAN=	ifconfig.8
68
69CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
70WARNS?=	2
71
72.if ${MK_TESTS} != "no"
73SUBDIR+=	tests
74.endif
75
76.include <bsd.prog.mk>
77