summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2003-07-27 13:17:31 +0000
committermarkm <markm@FreeBSD.org>2003-07-27 13:17:31 +0000
commit0d4044b1e668c1fbed194bf8172757d4d61e9fdb (patch)
treee3c0cf0a9ca863205d7b95fa7f4b30787bf796b7
parent84b3f90e1da5caa26a5cef8dc5bdee4f23476337 (diff)
downloadFreeBSD-src-0d4044b1e668c1fbed194bf8172757d4d61e9fdb.zip
FreeBSD-src-0d4044b1e668c1fbed194bf8172757d4d61e9fdb.tar.gz
Try a lot harder to get dependancies right. This involves some ugly
looking ${.OBJDIR} work that has the up-side of actually working in upgrade and make -jN cases. This needs to be revisited further, and it is conceivable that the ${.OBJDIR} stuff can be simplified, but the sheer number of edge cases and other causes make this Hard(tm). For now, this works.
-rw-r--r--kerberos5/lib/libasn1/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/kerberos5/lib/libasn1/Makefile b/kerberos5/lib/libasn1/Makefile
index 5945327..6c4fa65 100644
--- a/kerberos5/lib/libasn1/Makefile
+++ b/kerberos5/lib/libasn1/Makefile
@@ -106,26 +106,30 @@ asn1_compile: \
gen_length.c \
hash.c \
emalloc.c \
- lex.o \
main.c \
- parse.o \
symbol.c \
getarg.c \
warnerr.c \
+ ${.OBJDIR}/lex.o \
+ ${.OBJDIR}/parse.o \
${.OBJDIR}/print_version.o \
get_window_size.c \
strupr.c
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.OODATE} ${LDADD}
+.ORDER: ${.OBJDIR}/roken.h ${.OBJDIR}/parse.c ${.OBJDIR}/parse.h ${.OBJDIR}/lex.c
+
${.OBJDIR}/parse.o: ${.OBJDIR}/parse.c ${.OBJDIR}/roken.h
-.ORDER: ${.OBJDIR}/parse.c ${.OBJDIR}/parse.h
+${.OBJDIR}/lex.o: ${.OBJDIR}/lex.c ${.OBJDIR}/parse.h ${.OBJDIR}/roken.h
+
${.OBJDIR}/parse.h ${.OBJDIR}/parse.c: parse.y
${YACC} -d ${.OODATE}
cp y.tab.c parse.c
cp y.tab.h parse.h
-lex.o: lex.l ${.OBJDIR}/parse.h ${.OBJDIR}/roken.h
+${.OBJDIR}/lex.c: lex.l
+ ${LEX} -t ${LFLAGS} ${.OODATE} > ${.TARGET}
${.OBJDIR}/print_version.o: ${.OBJDIR}/print_version.h print_version.c \
${.OBJDIR}/roken.h
OpenPOWER on IntegriCloud