mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
fix Makefile races
This commit is contained in:
parent
57448823d0
commit
04ab044ae0
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.13 2007/10/18 18:20:20 deraadt Exp $
|
||||
# $OpenBSD: Makefile,v 1.14 2008/01/29 00:29:34 espie Exp $
|
||||
|
||||
KRBDEPTH=../..
|
||||
.include <${.CURDIR}/../../Makefile.inc>
|
||||
@ -25,6 +25,15 @@ SRCS+= ${PRINTVER}
|
||||
slc: slc-gram.o slc-lex.o ${PRINTVER}
|
||||
$(CC) -o slc $> -lkrb5 -lcrypto
|
||||
|
||||
slc-lex.o: y.tab.h
|
||||
y.tab.h slc-gram.o: stamp_grammar
|
||||
|
||||
stamp_grammar:
|
||||
${YACC} -d ${KRB5SRC}/lib/sl/slc-gram.y
|
||||
$(CC) -c ${CFLAGS} -o slc-gram.o y.tab.c
|
||||
rm -f y.tab.c
|
||||
touch $@
|
||||
|
||||
SLC= slc
|
||||
|
||||
ktutil: ktutil-commands.h
|
||||
@ -39,6 +48,6 @@ LDADD+= -lreadline -lcurses -lkadm5clnt -lkrb5 \
|
||||
-lcrypto -ldes
|
||||
|
||||
CLEANFILES+= ktutil-commands.c slc slc-lex.o \
|
||||
ktutil-commands.h slc-gram.o
|
||||
ktutil-commands.h slc-gram.o stamp_grammar
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -30,8 +30,8 @@ CFLAGS += -I${AFSSRC}/lib/ko
|
||||
sysname.c: gensysname
|
||||
./gensysname -c > sysname.c
|
||||
|
||||
gensysname.o: vldb.h lwp.h
|
||||
gensysname: gensysname.o getarg.o strupr.o get_window_size.o
|
||||
${HOSTCC} ${CFLAGS} -o gensysname gensysname.o getarg.o strupr.o get_window_size.o
|
||||
|
||||
CLEANFILES+= gensysname.o agetarg.o
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user