Makefile revision 270064
1#	From: @(#)Makefile	8.1 (Berkeley) 6/5/93
2# $FreeBSD: head/sbin/ifconfig/Makefile 270064 2014-08-16 19:13:52Z melifaro $
3
4.include <src.opts.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
24.if ${MK_INET6_SUPPORT} != "no"
25SRCS+=	af_nd6.c		# ND6 support
26.endif
27
28SRCS+=	ifclone.c		# clone device support
29SRCS+=	ifmac.c			# MAC support
30SRCS+=	ifmedia.c		# SIOC[GS]IFMEDIA support
31SRCS+=	iffib.c			# non-default FIB support
32SRCS+=	ifvlan.c		# SIOC[GS]ETVLAN support
33SRCS+=	ifgre.c			# GRE keys etc
34SRCS+=	ifgif.c			# GIF reversed header workaround
35
36SRCS+=	sfp.c			# SFP/SFP+ information
37LDADD+=	-lm
38
39SRCS+=	ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support
40DPADD+=	${LIBBSDXML} ${LIBSBUF}
41LDADD+=	-lbsdxml -lsbuf
42
43SRCS+=	carp.c			# SIOC[GS]VH support
44SRCS+=	ifgroup.c		# ...
45.if ${MK_PF} != "no"
46SRCS+=	ifpfsync.c		# pfsync(4) support
47.endif
48
49SRCS+=	ifbridge.c		# bridge support
50SRCS+=	iflagg.c		# lagg support
51
52.if ${MK_INET6_SUPPORT} != "no"
53CFLAGS+= -DINET6
54.endif
55.if ${MK_INET_SUPPORT} != "no"
56CFLAGS+= -DINET
57.endif
58.if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE)
59CFLAGS+= -DJAIL
60DPADD+= ${LIBJAIL}
61LDADD+= -ljail
62.endif
63
64MAN=	ifconfig.8
65
66CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
67WARNS?=	2
68
69.include <bsd.prog.mk>
70