move (using repository copy) bootp{d,ef,gw,test} into a common hierarchy

with a libcommon - to stop unnecessary recompilation of the source.
add Makefile* to suit.
This commit is contained in:
lukem 1998-03-15 01:13:24 +00:00
parent 27ef26a468
commit 7b9e551896
7 changed files with 53 additions and 6 deletions

7
usr.sbin/bootp/Makefile Normal file
View File

@ -0,0 +1,7 @@
# $NetBSD: Makefile,v 1.1 1998/03/15 01:13:24 lukem Exp $
SUBDIR= common bootpd bootpef bootpgw bootptest
all-bootpd all-bootpef all-bootpgw all-bootptest: all-common
.include <bsd.subdir.mk>

View File

@ -0,0 +1,11 @@
# $NetBSD: Makefile.inc,v 1.1 1998/03/15 01:13:25 lukem Exp $
LIBCOMMON != cd ${.CURDIR}/../common;\
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
CPPFLAGS+=-I${.CURDIR}/../common
DPADD+= ${LIBCOMMON}/libcommon.a
LDADD+= -L${LIBCOMMON} -lcommon
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif

View File

@ -1,11 +1,7 @@
# bootpd/Makefile # $NetBSD: Makefile,v 1.6 1998/03/15 01:13:25 lukem Exp $
# $NetBSD: Makefile,v 1.5 1998/03/14 04:39:53 lukem Exp $
PROG= bootpd PROG= bootpd
CPPFLAGS+= -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU CPPFLAGS+= -DVEND_CMU
SRCS= bootpd.c dovend.c readfile.c hash.c dumptab.c \
lookup.c getif.c hwaddr.c report.c tzone.c
MAN= bootpd.8 bootptab.5 MAN= bootpd.8 bootptab.5
MLINKS= bootpd.8 bootpgw.8 MLINKS= bootpd.8 bootpgw.8

View File

@ -0,0 +1,6 @@
# $NetBSD: Makefile,v 1.1 1998/03/15 01:13:25 lukem Exp $
PROG= bootpef
MAN= bootpef.8
.include <bsd.prog.mk>

View File

@ -0,0 +1,6 @@
# $NetBSD: Makefile,v 1.1 1998/03/15 01:13:25 lukem Exp $
PROG= bootpgw
NOMAN=
.include <bsd.prog.mk>

View File

@ -0,0 +1,7 @@
# $NetBSD: Makefile,v 1.1 1998/03/15 01:13:25 lukem Exp $
PROG= bootptest
SRCS= bootptest.c print-bootp.c getether.c
MAN= bootptest.8
.include <bsd.prog.mk>

View File

@ -0,0 +1,14 @@
# $NetBSD: Makefile,v 1.1 1998/03/15 01:13:25 lukem Exp $
LIB= common
SRCS= dovend.c dumptab.c getif.c hash.c hwaddr.c lookup.c readfile.c \
report.c tzone.c
CPPFLAGS+= -DETC_ETHERS -DSYSLOG -DDEBUG
NOPROFILE= noprofile
NOPIC= nopic
# only needed during build
libinstall::
.include <bsd.lib.mk>