Deleted Added
full compact
Makefile (126178) Makefile (138593)
1# From: @(#)Makefile 8.1 (Berkeley) 6/5/93
1# From: @(#)Makefile 8.1 (Berkeley) 6/5/93
2# $FreeBSD: head/sbin/ifconfig/Makefile 126178 2004-02-23 20:25:27Z johan $
2# $FreeBSD: head/sbin/ifconfig/Makefile 138593 2004-12-08 19:18:07Z sam $
3
4PROG= ifconfig
3
4PROG= ifconfig
5SRCS= ifconfig.c
6
5
7#comment out to exclude SIOC[GS]IFMEDIA support
8SRCS+= ifmedia.c
9CFLAGS+=-DUSE_IF_MEDIA
10CFLAGS+=-DINET6
6SRCS= ifconfig.c # base support
11
7
12#comment out to exclude SIOC[GS]ETVLAN support
13SRCS+= ifvlan.c
14CFLAGS+=-DUSE_VLANS
8#
9# NB: The order here defines the order in which the constructors
10# are called. This in turn defines the default order in which
11# status is displayed. Probably should add a priority mechanism
12# to the registration process so we don't depend on this aspect
13# of the toolchain.
14#
15SRCS+= af_link.c # LLC support
16SRCS+= af_inet.c # IPv4 support
17SRCS+= af_inet6.c # IPv6 support
18SRCS+= af_atalk.c # AppleTalk support
15
19
16#comment out to exclude SIOC[GS]IEEE80211 support
17SRCS+= ifieee80211.c
18CFLAGS+=-DUSE_IEEE80211
20SRCS+= ifclone.c # clone device support
21SRCS+= ifmac.c # MAC support
22SRCS+= ifmedia.c # SIOC[GS]IFMEDIA support
23SRCS+= ifvlan.c # SIOC[GS]ETVLAN support
24SRCS+= ifieee80211.c # SIOC[GS]IEEE80211 support
19
25
20#comment out to exclude MAC support
21SRCS+= ifmac.c
22CFLAGS+=-DUSE_MAC
23
24MAN= ifconfig.8
25
26.if defined(RELEASE_CRUNCH)
27CFLAGS+=-DNO_IPX
28.else
26.if !defined(RELEASE_CRUNCH)
27SRCS+= af_ipx.c # IPX support
29DPADD= ${LIBIPX}
30LDADD= -lipx
31.endif
32
28DPADD= ${LIBIPX}
29LDADD= -lipx
30.endif
31
33CFLAGS+=-DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings \
32MAN= ifconfig.8
33
34CFLAGS+= -g -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings \
34 -Wnested-externs -I..
35WARNS?= 0
36
37.include <bsd.prog.mk>
35 -Wnested-externs -I..
36WARNS?= 0
37
38.include <bsd.prog.mk>