]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sbin/ifconfig/Makefile
MFC r368207,368607:
[FreeBSD/stable/10.git] / sbin / ifconfig / Makefile
1 #       From: @(#)Makefile      8.1 (Berkeley) 6/5/93
2 # $FreeBSD$
3
4 .include <bsd.own.mk>
5
6 PROG=   ifconfig
7
8 SRCS=   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 #
17 SRCS+=  af_link.c               # LLC support
18 .if ${MK_INET_SUPPORT} != "no"
19 SRCS+=  af_inet.c               # IPv4 support
20 .endif
21 .if ${MK_INET6_SUPPORT} != "no"
22 SRCS+=  af_inet6.c              # IPv6 support
23 .endif
24 SRCS+=  af_atalk.c              # AppleTalk support
25 .if ${MK_INET6_SUPPORT} != "no"
26 SRCS+=  af_nd6.c                # ND6 support
27 .endif
28
29 SRCS+=  ifclone.c               # clone device support
30 SRCS+=  ifmac.c                 # MAC support
31 SRCS+=  ifmedia.c               # SIOC[GS]IFMEDIA support
32 SRCS+=  iffib.c                 # non-default FIB support
33 SRCS+=  ifvlan.c                # SIOC[GS]ETVLAN support
34 SRCS+=  ifvxlan.c               # VXLAN support
35 SRCS+=  ifgre.c                 # GRE keys etc
36 SRCS+=  ifgif.c                 # GIF reversed header workaround
37
38 SRCS+=  sfp.c                   # SFP/SFP+ information
39 DPADD+= ${LIBM}
40 LDADD+= -lm
41
42 .if ${MK_WIRELESS_SUPPORT} != "no"
43 SRCS+=  ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support
44 DPADD+= ${LIBBSDXML} ${LIBSBUF}
45 LDADD+= -lbsdxml -lsbuf
46 .endif
47
48 SRCS+=  carp.c                  # SIOC[GS]VH support
49 SRCS+=  ifgroup.c               # ...
50 .if ${MK_PF} != "no"
51 SRCS+=  ifpfsync.c              # pfsync(4) support
52 .endif
53
54 SRCS+=  ifbridge.c              # bridge support
55 SRCS+=  iflagg.c                # lagg support
56
57 .if ${MK_INET6_SUPPORT} != "no"
58 CFLAGS+= -DINET6
59 .endif
60 .if ${MK_INET_SUPPORT} != "no"
61 CFLAGS+= -DINET
62 .endif
63 .if ${MK_IPX_SUPPORT} != "no" && !defined(RELEASE_CRUNCH)
64 SRCS+=  af_ipx.c                # IPX support
65 DPADD+= ${LIBIPX}
66 LDADD+= -lipx
67 .endif
68 .if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE)
69 CFLAGS+= -DJAIL
70 DPADD+= ${LIBJAIL}
71 LDADD+= -ljail
72 .endif
73
74 MAN=    ifconfig.8
75
76 CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
77 WARNS?= 2
78
79 .include <bsd.prog.mk>