Don't use beforedepend; just put generated headers in SRCS. ldgram.h

was already put in SRCS by the general yacc rules.  Putting ldemul-list.h
in SRCS fixes races in `make -jN' when .depend hasn't been made.

Don't forget to clean ldemul-list.h.
This commit is contained in:
Bruce Evans 1998-06-04 06:26:23 +00:00
parent ad6833e475
commit c35f4af578

View File

@ -1,5 +1,5 @@
#
# $Id: Makefile,v 1.4 1998/05/11 09:33:55 jb Exp $
# $Id: Makefile,v 1.5 1998/06/03 18:00:49 peter Exp $
#
.include "../Makefile.inc0"
@ -8,7 +8,7 @@
PROG= ld
SCRIPTDIR= /usr/libdata/ldscripts
SRCS+= ldcref.c ldctor.c ldemul.c ldexp.c ldfile.c \
SRCS+= ldcref.c ldctor.c ldemul.c ldemul-list.h ldexp.c ldfile.c \
ldgram.y ldlang.c ldlex.l ldmain.c ldmisc.c \
ldver.c ldwrite.c lexsup.c mri.c
CFLAGS+= -DSCRIPTDIR=\"${DESTDIR}/usr/libdata\"
@ -18,8 +18,7 @@ LDADD+= -L${RELTOP}/libiberty -liberty
DPADD+= ${RELTOP}/libbfd/libbfd.a
DPADD+= ${RELTOP}/libiberty/libiberty.a
CLEANDIRS+= ldscripts
beforedepend: ldemul-list.h ldgram.h
CLEANFILES+= ldemul-list.h
EMXFR=
EMLST=