Don't use the FreeBSD misfeature DPSRCS or give explicit dependencies

on generated headers.  Just put generated headers in SRCS so that
bsd.*.mk can generate better dependencies.
This commit is contained in:
Bruce Evans 1998-03-06 07:00:28 +00:00
parent 987afe2a2f
commit 3f9035b74a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34082
5 changed files with 7 additions and 18 deletions

View File

@ -11,17 +11,15 @@ SRCS= alloc.c hack.Decl.c hack.apply.c hack.bones.c hack.c hack.cmd.c \
hack.search.c hack.shk.c hack.shknam.c hack.steal.c hack.termcap.c \
hack.timeout.c hack.topl.c hack.track.c hack.trap.c hack.tty.c \
hack.u_init.c hack.unix.c hack.vault.c hack.version.c hack.wield.c \
hack.wizard.c hack.worm.c hack.worn.c hack.zap.c rnd.c
hack.wizard.c hack.worm.c hack.worn.c hack.zap.c rnd.c \
hack.onames.h
MAN6= hack.6
DPADD= ${LIBTERMCAP} ${LIBCOMPAT}
LDADD= -ltermcap -lcompat
CFLAGS+= -fwritable-strings -I${.CURDIR} -I.
HIDEGAME=hidegame
DPSRCS+= hack.onames.h
CLEANFILES+= hack.onames.h makedefs
.depend: hack.onames.h
hack.onames.h: makedefs def.objects.h
./makedefs ${.CURDIR}/def.objects.h > hack.onames.h

View File

@ -8,7 +8,7 @@ SRCS= afs_ops.c am_ops.c clock.c util.c xutil.c \
info_ndbm.c info_passwd.c info_nis.c \
info_union.c map.c srvr_afs.c srvr_nfs.c \
mntfs.c misc_rpc.c mount_fs.c mount_xdr.c \
mtab.c mtab_bsd.c nfs_ops.c nfs_prot_svc.c \
mtab.c mtab_bsd.c nfs_ops.c nfs_prot.h nfs_prot_svc.c \
nfs_start.c nfs_subr.c nfs_prot_xdr.c opts.c \
pfs_ops.c rpc_fwd.c sched.c sfs_ops.c amq_svc.c \
amq_subr.c umount_fs.c host_ops.c nfsx_ops.c \
@ -27,7 +27,6 @@ CLEANFILES+=mount.h mount_xdr.c nfs_prot.h nfs_prot_xdr.c nfs_prot_svc.c
RPCCOM = rpcgen
MOUNT_X= ${DESTDIR}/usr/include/rpcsvc/mount.x
NFS_PROT_X= ${DESTDIR}/usr/include/rpcsvc/nfs_prot.x
DPSRCS= nfs_prot.h
vers.${PROG}.c: ${SRCS:.c=.o}
@d=${.CURDIR}/ sh ${.CURDIR}/../config/newvers.sh ${PROG} ${MACHINE} ${OS}
@ -40,8 +39,6 @@ mount.h: ${MOUNT_X}
mount_xdr.c: mount.h ${MOUNT_X}
${RPCCOM} -c -DWANT_NFS3 ${MOUNT_X} -o ${.TARGET}
beforedepend: nfs_prot.h
nfs_prot.h: ${NFS_PROT_X}
${RPCCOM} -h ${NFS_PROT_X} -o ${.TARGET}

View File

@ -2,7 +2,7 @@
PROG = amq
MAN8 = amq.8
SRCS = amq.c amq_clnt.c amq_xdr.c misc_rpc.c
SRCS = amq.c amq_clnt.c amq_xdr.c misc_rpc.c nfs_prot.h
CFLAGS+=-I${.OBJDIR}
CFLAGS+=-I${.CURDIR}/../include
CFLAGS+=-I${.CURDIR}/../rpcx
@ -14,12 +14,9 @@ CFLAGS+=-DOS_HDR=\"os-bsd44.h\"
CLEANFILES+=nfs_prot.h
RPCCOM = rpcgen
NFS_PROT_X= ${DESTDIR}/usr/include/rpcsvc/nfs_prot.x
DPSRCS= nfs_prot.h
nfs_prot.h: ${NFS_PROT_X}
${RPCCOM} -h ${NFS_PROT_X} -o ${.TARGET}
${OBJS} beforedepend: nfs_prot.h
.include "../../Makefile.inc"
.include <bsd.prog.mk>

View File

@ -1,6 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/28/93
PROG= mk-amd-map
SRCS= mk-amd-map.c nfs_prot.h
CFLAGS+=-I${.OBJDIR}
CFLAGS+=-I${.CURDIR}/../include
CFLAGS+=-I${.CURDIR}/../rpcx
@ -10,12 +11,9 @@ MAN8= mk-amd-map.8
CLEANFILES+=nfs_prot.h
RPCCOM = rpcgen
NFS_PROT_X= ${DESTDIR}/usr/include/rpcsvc/nfs_prot.x
DPSRCS= nfs_prot.h
nfs_prot.h: ${NFS_PROT_X}
${RPCCOM} -h ${NFS_PROT_X} -o ${.TARGET}
${OBJS} beforedepend: nfs_prot.h
.include "../../Makefile.inc"
.include <bsd.prog.mk>

View File

@ -1,9 +1,8 @@
# $Id: Makefile,v 1.5 1997/02/22 16:12:51 peter Exp $
# $Id: Makefile,v 1.6 1997/05/23 08:43:27 asami Exp $
PROG = rpc.statd
SRCS = file.c sm_inter_svc.c statd.c procs.c
SRCS = file.c sm_inter_svc.c sm_inter.h statd.c procs.c
MAN8 = rpc.statd.8
DPSRCS+= sm_inter.h
DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc