Makefile revision 284365
1#	From: @(#)Makefile	8.1 (Berkeley) 6/5/93
2# $FreeBSD: stable/10/sbin/ifconfig/Makefile 284365 2015-06-14 03:14:45Z bryanv $
3
4.include <bsd.own.mk>
5
6PROG=	ifconfig
7
8SRCS=	ifconfig.c		# base support
9
10#
11# NB: The order here defines the order in which the constructors
12#     are called.  This in turn defines the default order in which
13#     status is displayed.  Probably should add a priority mechanism
14#     to the registration process so we don't depend on this aspect
15#     of the toolchain.
16#
17SRCS+=	af_link.c		# LLC support
18.if ${MK_INET_SUPPORT} != "no"
19SRCS+=	af_inet.c		# IPv4 support
20.endif
21.if ${MK_INET6_SUPPORT} != "no"
22SRCS+=	af_inet6.c		# IPv6 support
23.endif
24SRCS+=	af_atalk.c		# AppleTalk support
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
37
38SRCS+=	ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support
39DPADD+=	${LIBBSDXML} ${LIBSBUF}
40LDADD+=	-lbsdxml -lsbuf
41
42SRCS+=	carp.c			# SIOC[GS]VH support
43SRCS+=	ifgroup.c		# ...
44.if ${MK_PF} != "no"
45SRCS+=	ifpfsync.c		# pfsync(4) support
46.endif
47
48SRCS+=	ifbridge.c		# bridge support
49SRCS+=	iflagg.c		# lagg support
50
51.if ${MK_INET6_SUPPORT} != "no"
52CFLAGS+= -DINET6
53.endif
54.if ${MK_INET_SUPPORT} != "no"
55CFLAGS+= -DINET
56.endif
57.if ${MK_IPX_SUPPORT} != "no" && !defined(RELEASE_CRUNCH)
58SRCS+=	af_ipx.c		# IPX support
59DPADD+=	${LIBIPX}
60LDADD+=	-lipx
61.endif
62.if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE)
63CFLAGS+= -DJAIL
64DPADD+= ${LIBJAIL}
65LDADD+= -ljail
66.endif
67
68MAN=	ifconfig.8
69
70CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
71WARNS?=	2
72
73.include <bsd.prog.mk>
74