Makefile revision 231642
1132451Sroberto#	From: @(#)Makefile	8.1 (Berkeley) 6/5/93
2132451Sroberto# $FreeBSD: head/sbin/ifconfig/Makefile 231642 2012-02-14 07:14:42Z rmh $
3132451Sroberto
4132451Sroberto.include <bsd.own.mk>
5132451Sroberto
6132451SrobertoPROG=	ifconfig
7132451Sroberto
8280849ScySRCS=	ifconfig.c		# base support
9182007Sroberto
10280849Scy#
11280849Scy# NB: The order here defines the order in which the constructors
12280849Scy#     are called.  This in turn defines the default order in which
13280849Scy#     status is displayed.  Probably should add a priority mechanism
14132451Sroberto#     to the registration process so we don't depend on this aspect
15132451Sroberto#     of the toolchain.
16132451Sroberto#
17132451SrobertoSRCS+=	af_link.c		# LLC support
18280849Scy.if ${MK_INET_SUPPORT} != "no"
19280849ScySRCS+=	af_inet.c		# IPv4 support
20280849Scy.endif
21132451Sroberto.if ${MK_INET6_SUPPORT} != "no"
22132451SrobertoSRCS+=	af_inet6.c		# IPv6 support
23132451Sroberto.endif
24132451SrobertoSRCS+=	af_atalk.c		# AppleTalk support
25132451Sroberto.if ${MK_INET6_SUPPORT} != "no"
26280849ScySRCS+=	af_nd6.c		# ND6 support
27132451Sroberto.endif
28280849Scy
29280849ScySRCS+=	ifclone.c		# clone device support
30280849ScySRCS+=	ifmac.c			# MAC support
31280849ScySRCS+=	ifmedia.c		# SIOC[GS]IFMEDIA support
32280849ScySRCS+=	iffib.c			# non-default FIB support
33280849ScySRCS+=	ifvlan.c		# SIOC[GS]ETVLAN support
34280849ScySRCS+=	ifgre.c			# GRE keys etc
35280849ScySRCS+=	ifgif.c			# GIF reversed header workaround
36132451Sroberto
37132451SrobertoSRCS+=	ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support
38280849ScyDPADD+=	${LIBBSDXML} ${LIBSBUF}
39280849ScyLDADD+=	-lbsdxml -lsbuf
40280849Scy
41280849ScySRCS+=	carp.c			# SIOC[GS]VH support
42280849ScySRCS+=	ifgroup.c		# ...
43280849ScySRCS+=	ifpfsync.c		# pfsync(4) support
44280849Scy
45280849ScySRCS+=	ifbridge.c		# bridge support
46280849ScySRCS+=	iflagg.c		# lagg support
47280849Scy
48280849Scy.if ${MK_INET6_SUPPORT} != "no"
49280849ScyCFLAGS+= -DINET6
50280849Scy.endif
51280849Scy.if ${MK_INET_SUPPORT} != "no"
52280849ScyCFLAGS+= -DINET
53280849Scy.endif
54280849Scy.if ${MK_IPX_SUPPORT} != "no" && !defined(RELEASE_CRUNCH)
55280849ScySRCS+=	af_ipx.c		# IPX support
56280849ScyDPADD+=	${LIBIPX}
57280849ScyLDADD+=	-lipx
58132451Sroberto.endif
59280849Scy.if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE)
60132451SrobertoCFLAGS+= -DJAIL
61280849ScyDPADD+= ${LIBJAIL}
62280849ScyLDADD+= -ljail
63280849Scy.endif
64132451Sroberto
65280849ScyMAN=	ifconfig.8
66280849Scy
67280849ScyCFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
68280849ScyWARNS?=	2
69280849Scy
70280849Scy.include <bsd.prog.mk>
71280849Scy