Attempt to fix the problem with -j builds, and du-uglify the asm code

generation and assembly targets.

Help from:	bde, obrien
This commit is contained in:
Kris Kennaway 2001-03-14 10:10:11 +00:00
parent 0916708e8f
commit 50c83208db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74243

View File

@ -380,16 +380,12 @@ SYMLINKS+= lib${LIB}_p.a ${LIBDIR}/libdes_p.a
.include <bsd.lib.mk>
.if !defined(NOPERL) && ${MACHINE_ARCH} == "i386"
.SUFFIXES: .o .pl
.SUFFIXES: .po .pl
.SUFFIXES: .So .pl
.pl.o:
perl -I${PERLPATH} $(.ALLSRC) elf ${CPUTYPE:Mi386:S/i//} > $(.PREFIX).pl.s ; ${AS} ${AFLAGS} $(.PREFIX).pl.s -o $(.TARGET)
CLEANFILES+= ${SRCS:M*.pl:S/.pl$/.cmt/} ${SRCS:M*.pl:S/.pl$/.s/}
.SUFFIXES: .pl .cmt
.pl.cmt:
perl -I${PERLPATH} ${.ALLSRC} elf ${CPUTYPE:Mi386:S/i//} > ${.TARGET}
.pl.po:
perl -I${PERLPATH} $(.ALLSRC) elf ${CPUTYPE:Mi386:S/i//} > $(.PREFIX).pl.s ; ${AS} ${AFLAGS} $(.PREFIX).pl.s -o $(.TARGET)
.pl.So:
perl -I${PERLPATH} $(.ALLSRC) elf ${CPUTYPE:Mi386:S/i//} > $(.PREFIX).pl.s ; ${AS} ${AFLAGS} $(.PREFIX).pl.s -o $(.TARGET)
.cmt.s:
tr -d "'" < ${.ALLSRC} > ${.TARGET}
.endif