- Use the standard .y and .l transformation rules -- this fixes

the usual parallel make race in custom .y rules.

- Fixed some style bugs.

- Removed -v from YFLAGS.

Prodded by:     bde
Reviewed by:    bde, njl
This commit is contained in:
Ruslan Ermilov 2004-01-13 20:53:56 +00:00
parent 13a7f14fb8
commit 76b0ae588c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124495

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PROG= iasl
SRCS+= aslcompiler.y.h aslcompilerparse.c aslcompilerlex.c \
SRCS= aslcompiler.y.h aslcompilerlex.l aslcompilerparse.y \
aslanalyze.c aslcodegen.c \
aslcompile.c aslerror.c aslfiles.c asllength.c \
asllisting.c aslload.c asllookup.c aslmain.c \
@ -29,25 +29,20 @@ SRCS+= dbfileio.c dmbuffer.c dmnames.c dmopcode.c dmobject.c \
MAN= iasl.8
CFLAGS+= -D_ACPI_ASL_COMPILER -I.
YFLAGS+= -v -d -pAslCompiler
LFLAGS+= -i
.if $(YACC) == "bison"
YFLAGS+= -y
.else
CFLAGS+= -D_USE_BERKELEY_YACC
.endif
LFLAGS= -i -PAslCompiler
YFLAGS= -d -pAslCompiler
CLEANFILES= y.output y.tab.c y.tab.h aslcompiler.y.h \
aslcompilerparse.c aslcompilerlex.c
CLEANFILES= aslcompiler.y.h aslcompilerlex.l aslcompilerparse.y
aslcompilerparse.c aslcompiler.y.h: aslcompiler.y
${YACC} ${YFLAGS} ${ACPICA_DIR}/compiler/aslcompiler.y
cp y.tab.c aslcompilerparse.c
cp y.tab.h aslcompiler.y.h
aslcompiler.y.h: aslcompilerparse.h
cat ${.ALLSRC} > ${.TARGET}
aslcompilerlex.c: aslcompiler.l
${LEX} ${LFLAGS} -PAslCompiler -oaslcompilerlex.c \
${ACPICA_DIR}/compiler/aslcompiler.l
aslcompilerlex.l: aslcompiler.l
cat ${.ALLSRC} > ${.TARGET}
aslcompilerparse.y: aslcompiler.y
cat ${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>