freebsd-dev/sbin/ifconfig/Makefile
Dima Dorfman f328d583a2 Use CFLAGS, not COPTS, in the Makefile. bsd.prog.mk conveniently adds
COPTS towards the end of final CFLAGS so that it can be used to
override Makefile and other defaults.  Using it in Makefiles risks
having options set using it clobbered when somebody uses it on the
command line.

Approved by:	bde
2001-09-05 20:10:59 +00:00

35 lines
633 B
Makefile

# From: @(#)Makefile 8.1 (Berkeley) 6/5/93
# $FreeBSD$
PROG= ifconfig
SRCS= ifconfig.c
#comment out to exclude SIOC[GS]IFMEDIA support
SRCS+= ifmedia.c
CFLAGS+=-DUSE_IF_MEDIA
.if !defined(RELEASE_CRUNCH)
CFLAGS+=-DINET6
#comment out to exclude SIOC[GS]ETVLAN support
SRCS+= ifvlan.c
CFLAGS+=-DUSE_VLANS
.endif
#comment out to exclude SIOC[GS]IEEE80211 support
SRCS+= ifieee80211.c
CFLAGS+=-DUSE_IEEE80211
MAN= ifconfig.8
.if defined(RELEASE_CRUNCH)
CFLAGS+=-DNO_IPX
.else
DPADD= ${LIBIPX}
LDADD= -lipx
.endif
CFLAGS+=-DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings \
-Wnested-externs -I..
.include <bsd.prog.mk>