Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Factor out a common part in Makefile's of ifconfig and x_ifc...
details: https://anonhg.NetBSD.org/src/rev/bf99b0cfd890
branches: trunk
changeset: 351286:bf99b0cfd890
user: rin <rin%NetBSD.org@localhost>
date: Wed Feb 08 23:22:43 2017 +0000
description:
Factor out a common part in Makefile's of ifconfig and x_ifconfig.
diffstat:
distrib/utils/x_ifconfig/Makefile | 6 +-----
sbin/ifconfig/Makefile | 6 +-----
sbin/ifconfig/Makefile.common | 6 +++++-
3 files changed, 7 insertions(+), 11 deletions(-)
diffs (57 lines):
diff -r 53d5c0453856 -r bf99b0cfd890 distrib/utils/x_ifconfig/Makefile
--- a/distrib/utils/x_ifconfig/Makefile Wed Feb 08 23:16:41 2017 +0000
+++ b/distrib/utils/x_ifconfig/Makefile Wed Feb 08 23:22:43 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2017/02/08 23:16:41 rin Exp $
+# $NetBSD: Makefile,v 1.36 2017/02/08 23:22:43 rin Exp $
# Build a smaller ifconfig (i.e. for boot media)
NOMAN= # defined
@@ -14,10 +14,6 @@
SRCS+= af_inet6.c
.endif
-.ifdef SMALLPROG
-CPPFLAGS+=-DSMALL
-.endif
-
PROG= ifconfig
.include "${.CURDIR}/../../../sbin/ifconfig/Makefile.common"
diff -r 53d5c0453856 -r bf99b0cfd890 sbin/ifconfig/Makefile
--- a/sbin/ifconfig/Makefile Wed Feb 08 23:16:41 2017 +0000
+++ b/sbin/ifconfig/Makefile Wed Feb 08 23:22:43 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.58 2017/02/08 23:16:41 rin Exp $
+# $NetBSD: Makefile,v 1.59 2017/02/08 23:22:43 rin Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
# when making a change to this file, please check if the change is
@@ -25,10 +25,6 @@
CPPFLAGS+= -DRUMP_ACTION
.endif
-.ifdef SMALLPROG
-CPPFLAGS+=-DSMALL
-.endif
-
CPPFLAGS+=-I${NETBSDSRCDIR}/sys/dist/pf/
SRCS+= pfsync.c
diff -r 53d5c0453856 -r bf99b0cfd890 sbin/ifconfig/Makefile.common
--- a/sbin/ifconfig/Makefile.common Wed Feb 08 23:16:41 2017 +0000
+++ b/sbin/ifconfig/Makefile.common Wed Feb 08 23:22:43 2017 +0000
@@ -1,8 +1,12 @@
-# $NetBSD: Makefile.common,v 1.1 2017/02/08 23:16:41 rin Exp $
+# $NetBSD: Makefile.common,v 1.2 2017/02/08 23:22:43 rin Exp $
# shared stuff with src/distrib/utils/x_ifconfig for install media.
# stuff not required by install media should be into Makefile.
+.ifdef SMALLPROG
+CPPFLAGS+=-DSMALL
+.endif
+
DPADD+=${LIBUTIL}
DPADD+=${LIBPROP}
LDADD+=-lutil
Home |
Main Index |
Thread Index |
Old Index