2017-02-09 02:26:24 +03:00
|
|
|
# $NetBSD: Makefile,v 1.60 2017/02/08 23:34:15 rin Exp $
|
1995-03-18 17:54:19 +03:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2005-03-20 17:24:13 +03:00
|
|
|
# when making a change to this file, please check if the change is
|
2009-09-16 18:59:45 +04:00
|
|
|
# also needed for src/distrib/utils/x_ifconfig.
|
|
|
|
# such stuff should be into Makefile.inc.
|
2005-03-20 17:24:13 +03:00
|
|
|
|
2005-01-10 05:58:58 +03:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2017-02-09 02:26:24 +03:00
|
|
|
RUMPPRG= ifconfig
|
|
|
|
MAN= ifconfig.8
|
|
|
|
|
|
|
|
SRCS= af_atalk.c af_link.c carp.c
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${NETBSDSRCDIR}/sys/dist/pf/
|
|
|
|
SRCS+= pfsync.c
|
1993-03-21 12:45:37 +03:00
|
|
|
|
2005-03-20 05:44:25 +03:00
|
|
|
.if (${USE_INET6} != "no")
|
Let us add/remove features from ifconfig, such as support for
various address families (inet, inet6, iso, atalk) and protocols
(802.11, 802.3ad, CARP), simply by trimming the list of sources in
the Makefile. This helps one customize ifconfig for an embedded
device or for install media, and it eliminates a lot of grotty
#ifdef'age. Now, the ifconfig syntax and semantics are finalized
at run-time using the constructor routines in each address-family/protocol
module.
(In principle, ifconfig could load virtually all of its syntax from
shared objects.)
Extract a lot of common code into subroutines, in order to shrink
the ifconfig binary a bit. Make all of the address families share
code for address addition/replacement/removal, and delete "legacy"
code for manipulating addresses. That may have broken atalk and
iso, despite my best efforts.
Extract an include file, Makefile.inc, containing the make-fu that
both ifconfig and x_ifconfig share.
Sprinkle static. Change some int's to bool's. Constify.
Add RCS Ids to carp.c and env.c. Move media code to a new file,
media.c. Delete several unneeded header files.
Set, reset, and display the IEEE 802.11 attribute, 'dot11RTSThreshold'.
Bug fix: do not require both a interface address and a destination
address for point-to-point interfaces, but accept a interface
address by itself.
2008-07-02 11:44:13 +04:00
|
|
|
CPPFLAGS+= -DINET6
|
2017-02-09 02:26:24 +03:00
|
|
|
SRCS+= af_inet6.c
|
2005-03-20 05:44:25 +03:00
|
|
|
.endif
|
2005-03-20 02:32:55 +03:00
|
|
|
|
2017-02-09 02:16:41 +03:00
|
|
|
.include "Makefile.common"
|
2004-10-29 00:10:29 +04:00
|
|
|
|
2010-12-13 20:35:08 +03:00
|
|
|
.PATH: ${.CURDIR}/../../lib/libc/net
|
2017-02-09 02:26:24 +03:00
|
|
|
RUMPSRCS= getifaddrs.c getnameinfo.c if_indextoname.c
|
2012-08-08 18:10:38 +04:00
|
|
|
.if (${MKRUMP} != "no")
|
2017-02-09 02:26:24 +03:00
|
|
|
CPPFLAGS+= -DRUMP_ACTION
|
2012-08-08 18:10:38 +04:00
|
|
|
.endif
|
2010-12-13 20:35:08 +03:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.prog.mk>
|