summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ifconfig/Makefile')
-rw-r--r--sbin/ifconfig/Makefile49
1 files changed, 25 insertions, 24 deletions
diff --git a/sbin/ifconfig/Makefile b/sbin/ifconfig/Makefile
index 252f8b6..117441b 100644
--- a/sbin/ifconfig/Makefile
+++ b/sbin/ifconfig/Makefile
@@ -2,35 +2,36 @@
# $FreeBSD$
PROG= ifconfig
-SRCS= ifconfig.c
-#comment out to exclude SIOC[GS]IFMEDIA support
-SRCS+= ifmedia.c
-CFLAGS+=-DUSE_IF_MEDIA
-CFLAGS+=-DINET6
-
-#comment out to exclude SIOC[GS]ETVLAN support
-SRCS+= ifvlan.c
-CFLAGS+=-DUSE_VLANS
-
-#comment out to exclude SIOC[GS]IEEE80211 support
-SRCS+= ifieee80211.c
-CFLAGS+=-DUSE_IEEE80211
-
-#comment out to exclude MAC support
-SRCS+= ifmac.c
-CFLAGS+=-DUSE_MAC
-
-MAN= ifconfig.8
-
-.if defined(RELEASE_CRUNCH)
-CFLAGS+=-DNO_IPX
-.else
+SRCS= ifconfig.c # base support
+
+#
+# NB: The order here defines the order in which the constructors
+# are called. This in turn defines the default order in which
+# status is displayed. Probably should add a priority mechanism
+# to the registration process so we don't depend on this aspect
+# of the toolchain.
+#
+SRCS+= af_link.c # LLC support
+SRCS+= af_inet.c # IPv4 support
+SRCS+= af_inet6.c # IPv6 support
+SRCS+= af_atalk.c # AppleTalk support
+
+SRCS+= ifclone.c # clone device support
+SRCS+= ifmac.c # MAC support
+SRCS+= ifmedia.c # SIOC[GS]IFMEDIA support
+SRCS+= ifvlan.c # SIOC[GS]ETVLAN support
+SRCS+= ifieee80211.c # SIOC[GS]IEEE80211 support
+
+.if !defined(RELEASE_CRUNCH)
+SRCS+= af_ipx.c # IPX support
DPADD= ${LIBIPX}
LDADD= -lipx
.endif
-CFLAGS+=-DNS -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings \
+MAN= ifconfig.8
+
+CFLAGS+= -g -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings \
-Wnested-externs -I..
WARNS?= 0
OpenPOWER on IntegriCloud