xref: /freebsd/sbin/ifconfig/Makefile (revision 4ec234c813eed05c166859bba82c882e40826eb9)
1#	From: @(#)Makefile	8.1 (Berkeley) 6/5/93
2# $FreeBSD$
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+=	ifgre.c			# GRE keys etc
35SRCS+=	ifgif.c			# GIF reversed header workaround
36
37SRCS+=	ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support
38DPADD+=	${LIBBSDXML} ${LIBSBUF}
39LDADD+=	-lbsdxml -lsbuf
40
41SRCS+=	carp.c			# SIOC[GS]VH support
42SRCS+=	ifgroup.c		# ...
43.if ${MK_PF} != "no"
44SRCS+=	ifpfsync.c		# pfsync(4) support
45.endif
46
47SRCS+=	ifbridge.c		# bridge support
48SRCS+=	iflagg.c		# lagg support
49
50.if ${MK_INET6_SUPPORT} != "no"
51CFLAGS+= -DINET6
52.endif
53.if ${MK_INET_SUPPORT} != "no"
54CFLAGS+= -DINET
55.endif
56.if ${MK_IPX_SUPPORT} != "no" && !defined(RELEASE_CRUNCH)
57SRCS+=	af_ipx.c		# IPX support
58DPADD+=	${LIBIPX}
59LDADD+=	-lipx
60.endif
61.if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE)
62CFLAGS+= -DJAIL
63DPADD+= ${LIBJAIL}
64LDADD+= -ljail
65.endif
66
67MAN=	ifconfig.8
68
69CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
70WARNS?=	2
71
72.include <bsd.prog.mk>
73