]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sbin/ifconfig/Makefile
ident(1): Normalizing date format
[FreeBSD/FreeBSD.git] / sbin / ifconfig / Makefile
1 #       From: @(#)Makefile      8.1 (Berkeley) 6/5/93
2 # $FreeBSD$
3
4 .include <src.opts.mk>
5
6 PACKAGE=runtime
7 PROG=   ifconfig
8
9 SRCS=   ifconfig.c              # base support
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 #
18 SRCS+=  af_link.c               # LLC support
19 .if ${MK_INET_SUPPORT} != "no"
20 SRCS+=  af_inet.c               # IPv4 support
21 .endif
22 .if ${MK_INET6_SUPPORT} != "no"
23 SRCS+=  af_inet6.c              # IPv6 support
24 .endif
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 SRCS+=  ifipsec.c               # IPsec VTI
38 SRCS+=  ifwg.c          # Wireguard
39
40 SRCS+=  sfp.c                   # SFP/SFP+ information
41 LIBADD+=        ifconfig m util
42 CFLAGS+=        -I${SRCTOP}/lib/libifconfig -I${OBJTOP}/lib/libifconfig
43
44 .if ${MK_WIRELESS_SUPPORT} != "no"
45 SRCS+=  ifieee80211.c           # SIOC[GS]IEEE80211 support
46 LIBADD+=        80211
47 .endif
48
49 SRCS+=  carp.c                  # SIOC[GS]VH support
50 SRCS+=  ifgroup.c               # ...
51 .if ${MK_PF} != "no"
52 SRCS+=  ifpfsync.c              # pfsync(4) support
53 .endif
54
55 SRCS+=  ifbridge.c              # bridge support
56 SRCS+=  iflagg.c                # lagg support
57
58 .if ${MK_EXPERIMENTAL} != "no"
59 CFLAGS+= -DDRAFT_IETF_6MAN_IPV6ONLY_FLAG
60 CFLAGS+= -DEXPERIMENTAL
61 .endif
62 .if ${MK_INET6_SUPPORT} != "no"
63 CFLAGS+= -DINET6
64 .endif
65 .if ${MK_INET_SUPPORT} != "no"
66 CFLAGS+= -DINET
67 .endif
68 .if ${MK_JAIL} != "no" && !defined(RESCUE)
69 CFLAGS+= -DJAIL
70 LIBADD+=        jail
71 .endif
72 LIBADD+=        nv
73
74 MAN=    ifconfig.8
75
76 CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
77 WARNS?= 2
78
79 HAS_TESTS=
80 SUBDIR.${MK_TESTS}+= tests
81
82 .include <bsd.prog.mk>