xref: /f-stack/tools/ifconfig/Makefile (revision ebf5cedb)
1#	From: @(#)Makefile	8.1 (Berkeley) 6/5/93
2# $FreeBSD$
3
4PROG=	ifconfig
5
6SRCS=	ifconfig.c		# base support
7
8TOPDIR?=${CURDIR}/../..
9include ${TOPDIR}/tools/opts.mk
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
19ifneq (${MK_INET_SUPPORT},"no")
20SRCS+=	af_inet.c		# IPv4 support
21endif
22ifneq (${MK_INET6_SUPPORT},"no")
23SRCS+=	af_inet6.c		# IPv6 support
24endif
25ifneq (${MK_INET6_SUPPORT},"no")
26SRCS+=	af_nd6.c		# ND6 support
27endif
28
29SRCS+=	ifclone.c		# clone device support
30
31ifneq (${MK_MAC_SUPPORT},"no")
32SRCS+=	ifmac.c			# MAC support
33endif
34
35ifneq (${MK_IFMEDIA_SUPPORT},"no")
36SRCS+=	ifmedia.c			# SIOC[GS]IFMEDIA support
37endif
38
39SRCS+=	iffib.c			# non-default FIB support
40SRCS+=	ifvlan.c		# SIOC[GS]ETVLAN support
41SRCS+=	ifvxlan.c		# VXLAN support
42SRCS+=	ifgre.c			# GRE keys etc
43SRCS+=	ifgif.c			# GIF reversed header workaround
44
45ifneq (${MK_SFP_SUPPORT},"no")
46SRCS+=	sfp.c			# SFP/SFP+ information
47LIBADD+=	m
48endif
49
50ifneq (${MK_IEEE80211_SUPPORT},"no")
51SRCS+=	ifieee80211.c   # SIOC[GS]IEEE80211 support
52LIBADD+=	80211
53endif
54
55SRCS+=	carp.c			# SIOC[GS]VH support
56SRCS+=	ifgroup.c		# ...
57ifneq (${MK_PF},"no")
58SRCS+=	ifpfsync.c		# pfsync(4) support
59endif
60
61SRCS+=	ifbridge.c		# bridge support
62ifneq (${MK_LAGG_SUPPORT},"no")
63SRCS+=	iflagg.c   # lagg support
64endif
65
66ifneq (${MK_INET6_SUPPORT},"no")
67CFLAGS+= -DINET6
68endif
69ifneq (${MK_INET_SUPPORT},"no")
70CFLAGS+= -DINET
71endif
72ifneq (${MK_JAIL},"no")
73ifndef (RELEASE_CRUNCH)
74ifndef (RESCUE)
75CFLAGS+= -DJAIL
76LIBADD+=	jail
77endif
78endif
79endif
80
81MAN=	ifconfig.8
82
83CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
84WARNS?=	2
85
86include ${TOPDIR}/tools/prog.mk
87
88
89