summaryrefslogtreecommitdiff
path: root/lib/libkadm5srv
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2003-08-01 17:03:41 +0000
committerlukem <lukem@NetBSD.org>2003-08-01 17:03:41 +0000
commita93ea220fcb3e34cdfdcd4d7a5d391e0b2b4f2ba (patch)
treec9adfc000f1b3f310cf2f812f02823dbff7766ca /lib/libkadm5srv
parent5aa077f5cfe13c86bb3596f0e709337147ffc49c (diff)
Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES. This is a change of behaviour. If a Makefile wants the clean semantics it must specifically append to CLEANFILES. Resolves PR toolchain/5204. * To recap: .d (depend) files are generated for all files in SRCS and DPSRCS that have a suffix of: .c .m .s .S .C .cc .cpp .cxx * If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES * Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d depend upon ${DPSRCS} * Deprecate the (short lived) DEPENDSRCS Update the various Makefiles to these new semantics; generally either adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing specific .o dependencies with DPSRCS entries. Tested with "make -j 8 distribution" and "make distribution".
Diffstat (limited to 'lib/libkadm5srv')
-rw-r--r--lib/libkadm5srv/Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/libkadm5srv/Makefile b/lib/libkadm5srv/Makefile
index 274d1906c69..8f92daeba40 100644
--- a/lib/libkadm5srv/Makefile
+++ b/lib/libkadm5srv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2003/07/29 01:45:33 lukem Exp $
+# $NetBSD: Makefile,v 1.22 2003/08/01 17:03:58 lukem Exp $
NOLINT= # defined
@@ -22,6 +22,8 @@ kadm5_err.c kadm5_err.h: kadm5_err.et ${TOOL_COMPILE_ET}
${TOOL_COMPILE_ET} ${DIST}/heimdal/lib/kadm5/kadm5_err.et
ERR_FILES= kadm5_err.c
+DPSRCS+= kadm5_err.h
+CLEANFILES+= kadm5_err.h kadm5_err.c
SRCS = \
acl.c \
@@ -87,10 +89,4 @@ CPPFLAGS+= -I. \
CPPFLAGS+= -DNO_DLOPEN
.endif
-${SRCS:.c=.o}: kadm5_err.h
-
-CLEANFILES= kadm5_err.h kadm5_err.c
-
.include <bsd.lib.mk>
-
-${DEPENDSRCS}: kadm5_err.h