Bring in new ifconfig(8) from FreeBSD6. It is more modular and flexible with
[dragonfly.git] / sbin / ifconfig / Makefile
1 #       From: @(#)Makefile      8.1 (Berkeley) 6/5/93
2 # $FreeBSD: src/sbin/ifconfig/Makefile,v 1.29 2005/06/05 03:32:51 thompsa Exp $
3 # $DragonFly: src/sbin/ifconfig/Makefile,v 1.4 2006/04/02 03:33:59 sephe Exp $
4
5 PROG=   ifconfig
6
7 SRCS=   ifconfig.c              # base support
8
9 #
10 # NB: The order here defines the order in which the constructors
11 #     are called.  This in turn defines the default order in which
12 #     status is displayed.  Probably should add a priority mechanism
13 #     to the registration process so we don't depend on this aspect
14 #     of the toolchain.
15 #
16 SRCS+=  af_link.c               # LLC support
17 SRCS+=  af_inet.c               # IPv4 support
18 SRCS+=  af_inet6.c              # IPv6 support
19 SRCS+=  af_atalk.c              # AppleTalk support
20
21 SRCS+=  ifclone.c               # clone device support
22 #SRCS+= ifmac.c                 # MAC support
23 SRCS+=  ifmedia.c               # SIOC[GS]IFMEDIA support
24 SRCS+=  ifvlan.c                # SIOC[GS]ETVLAN support
25 SRCS+=  ifieee80211.c           # SIOC[GS]IEEE80211 support
26
27 #SRCS+= ifcarp.c                # SIOC[GS]VH support
28 #SRCS+= ifpfsync.c              # pfsync(4) support
29
30 SRCS+=  ifbridge.c              # bridge support
31
32 .ifndef RELEASE_CRUNCH
33 SRCS+=  af_ipx.c                # IPX support
34 DPADD=  ${LIBIPX}
35 LDADD=  -lipx
36 .else
37 CFLAGS+= -DNO_IPX
38 .endif
39
40 MAN=    ifconfig.8
41
42 CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
43 WARNS=  0
44
45 .include <bsd.prog.mk>