summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-01-13 20:53:56 +0000
committerru <ru@FreeBSD.org>2004-01-13 20:53:56 +0000
commit5af89f4e3ac818a266959fe96683d2a1e985ee9a (patch)
treebab8132bdbd5bfc8eb895ab669a49c737031640b /usr.sbin/acpi
parent745dcfe7b6cb26cefa42c29700235957ffb48dd2 (diff)
downloadFreeBSD-src-5af89f4e3ac818a266959fe96683d2a1e985ee9a.zip
FreeBSD-src-5af89f4e3ac818a266959fe96683d2a1e985ee9a.tar.gz
- 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
Diffstat (limited to 'usr.sbin/acpi')
-rw-r--r--usr.sbin/acpi/iasl/Makefile27
1 files changed, 11 insertions, 16 deletions
diff --git a/usr.sbin/acpi/iasl/Makefile b/usr.sbin/acpi/iasl/Makefile
index 10a60c3..afe0d81 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 <bsd.prog.mk>
OpenPOWER on IntegriCloud