]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sbin/ifconfig/Makefile
Merge OpenSSL 1.0.2e.
[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 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 .if ${MK_INET6_SUPPORT} != "no"
25 SRCS+=  af_nd6.c                # ND6 support
26 .endif
27
28 SRCS+=  ifclone.c               # clone device support
29 SRCS+=  ifmac.c                 # MAC support
30 SRCS+=  ifmedia.c               # SIOC[GS]IFMEDIA support
31 SRCS+=  iffib.c                 # non-default FIB support
32 SRCS+=  ifvlan.c                # SIOC[GS]ETVLAN support
33 SRCS+=  ifvxlan.c               # VXLAN support
34 SRCS+=  ifgre.c                 # GRE keys etc
35 SRCS+=  ifgif.c                 # GIF reversed header workaround
36
37 SRCS+=  sfp.c                   # SFP/SFP+ information
38 LIBADD+=        m
39
40 SRCS+=  ifieee80211.c           # SIOC[GS]IEEE80211 support
41 LIBADD+=        bsdxml sbuf 80211
42
43 SRCS+=  carp.c                  # SIOC[GS]VH support
44 SRCS+=  ifgroup.c               # ...
45 .if ${MK_PF} != "no"
46 SRCS+=  ifpfsync.c              # pfsync(4) support
47 .endif
48
49 SRCS+=  ifbridge.c              # bridge support
50 SRCS+=  iflagg.c                # lagg support
51
52 .if ${MK_INET6_SUPPORT} != "no"
53 CFLAGS+= -DINET6
54 .endif
55 .if ${MK_INET_SUPPORT} != "no"
56 CFLAGS+= -DINET
57 .endif
58 .if ${MK_JAIL} != "no" && !defined(RELEASE_CRUNCH) && !defined(RESCUE)
59 CFLAGS+= -DJAIL
60 LIBADD+=        jail
61 .endif
62
63 MAN=    ifconfig.8
64
65 CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
66 WARNS?= 2
67
68 .if ${MK_TESTS} != "no"
69 SUBDIR+=        tests
70 .endif
71
72 .include <bsd.prog.mk>