Factor out a common part in Makefile's of ifconfig and x_ifconfig.
This commit is contained in:
parent
6323d1adb5
commit
d394916260
@ -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 @@ CPPFLAGS+= -DINET6
|
||||
SRCS+= af_inet6.c
|
||||
.endif
|
||||
|
||||
.ifdef SMALLPROG
|
||||
CPPFLAGS+=-DSMALL
|
||||
.endif
|
||||
|
||||
PROG= ifconfig
|
||||
.include "${.CURDIR}/../../../sbin/ifconfig/Makefile.common"
|
||||
|
||||
|
@ -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 @@ RUMPSRCS= getifaddrs.c getnameinfo.c if_indextoname.c
|
||||
CPPFLAGS+= -DRUMP_ACTION
|
||||
.endif
|
||||
|
||||
.ifdef SMALLPROG
|
||||
CPPFLAGS+=-DSMALL
|
||||
.endif
|
||||
|
||||
CPPFLAGS+=-I${NETBSDSRCDIR}/sys/dist/pf/
|
||||
SRCS+= pfsync.c
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user