Makefile (478290db20b28ab28ce7e08cf33f1b44d82e4cb3) Makefile (007054f07030437361a6d6044ef52d6a6ff03bae)
1# $NetBSD: Makefile,v 1.1 2011/05/03 06:13:06 jruoho Exp $
1# From: @(#)Makefile 8.1 (Berkeley) 6/5/93
2# $FreeBSD$
2
3
3.include <bsd.own.mk>
4.include <src.opts.mk>
4
5
5TESTSDIR= ${TESTSBASE}/sbin/ifconfig
6PROG= ifconfig
6
7
7TESTS_SH= t_nonexistent
8SRCS= ifconfig.c # base support
8
9
9.include <bsd.test.mk>
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+= ifvxlan.c # VXLAN support
34SRCS+= ifgre.c # GRE keys etc
35SRCS+= ifgif.c # GIF reversed header workaround
36
37SRCS+= sfp.c # SFP/SFP+ information
38DPADD+= ${LIBM}
39LDADD+= -lm
40
41SRCS+= ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support
42DPADD+= ${LIBBSDXML} ${LIBSBUF}
43LDADD+= -lbsdxml -lsbuf
44
45SRCS+= carp.c # SIOC[GS]VH support
46SRCS+= ifgroup.c # ...
47.if ${MK_PF} != "no"
48SRCS+= ifpfsync.c # pfsync(4) support
49.endif
50
51SRCS+= ifbridge.c # bridge support
52SRCS+= iflagg.c # lagg support
53
54.if ${MK_INET6_SUPPORT} != "no"
55CFLAGS+= -DINET6
56.endif
57.if ${MK_INET_SUPPORT} != "no"
58CFLAGS+= -DINET
59.endif
60.if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE)
61CFLAGS+= -DJAIL
62DPADD+= ${LIBJAIL}
63LDADD+= -ljail
64.endif
65
66MAN= ifconfig.8
67
68CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
69WARNS?= 2
70
71.include <bsd.prog.mk>