]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sbin/ifconfig/Makefile
Merge sendmail 8.14.5 to HEAD
[FreeBSD/FreeBSD.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+=  ifvlan.c                # SIOC[GS]ETVLAN support
33 SRCS+=  ifgre.c                 # GRE keys etc
34 SRCS+=  ifgif.c                 # GIF reversed header workaround
35
36 SRCS+=  ifieee80211.c regdomain.c # SIOC[GS]IEEE80211 support
37 DPADD+= ${LIBBSDXML} ${LIBJAIL} ${LIBSBUF}
38 LDADD+= -lbsdxml -ljail -lsbuf
39
40 SRCS+=  ifcarp.c                # SIOC[GS]VH support
41 SRCS+=  ifgroup.c               # ...
42 SRCS+=  ifpfsync.c              # pfsync(4) support
43
44 SRCS+=  ifbridge.c              # bridge support
45 SRCS+=  iflagg.c                # lagg support
46
47 .if ${MK_INET6_SUPPORT} != "no"
48 CFLAGS+= -DINET6
49 .endif
50 .if ${MK_INET_SUPPORT} != "no"
51 CFLAGS+= -DINET
52 .endif
53 .if ${MK_IPX_SUPPORT} != "no" && !defined(RELEASE_CRUNCH)
54 SRCS+=  af_ipx.c                # IPX support
55 DPADD+= ${LIBIPX}
56 LDADD+= -lipx
57 .endif
58
59 MAN=    ifconfig.8
60
61 CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
62 WARNS?= 2
63
64 .include <bsd.prog.mk>