From 76b0ae588c2dc403d0f6a144b843478fb7ff8f38 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 13 Jan 2004 20:53:56 +0000 Subject: [PATCH] - 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 --- usr.sbin/acpi/iasl/Makefile | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/usr.sbin/acpi/iasl/Makefile b/usr.sbin/acpi/iasl/Makefile index 10a60c352e02..afe0d81cd5ca 100644 --- a/usr.sbin/acpi/iasl/Makefile +++ b/usr.sbin/acpi/iasl/Makefile @@ -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