head	1.29;
access;
symbols
	netbsd-11-0-RC4:1.28
	netbsd-11-0-RC3:1.28
	netbsd-11-0-RC2:1.28
	netbsd-11-0-RC1:1.28
	perseant-exfatfs-base-20250801:1.28
	netbsd-11:1.28.0.6
	netbsd-11-base:1.28
	netbsd-10-1-RELEASE:1.28
	perseant-exfatfs-base-20240630:1.28
	perseant-exfatfs:1.28.0.4
	perseant-exfatfs-base:1.28
	netbsd-8-3-RELEASE:1.14
	netbsd-9-4-RELEASE:1.24
	netbsd-10-0-RELEASE:1.28
	netbsd-10-0-RC6:1.28
	netbsd-10-0-RC5:1.28
	netbsd-10-0-RC4:1.28
	netbsd-10-0-RC3:1.28
	netbsd-10-0-RC2:1.28
	netbsd-10-0-RC1:1.28
	netbsd-10:1.28.0.2
	netbsd-10-base:1.28
	netbsd-9-3-RELEASE:1.24
	cjep_sun2x-base1:1.27
	cjep_sun2x:1.27.0.4
	cjep_sun2x-base:1.27
	cjep_staticlib_x-base1:1.27
	netbsd-9-2-RELEASE:1.24
	cjep_staticlib_x:1.27.0.2
	cjep_staticlib_x-base:1.27
	netbsd-9-1-RELEASE:1.24
	phil-wifi-20200421:1.25
	phil-wifi-20200411:1.25
	is-mlppp:1.25.0.2
	is-mlppp-base:1.25
	phil-wifi-20200406:1.25
	netbsd-8-2-RELEASE:1.14
	netbsd-9-0-RELEASE:1.24
	netbsd-9-0-RC2:1.24
	netbsd-9-0-RC1:1.24
	phil-wifi-20191119:1.25
	netbsd-9:1.24.0.2
	netbsd-9-base:1.24
	phil-wifi-20190609:1.24
	netbsd-8-1-RELEASE:1.14
	netbsd-8-1-RC1:1.14
	pgoyette-compat-merge-20190127:1.17.2.5
	pgoyette-compat-20190127:1.24
	pgoyette-compat-20190118:1.24
	pgoyette-compat-1226:1.22
	pgoyette-compat-1126:1.22
	pgoyette-compat-1020:1.22
	pgoyette-compat-0930:1.21
	pgoyette-compat-0906:1.21
	netbsd-7-2-RELEASE:1.7
	pgoyette-compat-0728:1.21
	netbsd-8-0-RELEASE:1.14
	phil-wifi:1.21.0.2
	phil-wifi-base:1.21
	pgoyette-compat-0625:1.19
	netbsd-8-0-RC2:1.14
	pgoyette-compat-0521:1.18
	pgoyette-compat-0502:1.18
	pgoyette-compat-0422:1.18
	netbsd-8-0-RC1:1.14
	pgoyette-compat-0415:1.18
	pgoyette-compat-0407:1.17
	pgoyette-compat-0330:1.17
	pgoyette-compat-0322:1.17
	pgoyette-compat-0315:1.17
	netbsd-7-1-2-RELEASE:1.7
	pgoyette-compat:1.17.0.2
	pgoyette-compat-base:1.17
	netbsd-7-1-1-RELEASE:1.7
	matt-nb8-mediatek:1.14.0.6
	matt-nb8-mediatek-base:1.14
	perseant-stdc-iso10646:1.14.0.4
	perseant-stdc-iso10646-base:1.14
	netbsd-8:1.14.0.2
	netbsd-8-base:1.14
	prg-localcount2-base3:1.14
	prg-localcount2-base2:1.14
	prg-localcount2-base1:1.14
	prg-localcount2:1.13.0.4
	prg-localcount2-base:1.13
	pgoyette-localcount-20170426:1.13
	bouyer-socketcan-base1:1.13
	pgoyette-localcount-20170320:1.13
	netbsd-7-1:1.7.0.10
	netbsd-7-1-RELEASE:1.7
	netbsd-7-1-RC2:1.7
	netbsd-7-nhusb-base-20170116:1.7
	bouyer-socketcan:1.13.0.2
	bouyer-socketcan-base:1.13
	pgoyette-localcount-20170107:1.13
	netbsd-7-1-RC1:1.7
	pgoyette-localcount-20161104:1.12
	netbsd-7-0-2-RELEASE:1.7
	localcount-20160914:1.12
	netbsd-7-nhusb:1.7.0.8
	netbsd-7-nhusb-base:1.7
	pgoyette-localcount-20160806:1.12
	pgoyette-localcount-20160726:1.12
	pgoyette-localcount:1.12.0.2
	pgoyette-localcount-base:1.12
	netbsd-7-0-1-RELEASE:1.7
	netbsd-7-0:1.7.0.6
	netbsd-7-0-RELEASE:1.7
	netbsd-7-0-RC3:1.7
	netbsd-7-0-RC2:1.7
	netbsd-7-0-RC1:1.7
	netbsd-6-0-6-RELEASE:1.4.4.1
	netbsd-6-1-5-RELEASE:1.4.4.1
	netbsd-7:1.7.0.4
	netbsd-7-base:1.7
	yamt-pagecache-base9:1.7
	yamt-pagecache-tag8:1.4.2.1
	netbsd-6-1-4-RELEASE:1.4.4.1
	netbsd-6-0-5-RELEASE:1.4.4.1
	tls-earlyentropy:1.7.0.2
	tls-earlyentropy-base:1.7
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.7
	riastradh-drm2-base3:1.7
	netbsd-6-1-3-RELEASE:1.4.4.1
	netbsd-6-0-4-RELEASE:1.4.4.1
	netbsd-6-1-2-RELEASE:1.4.4.1
	netbsd-6-0-3-RELEASE:1.4.4.1
	netbsd-6-1-1-RELEASE:1.4.4.1
	riastradh-drm2-base2:1.5
	riastradh-drm2-base1:1.5
	riastradh-drm2:1.5.0.4
	riastradh-drm2-base:1.5
	netbsd-6-1:1.4.4.1.0.6
	netbsd-6-0-2-RELEASE:1.4.4.1
	netbsd-6-1-RELEASE:1.4.4.1
	khorben-n900:1.5.0.8
	netbsd-6-1-RC4:1.4.4.1
	netbsd-6-1-RC3:1.4.4.1
	agc-symver:1.5.0.6
	agc-symver-base:1.5
	netbsd-6-1-RC2:1.4.4.1
	netbsd-6-1-RC1:1.4.4.1
	yamt-pagecache-base8:1.5
	netbsd-6-0-1-RELEASE:1.4.4.1
	yamt-pagecache-base7:1.5
	matt-nb6-plus-nbase:1.4.4.1
	yamt-pagecache-base6:1.5
	netbsd-6-0:1.4.4.1.0.4
	netbsd-6-0-RELEASE:1.4.4.1
	netbsd-6-0-RC2:1.4.4.1
	tls-maxphys:1.5.0.2
	tls-maxphys-base:1.7
	matt-nb6-plus:1.4.4.1.0.2
	matt-nb6-plus-base:1.4.4.1
	netbsd-6-0-RC1:1.4.4.1
	yamt-pagecache-base5:1.5
	yamt-pagecache-base4:1.5
	netbsd-6:1.4.0.4
	netbsd-6-base:1.4
	yamt-pagecache-base3:1.4
	yamt-pagecache-base2:1.4
	yamt-pagecache:1.4.0.2
	yamt-pagecache-base:1.4
	cherry-xenmp:1.3.0.2
	cherry-xenmp-base:1.3
	bouyer-quota2-base:1.3
	bouyer-quota2:1.1.0.2
	bouyer-quota2-nbase:1.3;
locks; strict;
comment	@# @;


1.29
date	2025.08.28.15.46.22;	author christos;	state Exp;
branches;
next	1.28;
commitid	WAmGwy03YW0XOv8G;

1.28
date	2022.12.10.17.41.05;	author christos;	state Exp;
branches;
next	1.27;
commitid	BZk1xeKXUX9il25E;

1.27
date	2020.09.12.15.25.42;	author jmcneill;	state Exp;
branches;
next	1.26;
commitid	Ck03AEa1BqzZULnC;

1.26
date	2020.09.11.14.06.00;	author jmcneill;	state Exp;
branches;
next	1.25;
commitid	1CUewrFGeyCzvDnC;

1.25
date	2019.10.15.16.14.49;	author christos;	state Exp;
branches;
next	1.24;
commitid	p2qSeLlnyFqvTYGB;

1.24
date	2019.01.10.10.04.43;	author martin;	state Exp;
branches;
next	1.23;
commitid	trXrdXG9kl4dMd7B;

1.23
date	2019.01.09.09.27.29;	author martin;	state Exp;
branches;
next	1.22;
commitid	DonhvfbV2NPxB57B;

1.22
date	2018.10.14.13.36.33;	author jmcneill;	state Exp;
branches;
next	1.21;
commitid	NNgNvClml8KcMVVA;

1.21
date	2018.06.28.07.56.22;	author maya;	state Exp;
branches
	1.21.2.1;
next	1.20;
commitid	AUmFKysLAbRBm1IA;

1.20
date	2018.06.27.16.13.43;	author maya;	state Exp;
branches;
next	1.19;
commitid	uNGicd3ZRbfj9WHA;

1.19
date	2018.05.31.09.08.25;	author mrg;	state Exp;
branches;
next	1.18;
commitid	sSsq04MlIIcxFqEA;

1.18
date	2018.04.07.15.49.50;	author christos;	state Exp;
branches;
next	1.17;
commitid	wLyfEuXWZi1QCwxA;

1.17
date	2017.11.12.03.02.15;	author christos;	state Exp;
branches
	1.17.2.1;
next	1.16;
commitid	qyv54Q6AH2dy4HeA;

1.16
date	2017.10.10.19.17.57;	author christos;	state Exp;
branches;
next	1.15;
commitid	e45SY2WJIpIIwxaA;

1.15
date	2017.09.15.17.17.25;	author christos;	state Exp;
branches;
next	1.14;
commitid	9iO4ixEU0wZvFj7A;

1.14
date	2017.04.30.23.18.07;	author christos;	state Exp;
branches;
next	1.13;
commitid	NynMEu3fEx1l6CPz;

1.13
date	2016.11.11.21.09.21;	author christos;	state Exp;
branches
	1.13.4.1;
next	1.12;
commitid	C028ITjY3miWQKtz;

1.12
date	2016.05.04.19.28.15;	author christos;	state Exp;
branches
	1.12.2.1;
next	1.11;
commitid	8rSaU6BmG5gVqc5z;

1.11
date	2016.01.09.21.13.51;	author christos;	state Exp;
branches;
next	1.10;
commitid	fZfNRLn9aN6lKiQy;

1.10
date	2015.08.18.10.38.31;	author christos;	state Exp;
branches;
next	1.9;
commitid	gYGj4oId4pnjRJxy;

1.9
date	2015.04.13.17.24.24;	author christos;	state Exp;
branches;
next	1.8;
commitid	tKkPS8my2CKBbshy;

1.8
date	2014.10.25.21.01.12;	author christos;	state Exp;
branches;
next	1.7;
commitid	V5opOoXsyrUQQCVx;

1.7
date	2013.12.28.16.03.51;	author christos;	state Exp;
branches;
next	1.6;
commitid	0fSEvWBfXKGFSUix;

1.6
date	2013.12.27.21.33.46;	author christos;	state Exp;
branches;
next	1.5;
commitid	Bu1AIKppRgqSJOix;

1.5
date	2012.02.19.05.06.41;	author christos;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2011.06.28.09.11.33;	author jruoho;	state Exp;
branches
	1.4.2.1
	1.4.4.1;
next	1.3;

1.3
date	2011.02.18.17.34.22;	author jruoho;	state Exp;
branches;
next	1.2;

1.2
date	2011.02.17.18.26.20;	author jruoho;	state Exp;
branches;
next	1.1;

1.1
date	2011.02.17.07.48.16;	author jruoho;	state Exp;
branches
	1.1.2.1;
next	;

1.21.2.1
date	2019.06.10.21.42.47;	author christos;	state Exp;
branches;
next	1.21.2.2;
commitid	jtc8rnCzWiEEHGqB;

1.21.2.2
date	2020.04.13.07.45.48;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.17.2.1
date	2018.04.16.01.57.33;	author pgoyette;	state Exp;
branches;
next	1.17.2.2;
commitid	qk3nktk0szmTIByA;

1.17.2.2
date	2018.06.25.07.25.12;	author pgoyette;	state Exp;
branches;
next	1.17.2.3;
commitid	8PtAu9af7VvhiDHA;

1.17.2.3
date	2018.07.28.04.33.03;	author pgoyette;	state Exp;
branches;
next	1.17.2.4;
commitid	1UP1xAIUxv1ZgRLA;

1.17.2.4
date	2018.10.20.06.58.19;	author pgoyette;	state Exp;
branches;
next	1.17.2.5;
commitid	mTSoqZEZ4arHnFWA;

1.17.2.5
date	2019.01.18.08.48.35;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.13.4.1
date	2017.05.02.03.19.15;	author pgoyette;	state Exp;
branches;
next	;
commitid	oFKELrgrBgUNoLPz;

1.12.2.1
date	2017.01.07.08.53.48;	author pgoyette;	state Exp;
branches;
next	;
commitid	uEL0C1YuiJrlV0Bz;

1.5.2.1
date	2014.08.19.23.45.52;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.4.2.1
date	2012.04.17.00.02.59;	author yamt;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2014.05.22.15.40.38;	author yamt;	state Exp;
branches;
next	;
commitid	n3H6E3d6pbPN5yBx;

1.4.4.1
date	2012.02.24.17.18.58;	author riz;	state Exp;
branches;
next	;

1.1.2.1
date	2011.02.17.07.48.16;	author bouyer;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2011.02.17.11.57.26;	author bouyer;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2011.02.18.19.05.45;	author bouyer;	state Exp;
branches;
next	;


desc
@@


1.29
log
@explain and disable bogus warning
@
text
@# $NetBSD: Makefile,v 1.28 2022/12/10 17:41:05 christos Exp $

.include <bsd.init.mk>

.if ${HAVE_ACPI:Uno} == "yes"
PROG=	iasl
.endif
BINDIR=	/usr/bin
MAN=	iasl.8
WARNS=	0
TOPDIR=	${NETBSDSRCDIR}/sys/external/bsd/acpica/dist/compiler

.include <bsd.own.mk>

CPPFLAGS+=	-I${TOPDIR}/../include -I${TOPDIR} -I.
CPPFLAGS+=	-DACPI_ASL_COMPILER -DACPI_USE_ALTERNATE_TIMEOUT
.if ${MKREPRO:Uno} == "yes"
CPPFLAGS+=	-DACPI_REPRO
.endif
LDADD+=		-ll -ly
DPADD+=		${LIBL} ${LIBY}

DPSRCS= aslcompilerparse.y aslcompilerlex.c aslcompilerparse.c \
	dtparserparse.c dtparserlex.c prparserparse.c prparserlex.c \
	dtcompilerparserparse.c dtcompilerparserlex.c

.PATH:	${TOPDIR}
SRCS+= \
	adfile.c \
	aslallocate.c \
	aslanalyze.c \
	aslascii.c \
	aslbtypes.c \
	aslcache.c \
	aslcodegen.c \
	aslcompile.c \
	aslcompilerlex.c \
	aslcompilerparse.c \
	asldebug.c \
	aslerror.c \
	aslexternal.c \
	aslfileio.c \
	aslfiles.c \
	aslfold.c \
	aslhelp.c \
	aslhex.c \
	asllength.c \
	asllisting.c \
	asllistsup.c \
	aslload.c \
	asllookup.c \
	aslmain.c \
	aslmap.c \
	aslmapenter.c \
	aslmapoutput.c \
	aslmaputils.c \
	aslmessages.c \
	aslmethod.c \
	aslnamesp.c \
	asloffset.c \
	aslopcodes.c \
	asloperands.c \
	aslopt.c \
	asloptions.c \
	aslparseop.c \
	aslpld.c \
	aslpredef.c \
	aslprepkg.c \
	aslprintf.c \
	aslprune.c \
	aslresource.c \
	aslrestype1.c \
	aslrestype1i.c \
	aslrestype2.c \
	aslrestype2d.c \
	aslrestype2e.c \
	aslrestype2q.c \
	aslrestype2s.c \
	aslrestype2w.c \
	aslstartup.c \
	aslstubs.c \
	asltransform.c \
	asltree.c \
	aslutils.c \
	asluuid.c \
	aslwalks.c \
	aslxref.c \
	aslxrefout.c \
	cvcompiler.c \
	cvdisasm.c \
	cvparser.c \
	dtcompile.c \
	dtexpress.c \
	dtfield.c \
	dtio.c \
	dtcompilerparserlex.c \
	dtcompilerparserparse.c \
	dtparserlex.c \
	dtparserparse.c \
	dtsubtable.c \
	dttable.c \
	dttable1.c \
	dttable2.c \
	dttemplate.c \
	dtutils.c \
	prexpress.c \
	prmacros.c \
	prparserlex.c \
	prparserparse.c \
	prscan.c \
	prutils.c

.PATH: ${TOPDIR}/../common
SRCS+= \
	acfileio.c \
	adisasm.c \
	adwalk.c \
	ahids.c \
	ahpredef.c \
	ahtable.c \
	ahuuids.c \
	cmfsize.c \
	dmextern.c \
	dmrestag.c \
	dmswitch.c \
	dmtable.c \
	dmtables.c \
	dmtbdump.c \
	dmtbdump1.c \
	dmtbdump2.c \
	dmtbdump3.c \
	dmtbinfo.c \
	dmtbinfo1.c \
	dmtbinfo2.c \
	dmtbinfo3.c \
	getopt.c

.PATH: ${TOPDIR}/../debugger
SRCS+=  dbfileio.c

.PATH: ${TOPDIR}/../disassembler
SRCS+= \
	dmbuffer.c \
	dmcstyle.c \
	dmdeferred.c \
	dmnames.c \
	dmopcode.c \
	dmresrc.c \
	dmresrcl.c \
	dmresrcl2.c \
	dmresrcs.c \
	dmutils.c \
	dmwalk.c

.PATH: ${TOPDIR}/../dispatcher
SRCS+= \
	dsargs.c \
	dscontrol.c \
	dsfield.c \
	dsobject.c \
	dsopcode.c \
	dspkginit.c \
	dsutils.c \
	dswexec.c \
	dswload.c \
	dswload2.c \
	dswscope.c \
	dswstate.c

.PATH: ${TOPDIR}/../executer
SRCS+= \
	exconvrt.c \
	excreate.c \
	exconcat.c \
	exdump.c \
	exmisc.c \
	exmutex.c \
	exnames.c \
	exoparg1.c \
	exoparg2.c \
	exoparg3.c \
	exoparg6.c \
	exprep.c \
	exregion.c \
	exresnte.c \
	exresolv.c \
	exresop.c \
	exstore.c \
	exstoren.c \
	exstorob.c \
	exsystem.c \
	exutils.c

.PATH: ${TOPDIR}/../parser
SRCS+= \
	psargs.c \
	psloop.c \
	psobject.c \
	psopcode.c \
	psopinfo.c \
	psparse.c \
	psscope.c \
	pstree.c \
	psutils.c \
	pswalk.c

.PATH: ${TOPDIR}/../tables
SRCS+=	\
	tbfadt.c \
	tbdata.c \
	tbinstal.c \
	tbprint.c \
	tbutils.c \
	tbxface.c \
	tbxfload.c

.PATH: ${TOPDIR}/../namespace
SRCS+= \
	nsaccess.c \
	nsalloc.c \
	nsdump.c \
	nsnames.c \
	nsobject.c \
	nsparse.c \
	nssearch.c \
	nsutils.c \
	nswalk.c \
	nsxfobj.c \

.PATH: ${TOPDIR}/../utilities
SRCS+= \
	utaddress.c \
	utalloc.c \
	utascii.c \
	utbuffer.c \
	utcache.c \
	utcksum.c \
	utcopy.c \
	utdebug.c \
	utdecode.c \
	utdelete.c \
	uterror.c \
	utexcep.c \
	utglobal.c \
	uthex.c \
	utinit.c \
	utlock.c \
	utmath.c \
	utmisc.c \
	utmutex.c \
	utnonansi.c \
	utobject.c \
	utosi.c \
	utownerid.c \
	utpredef.c \
	utresdecode.c \
	utresrc.c \
	utstate.c \
	utstring.c \
	utstrsuppt.c \
	utstrtoul64.c \
	utuuid.c \
	utxface.c \
	utxferror.c

#	utprint.c 

.PATH: ${TOPDIR}/../os_specific/service_layers
SRCS+=	osunixxf.c

YHEADER=	# Generate headers
YFLAGS+=-v	# Require debugging
LFLAGS+=-i	# Case insensitivive parser


# Prevent rules from firing.
asltypes.h: asltypes.y
	@@true
asltypes.c: asltypes.y
	@@true

aslparser.y: asltokens.y asltypes.y aslrules.y aslsupport.y

YPREFIX.aslcompilerparse.y=AslCompiler
aslcompilerparse.y: aslparser.y
	${TOOL_M4} -P -I${TOPDIR} ${.ALLSRC} > ${.TARGET}.tmp.${.MAKE.PID} \
	&& mv ${.TARGET}.tmp.${.MAKE.PID} ${.TARGET}

aslcompiler.y.h: aslcompilerparse.h
	ln -sf ${.ALLSRC} ${.TARGET}

LPREFIX.aslcompilerlex.l=AslCompiler
aslcompilerlex.l: ${TOPDIR}/aslcompiler.l
	ln -sf ${.ALLSRC} ${.TARGET}


YPREFIX.dtparserparse.y=DtParser
dtparserparse.y: ${TOPDIR}/dtparser.y
	ln -sf ${.ALLSRC} ${.TARGET}

dtparser.y.h: dtparserparse.h
	ln -sf ${.ALLSRC} ${.TARGET}

LPREFIX.dtparserlex.l=DtParser
dtparserlex.l: ${TOPDIR}/dtparser.l
	ln -sf ${.ALLSRC} ${.TARGET}

YPREFIX.dtcompilerparserparse.y=DtCompilerParser
YFLAGS.dtcompilerparserparse.y += -L
dtcompilerparserparse.y: ${TOPDIR}/dtcompilerparser.y
	ln -sf ${.ALLSRC} ${.TARGET}

dtcompilerparser.y.h: dtcompilerparserparse.h
	ln -sf ${.ALLSRC} ${.TARGET}

LPREFIX.dtcompilerparserlex.l=DtCompilerParser
LFLAGS.dtcompilerparserlex.l += --bison-locations
dtcompilerparserlex.l: ${TOPDIR}/dtcompilerparser.l
	ln -sf ${.ALLSRC} ${.TARGET}

YPREFIX.prparserparse.y=PrParser
prparserparse.y: ${TOPDIR}/prparser.y
	ln -sf ${.ALLSRC} ${.TARGET}

prparser.y.h: prparserparse.h
	ln -sf ${.ALLSRC} ${.TARGET}

LPREFIX.prparserlex.l=PrParser
prparserlex.l: ${TOPDIR}/prparser.l
	ln -sf ${.ALLSRC} ${.TARGET}

CLEANFILES+=	aslcompilerparse.y  aslcompilerparse.c			\
		aslcompilerparse.h					\
		aslcompiler.y.h aslcompilerparse.output		 	\
		aslcompilerlex.l aslcompilerlex.c			\
									\
		dtparserparse.y dtparserparse.c				\
		dtparserparse.h						\
		dtparserlex.l dtparserlex.c				\
		dtparser.y.h dtparserparse.output			\
									\
		dtcompilerparserparse.y dtcompilerparserparse.c		\
		dtcompilerparserparse.h					\
		dtcompilerparserlex.l dtcompilerparserlex.c		\
		dtcompilerparser.y.h dtcompilerparserparse.output	\
									\
		prparserparse.y prparserparse.c				\
		prparserparse.h						\
		prparserlex.l prparserlex.c				\
		prparser.y.h prparserparse.output			\
									\
		y.output y.tab.h

.include <bsd.prog.mk>

${__DPSRCS.d} ${OBJS}: prparser.y.h dtparser.y.h aslcompiler.y.h \
	dtcompilerparser.y.h

# ia64 compiler bug. acpi_table_header pointer is casted to ACPI_TABLE_RSDP
# both structures have a Signature member,
# sizeof(acpi_table_header->Signature) == 4
# sizeof(ACPI_TABLE_RSDP->Signature) == 8
# the compiler knows that it is 8 after the cast because a 
# __CTASSERT(sizeof(ACPI_CAST_PTR (ACPI_TABLE_RSDP, Table)->Signature) == 8);
# works, but then gets confused and thinks that we are trying to copy into 4.
.if ${MACHINE} == "ia64"
COPTS.dmtable.c += -Wno-error=stringop-overread
COPTS.tbprint.c += -Wno-error=stringop-overread
.endif
@


1.28
log
@new file
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2020/09/12 15:25:42 jmcneill Exp $
d358 12
@


1.27
log
@Add HAVE_ACPI and HAVE_UEFI flags to bsd.own.mk and use them to
conditionally include ACPI and UEFI bits instead of relying on adhoc
MACHINE_ARCH tests.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2020/09/11 14:06:00 jmcneill Exp $
d237 1
@


1.26
log
@Build acpi tools and iasl on aarch64eb, and fix set lists for MKDEBUG.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2019/10/15 16:14:49 christos Exp $
d3 3
a5 1
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || !empty(MACHINE_ARCH:Maarch64*))
@


1.25
log
@add new grammar file
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2019/01/10 10:04:43 martin Exp $
d3 1
a3 1
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "aarch64")
@


1.24
log
@Use the make pid when naming the temporary file to create aslcompilerparse.y,
so tow parallel make instances won't step on each others toe.
Pointed out by Christos.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2019/01/09 09:27:29 martin Exp $
d22 2
a23 1
	dtparserparse.c dtparserlex.c prparserparse.c prparserlex.c
d94 2
d305 12
d329 20
a348 15
CLEANFILES+=	aslcompilerparse.y  aslcompilerparse.c	\
		aslcompilerparse.h			\
		aslcompiler.y.h aslcompilerparse.output \
		aslcompilerlex.l aslcompilerlex.c	\
							\
		dtparserparse.y dtparserparse.c		\
		dtparserparse.h				\
		dtparserlex.l dtparserlex.c		\
		dtparser.y.h dtparserparse.output	\
							\
		prparserparse.y prparserparse.c		\
		prparserparse.h				\
		prparserlex.l prparserlex.c		\
		prparser.y.h prparserparse.output	\
							\
d353 2
a354 1
${__DPSRCS.d} ${OBJS}: prparser.y.h dtparser.y.h aslcompiler.y.h
@


1.23
log
@Make aslcompilerparse.y generation atomic to avoid parallel build races.
Solution suggested by mrg.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2018/10/14 13:36:33 jmcneill Exp $
d280 2
a281 2
	${TOOL_M4} -P -I${TOPDIR} ${.ALLSRC} > ${.TARGET}.tmp \
	&& mv ${.TARGET}.tmp ${.TARGET}
@


1.22
log
@Add acpidump, amldb, and iasl to aarch64 build.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2018/06/28 07:56:22 maya Exp $
d280 2
a281 1
	${TOOL_M4} -P -I${TOPDIR} ${.ALLSRC} > ${.TARGET}
@


1.21
log
@Correctly specify that iasl needs to be case insensitive.

Fixes PR bin/53405. thanks to martin.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2018/06/27 16:13:43 maya Exp $
d3 1
a3 1
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
@


1.21.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2019/01/10 10:04:43 martin Exp $
d3 1
a3 1
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "aarch64")
d280 1
a280 2
	${TOOL_M4} -P -I${TOPDIR} ${.ALLSRC} > ${.TARGET}.tmp.${.MAKE.PID} \
	&& mv ${.TARGET}.tmp.${.MAKE.PID} ${.TARGET}
@


1.21.2.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
# $NetBSD$
d22 1
a22 2
	dtparserparse.c dtparserlex.c prparserparse.c prparserlex.c \
	dtcompilerparserparse.c dtcompilerparserlex.c
a92 2
	dtcompilerparserlex.c \
	dtcompilerparserparse.c \
a301 12
YPREFIX.dtcompilerparserparse.y=DtCompilerParser
YFLAGS.dtcompilerparserparse.y += -L
dtcompilerparserparse.y: ${TOPDIR}/dtcompilerparser.y
	ln -sf ${.ALLSRC} ${.TARGET}

dtcompilerparser.y.h: dtcompilerparserparse.h
	ln -sf ${.ALLSRC} ${.TARGET}

LPREFIX.dtcompilerparserlex.l=DtCompilerParser
LFLAGS.dtcompilerparserlex.l += --bison-locations
dtcompilerparserlex.l: ${TOPDIR}/dtcompilerparser.l
	ln -sf ${.ALLSRC} ${.TARGET}
d314 15
a328 20
CLEANFILES+=	aslcompilerparse.y  aslcompilerparse.c			\
		aslcompilerparse.h					\
		aslcompiler.y.h aslcompilerparse.output		 	\
		aslcompilerlex.l aslcompilerlex.c			\
									\
		dtparserparse.y dtparserparse.c				\
		dtparserparse.h						\
		dtparserlex.l dtparserlex.c				\
		dtparser.y.h dtparserparse.output			\
									\
		dtcompilerparserparse.y dtcompilerparserparse.c		\
		dtcompilerparserparse.h					\
		dtcompilerparserlex.l dtcompilerparserlex.c		\
		dtcompilerparser.y.h dtcompilerparserparse.output	\
									\
		prparserparse.y prparserparse.c				\
		prparserparse.h						\
		prparserlex.l prparserlex.c				\
		prparser.y.h prparserparse.output			\
									\
d333 1
a333 2
${__DPSRCS.d} ${OBJS}: prparser.y.h dtparser.y.h aslcompiler.y.h \
	dtcompilerparser.y.h
@


1.20
log
@Remove unused code. No functional change intended.

- We don't need to define __NetBSD__, C compilers do this for us.
- Defines which don't appear anywhere in src
- Don't need libpthread/librt
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2018/05/31 09:08:25 mrg Exp $
d267 1
a267 1
FLAGS+=-i	# Case insensitivive parser
@


1.19
log
@make 'clean' and/or 'cleandir' actually clean all the things.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2018/04/07 15:49:50 christos Exp $
d14 1
a14 2
CPPFLAGS+=	-D__NetBSD__ -DACPI_ASL_COMPILER -DACPI_USE_ALTERNATE_TIMEOUT
CPPFLAGS+=	-D_USE_BERKELEY_YACC
d18 2
a19 2
LDADD+=		-ll -ly -lrt -lpthread
DPADD+=		${LIBL} ${LIBY} ${LIBRT} ${LIBPTHREAD}
@


1.18
log
@Merge conflicts; STA methods and fields are not present anymore.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2017/11/12 03:02:15 christos Exp $
d328 2
@


1.17
log
@new files for acpica-20171110
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2017/10/10 19:17:57 christos Exp $
d125 3
d129 3
@


1.17.2.1
log
@Sync with HEAD, resolve some conflicts
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2018/04/07 15:49:50 christos Exp $
a124 3
	dmtbdump1.c \
	dmtbdump2.c \
	dmtbdump3.c \
a125 3
	dmtbinfo1.c \
	dmtbinfo2.c \
	dmtbinfo3.c \
@


1.17.2.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2018/05/31 09:08:25 mrg Exp $
a327 2
							\
		y.output y.tab.h
@


1.17.2.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2018/06/28 07:56:22 maya Exp $
d14 2
a15 1
CPPFLAGS+=	-DACPI_ASL_COMPILER -DACPI_USE_ALTERNATE_TIMEOUT
d19 2
a20 2
LDADD+=		-ll -ly
DPADD+=		${LIBL} ${LIBY}
d268 1
a268 1
LFLAGS+=-i	# Case insensitivive parser
@


1.17.2.4
log
@Sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2018/10/14 13:36:33 jmcneill Exp $
d3 1
a3 1
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "aarch64")
@


1.17.2.5
log
@Synch with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17.2.4 2018/10/20 06:58:19 pgoyette Exp $
d280 1
a280 2
	${TOOL_M4} -P -I${TOPDIR} ${.ALLSRC} > ${.TARGET}.tmp.${.MAKE.PID} \
	&& mv ${.TARGET}.tmp.${.MAKE.PID} ${.TARGET}
@


1.16
log
@Redo so that parallel makes work reliably by using the builtin rules and
issuing atomic file creation.
XXX: This still creates all the c and h files for platforms that don't support
iasl in make depend. At least it now works with make -j 100 dependall
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2017/09/15 17:17:25 christos Exp $
d28 1
d32 1
@


1.15
log
@Adjust for acpica 20170831
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2017/04/30 23:18:07 christos Exp $
d22 1
a22 1
DPSRCS= aslcompiler.y aslcompilerlex.c aslcompilerparse.c \
d258 10
d271 2
a272 1
aslcompiler.y: aslparser.y
d275 2
a276 3
aslcompiler.y.h aslcompilerparse.c: aslcompiler.y
	${YACC} -v -d -o${.TARGET} -pAslCompiler ${.ALLSRC}
	mv -f ${.PREFIX}.h aslcompiler.y.h
d278 3
a280 2
aslcompilerlex.c: ${TOPDIR}/aslcompiler.l
	${LEX} -i -PAslCompiler -o${.TARGET} ${.ALLSRC}
a281 1
aslcompilerlex.o: aslcompiler.y.h
d283 3
a285 3
dtparser.y.h dtparserparse.c: ${TOPDIR}/dtparser.y
	${YACC} -v -d -o${.TARGET} -pDtParser ${.ALLSRC}
	mv -f ${.PREFIX}.h dtparser.y.h
d287 2
a288 2
dtparserlex.c: ${TOPDIR}/dtparser.l
	${LEX} -i -PDtParser -o${.TARGET} ${.ALLSRC}
d290 3
a292 1
dtparserlex.o: dtparser.y.h
a293 3
prparser.y.h prparserparse.c: ${TOPDIR}/prparser.y
	${YACC} -v -d -o${.TARGET} -pPrParser ${.ALLSRC}
	mv -f ${.PREFIX}.h prparser.y.h
d295 3
a297 2
prparserlex.c: ${TOPDIR}/prparser.l
	${LEX} -i -PPrParser -o${.TARGET} ${.ALLSRC}
d299 2
a300 1
prparserlex.o: prparser.y.h
d302 6
a307 2
CLEANFILES+=	aslcompiler.y 				\
		aslcompilerlex.c aslcompilerparse.c	\
d309 5
a313 1
		dtparserlex.c dtparserparse.c		\
d315 4
a318 1
		prparserlex.c prparserparse.c		\
d322 2
@


1.14
log
@Adjust for 20170303
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2016/11/11 21:09:21 christos Exp $
d61 1
d119 1
d150 1
d243 1
d247 1
@


1.13
log
@Adjust to new acpica
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2016/05/04 19:28:15 christos Exp $
d84 3
a239 1
	utprint.c \
d248 2
@


1.13.4.1
log
@Sync with HEAD - tag prg-localcount2-base1
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2017/04/30 23:18:07 christos Exp $
a83 3
	cvcompiler.c \
	cvdisasm.c \
	cvparser.c \
d237 1
a245 2
#	utprint.c 

@


1.12
log
@adjust to new acpica
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2016/01/09 21:13:51 christos Exp $
d41 1
d241 1
d247 1
a247 1
SRCS+=	osunixxf.c oslibcfs.c
@


1.12.2.1
log
@Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2016/11/11 21:09:21 christos Exp $
a40 1
	aslhelp.c \
a239 1
	utstrtoul64.c \
d245 1
a245 1
SRCS+=	osunixxf.c
@


1.11
log
@new files
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2015/08/18 10:38:31 christos Exp $
d35 1
d37 1
d60 1
d82 1
d155 1
d215 1
a223 1
	utfileio.c \
@


1.10
log
@handle acpica 20150717
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2015/04/13 17:24:24 christos Exp $
d87 2
d100 1
d111 1
d190 2
a191 1
	tbxface.c
@


1.9
log
@update for newest acpi
XXX: needs recompiled yacc
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2014/10/25 21:01:12 christos Exp $
d102 1
a120 1
	dmobject.c \
d221 1
@


1.8
log
@adjust to new acpica
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2013/12/28 16:03:51 christos Exp $
d60 2
d117 1
@


1.7
log
@Add more dependencies, fix CLEANDIR target
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2013/12/27 21:33:46 christos Exp $
d22 1
a22 1
DPSRCS= aslcompilerparse.c aslcompilerlex.c \
d29 1
d47 4
d98 1
d100 2
d179 1
d210 1
d212 1
d222 1
d226 1
d231 1
a231 1
SRCS+=	osunixxf.c
d233 7
a239 1
aslcompiler.y.h aslcompilerparse.c: ${TOPDIR}/aslcompiler.y
d266 2
a267 1
CLEANFILES+=	aslcompilerlex.c aslcompilerparse.c	\
@


1.6
log
@adjust for new acpica
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2012/02/19 05:06:41 christos Exp $
d220 1
a220 1
aslcompilerparse.c: ${TOPDIR}/aslcompiler.y
d227 3
a229 1
dtparserparse.c: ${TOPDIR}/dtparser.y
d236 3
a238 1
prparserparse.c: ${TOPDIR}/prparser.y
d245 2
d251 2
a252 2
		prparserlex.c dtparserparse.c		\
		prparser.y.h dtparserparse.output	\
@


1.5
log
@Fix MKREPRO = yes
XXX: pullup to 6
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2011/06/28 09:11:33 jruoho Exp $
d23 1
a23 1
	dtparserparse.c dtparserlex.c
d26 62
a87 12
SRCS+=  aslcompilerparse.c aslcompilerlex.c adfile.c \
	aslanalyze.c aslbtypes.c aslcodegen.c aslcompile.c      \
	aslerror.c aslfiles.c aslfold.c asllength.c             \
	asllisting.c aslload.c asllookup.c aslmain.c aslmap.c   \
	aslopcodes.c asloperands.c aslopt.c aslpredef.c         \
	aslresource.c aslrestype1.c aslrestype1i.c              \
	aslrestype2.c aslrestype2d.c aslrestype2e.c             \
	aslrestype2q.c aslrestype2w.c aslstartup.c aslstubs.c   \
	asltransform.c asltree.c aslutils.c asluuid.c           \
	aslwalks.c dtcompile.c dtexpress.c dtfield.c dtio.c     \
	dtparserparse.c dtparserlex.c				\
	dtsubtable.c dttable.c dttemplate.c dtutils.c
d90 10
a99 2
SRCS+=  adisasm.c adwalk.c dmextern.c dmrestag.c dmtable.c \
	dmtbdump.c dmtbinfo.c getopt.c
d105 12
a116 2
SRCS+=  dmbuffer.c dmnames.c dmobject.c dmopcode.c dmresrc.c    \
	dmresrcl.c dmresrcs.c dmutils.c dmwalk.c
d119 11
a129 2
SRCS+=  dsargs.c dscontrol.c dsfield.c dsobject.c dsopcode.c    \
	dsutils.c dswexec.c dswload.c dswload2.c dswscope.c     \
d133 21
a153 4
SRCS+=  exconvrt.c excreate.c exdump.c exmisc.c exmutex.c       \
	exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c   \
	exprep.c exregion.c exresnte.c exresolv.c exresop.c     \
	exstore.c exstoren.c exstorob.c exsystem.c exutils.c
d156 11
a166 2
SRCS+=  psargs.c psloop.c psopcode.c psparse.c psscope.c        \
	pstree.c psutils.c pswalk.c
d169 6
a174 1
SRCS+=	tbfadt.c tbinstal.c tbutils.c tbxface.c
d177 11
a187 2
SRCS+=  nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c      \
	nsparse.c nssearch.c nsutils.c nswalk.c nsxfobj.c
d190 26
a215 4
SRCS+=  utalloc.c utcache.c utcopy.c utdebug.c utdecode.c       \
	utdelete.c utglobal.c utinit.c utlock.c utmath.c        \
	utmisc.c utmutex.c utobject.c utosi.c utresrc.c         \
	utstate.c utxface.c utxferror.c
d234 7
d244 3
a246 1
		dtparser.y.h dtparserparse.output
@


1.5.2.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
# $NetBSD$
d23 1
a23 1
	dtparserparse.c dtparserlex.c prparserparse.c prparserlex.c
d26 12
a37 62
SRCS+= \
	adfile.c \
	aslanalyze.c \
	aslbtypes.c \
	aslcodegen.c \
	aslcompile.c \
	aslcompilerlex.c \
	aslcompilerparse.c \
	aslerror.c \
	aslfileio.c \
	aslfiles.c \
	aslfold.c \
	aslhex.c \
	asllength.c \
	asllisting.c \
	asllistsup.c \
	aslload.c \
	asllookup.c \
	aslmain.c \
	aslmap.c \
	aslmethod.c \
	aslnamesp.c \
	asloffset.c \
	aslopcodes.c \
	asloperands.c \
	aslopt.c \
	asloptions.c \
	aslpredef.c \
	aslprepkg.c \
	aslresource.c \
	aslrestype1.c \
	aslrestype1i.c \
	aslrestype2.c \
	aslrestype2d.c \
	aslrestype2e.c \
	aslrestype2q.c \
	aslrestype2s.c \
	aslrestype2w.c \
	aslstartup.c \
	aslstubs.c \
	asltransform.c \
	asltree.c \
	aslutils.c \
	asluuid.c \
	aslwalks.c \
	aslxref.c \
	dtcompile.c \
	dtexpress.c \
	dtfield.c \
	dtio.c \
	dtparserlex.c \
	dtparserparse.c \
	dtsubtable.c \
	dttable.c \
	dttemplate.c \
	dtutils.c \
	prexpress.c \
	prmacros.c \
	prparserlex.c \
	prparserparse.c \
	prscan.c \
	prutils.c
d40 2
a41 10
SRCS+= \
	adisasm.c \
	adwalk.c \
	ahpredef.c \
	dmextern.c \
	dmrestag.c \
	dmtable.c \
	dmtbdump.c \
	dmtbinfo.c \
	getopt.c
d47 2
a48 12
SRCS+= \
	dmbuffer.c \
	dmdeferred.c \
	dmnames.c \
	dmobject.c \
	dmopcode.c \
	dmresrc.c \
	dmresrcl.c \
	dmresrcl2.c \
	dmresrcs.c \
	dmutils.c \
	dmwalk.c
d51 2
a52 11
SRCS+= \
	dsargs.c \
	dscontrol.c \
	dsfield.c \
	dsobject.c \
	dsopcode.c \
	dsutils.c \
	dswexec.c \
	dswload.c \
	dswload2.c \
	dswscope.c \
d56 4
a59 21
SRCS+= \
	exconvrt.c \
	excreate.c \
	exdump.c \
	exmisc.c \
	exmutex.c \
	exnames.c \
	exoparg1.c \
	exoparg2.c \
	exoparg3.c \
	exoparg6.c \
	exprep.c \
	exregion.c \
	exresnte.c \
	exresolv.c \
	exresop.c \
	exstore.c \
	exstoren.c \
	exstorob.c \
	exsystem.c \
	exutils.c
d62 2
a63 11
SRCS+= \
	psargs.c \
	psloop.c \
	psobject.c \
	psopcode.c \
	psopinfo.c \
	psparse.c \
	psscope.c \
	pstree.c \
	psutils.c \
	pswalk.c
d66 1
a66 6
SRCS+=	\
	tbfadt.c \
	tbinstal.c \
	tbprint.c \
	tbutils.c \
	tbxface.c
d69 2
a70 11
SRCS+= \
	nsaccess.c \
	nsalloc.c \
	nsdump.c \
	nsnames.c \
	nsobject.c \
	nsparse.c \
	nssearch.c \
	nsutils.c \
	nswalk.c \
	nsxfobj.c \
d73 4
a76 26
SRCS+= \
	utaddress.c \
	utalloc.c \
	utbuffer.c \
	utcache.c \
	utcopy.c \
	utdebug.c \
	utdecode.c \
	utdelete.c \
	uterror.c \
	utexcep.c \
	utglobal.c \
	utinit.c \
	utlock.c \
	utmath.c \
	utmisc.c \
	utmutex.c \
	utobject.c \
	utosi.c \
	utownerid.c \
	utpredef.c \
	utresrc.c \
	utstate.c \
	utstring.c \
	utxface.c \
	utxferror.c
d81 1
a81 1
aslcompiler.y.h aslcompilerparse.c: ${TOPDIR}/aslcompiler.y
d88 1
a88 3
aslcompilerlex.o: aslcompiler.y.h

dtparser.y.h dtparserparse.c: ${TOPDIR}/dtparser.y
a94 11
dtparserlex.o: dtparser.y.h

prparser.y.h prparserparse.c: ${TOPDIR}/prparser.y
	${YACC} -v -d -o${.TARGET} -pPrParser ${.ALLSRC}
	mv -f ${.PREFIX}.h prparser.y.h

prparserlex.c: ${TOPDIR}/prparser.l
	${LEX} -i -PPrParser -o${.TARGET} ${.ALLSRC}

prparserlex.o: prparser.y.h

d98 1
a98 3
		dtparser.y.h dtparserparse.output	\
		prparserlex.c prparserparse.c		\
		prparser.y.h prparserparse.output	\
@


1.4
log
@Adjust for ACPICA 20110623.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2011/02/18 17:34:22 jruoho Exp $
d16 3
@


1.4.2.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2011/06/28 09:11:33 jruoho Exp $
a15 3
.if ${MKREPRO:Uno} == "yes"
CPPFLAGS+=	-DACPI_REPRO
.endif
@


1.4.2.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4.2.1 2012/04/17 00:02:59 yamt Exp $
d23 1
a23 1
	dtparserparse.c dtparserlex.c prparserparse.c prparserlex.c
d26 12
a37 62
SRCS+= \
	adfile.c \
	aslanalyze.c \
	aslbtypes.c \
	aslcodegen.c \
	aslcompile.c \
	aslcompilerlex.c \
	aslcompilerparse.c \
	aslerror.c \
	aslfileio.c \
	aslfiles.c \
	aslfold.c \
	aslhex.c \
	asllength.c \
	asllisting.c \
	asllistsup.c \
	aslload.c \
	asllookup.c \
	aslmain.c \
	aslmap.c \
	aslmethod.c \
	aslnamesp.c \
	asloffset.c \
	aslopcodes.c \
	asloperands.c \
	aslopt.c \
	asloptions.c \
	aslpredef.c \
	aslprepkg.c \
	aslresource.c \
	aslrestype1.c \
	aslrestype1i.c \
	aslrestype2.c \
	aslrestype2d.c \
	aslrestype2e.c \
	aslrestype2q.c \
	aslrestype2s.c \
	aslrestype2w.c \
	aslstartup.c \
	aslstubs.c \
	asltransform.c \
	asltree.c \
	aslutils.c \
	asluuid.c \
	aslwalks.c \
	aslxref.c \
	dtcompile.c \
	dtexpress.c \
	dtfield.c \
	dtio.c \
	dtparserlex.c \
	dtparserparse.c \
	dtsubtable.c \
	dttable.c \
	dttemplate.c \
	dtutils.c \
	prexpress.c \
	prmacros.c \
	prparserlex.c \
	prparserparse.c \
	prscan.c \
	prutils.c
d40 2
a41 10
SRCS+= \
	adisasm.c \
	adwalk.c \
	ahpredef.c \
	dmextern.c \
	dmrestag.c \
	dmtable.c \
	dmtbdump.c \
	dmtbinfo.c \
	getopt.c
d47 2
a48 12
SRCS+= \
	dmbuffer.c \
	dmdeferred.c \
	dmnames.c \
	dmobject.c \
	dmopcode.c \
	dmresrc.c \
	dmresrcl.c \
	dmresrcl2.c \
	dmresrcs.c \
	dmutils.c \
	dmwalk.c
d51 2
a52 11
SRCS+= \
	dsargs.c \
	dscontrol.c \
	dsfield.c \
	dsobject.c \
	dsopcode.c \
	dsutils.c \
	dswexec.c \
	dswload.c \
	dswload2.c \
	dswscope.c \
d56 4
a59 21
SRCS+= \
	exconvrt.c \
	excreate.c \
	exdump.c \
	exmisc.c \
	exmutex.c \
	exnames.c \
	exoparg1.c \
	exoparg2.c \
	exoparg3.c \
	exoparg6.c \
	exprep.c \
	exregion.c \
	exresnte.c \
	exresolv.c \
	exresop.c \
	exstore.c \
	exstoren.c \
	exstorob.c \
	exsystem.c \
	exutils.c
d62 2
a63 11
SRCS+= \
	psargs.c \
	psloop.c \
	psobject.c \
	psopcode.c \
	psopinfo.c \
	psparse.c \
	psscope.c \
	pstree.c \
	psutils.c \
	pswalk.c
d66 1
a66 6
SRCS+=	\
	tbfadt.c \
	tbinstal.c \
	tbprint.c \
	tbutils.c \
	tbxface.c
d69 2
a70 11
SRCS+= \
	nsaccess.c \
	nsalloc.c \
	nsdump.c \
	nsnames.c \
	nsobject.c \
	nsparse.c \
	nssearch.c \
	nsutils.c \
	nswalk.c \
	nsxfobj.c \
d73 4
a76 26
SRCS+= \
	utaddress.c \
	utalloc.c \
	utbuffer.c \
	utcache.c \
	utcopy.c \
	utdebug.c \
	utdecode.c \
	utdelete.c \
	uterror.c \
	utexcep.c \
	utglobal.c \
	utinit.c \
	utlock.c \
	utmath.c \
	utmisc.c \
	utmutex.c \
	utobject.c \
	utosi.c \
	utownerid.c \
	utpredef.c \
	utresrc.c \
	utstate.c \
	utstring.c \
	utxface.c \
	utxferror.c
d81 1
a81 1
aslcompiler.y.h aslcompilerparse.c: ${TOPDIR}/aslcompiler.y
d88 1
a88 3
aslcompilerlex.o: aslcompiler.y.h

dtparser.y.h dtparserparse.c: ${TOPDIR}/dtparser.y
a94 11
dtparserlex.o: dtparser.y.h

prparser.y.h prparserparse.c: ${TOPDIR}/prparser.y
	${YACC} -v -d -o${.TARGET} -pPrParser ${.ALLSRC}
	mv -f ${.PREFIX}.h prparser.y.h

prparserlex.c: ${TOPDIR}/prparser.l
	${LEX} -i -PPrParser -o${.TARGET} ${.ALLSRC}

prparserlex.o: prparser.y.h

d98 1
a98 3
		dtparser.y.h dtparserparse.output	\
		prparserlex.c prparserparse.c		\
		prparser.y.h prparserparse.output	\
@


1.4.4.1
log
@Pull up following revision(s) (requested by go in ticket #48):
	external/bsd/acpica/bin/iasl/Makefile: revision 1.5
	sys/external/bsd/acpica/dist/include/acapps.h: revision 1.2
Fix MKREPRO = yes
XXX: pullup to 6
Fix for MKREPRO = yes
XXX: pullup to 6
Use the release date as suggested.
XXX: I bet this is going to be broken in the next import because nobody
will remember to fix it.
@
text
@d1 1
a1 1
# $NetBSD$
a15 3
.if ${MKREPRO:Uno} == "yes"
CPPFLAGS+=	-DACPI_REPRO
.endif
@


1.3
log
@Build this for NetBSD, not Linux. Thanks to Takahiro HAYASHI
for pointing this out.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2011/02/17 18:26:20 jruoho Exp $
d19 2
a20 2
DPSRCS= aslcompilerparse.c
DPSRCS+=aslcompilerlex.c
d33 1
d75 1
a75 1
.PATH: ${TOPDIR}/..
d85 11
a95 2
CLEANFILES+=	aslcompilerlex.c aslcompilerparse.c \
		aslcompiler.y.h aslcompilerparse.output
@


1.2
log
@Fix iasl(8).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2011/02/17 07:48:16 jruoho Exp $
d14 1
a14 1
CPPFLAGS+=	-D_LINUX -DACPI_ASL_COMPILER -DACPI_USE_ALTERNATE_TIMEOUT
@


1.1
log
@Add the userspace portion of ACPICA to a new location.
@
text
@d1 1
a1 1
# $NetBSD$
d19 1
a19 1
DPSRCS=	aslcompilerparse.c
d23 12
a34 37
SRCS=	aslcompilerparse.c
SRCS+=	aslcompilerlex.c
SRCS+=	aslanalyze.c
SRCS+=	aslcodegen.c
SRCS+=	aslcompile.c
SRCS+=	aslerror.c
SRCS+=	aslfiles.c
SRCS+=	asllength.c
SRCS+=	asllisting.c
SRCS+=	aslload.c
SRCS+=	asllookup.c
SRCS+=	aslmain.c
SRCS+=	aslmap.c
SRCS+=	aslopcodes.c
SRCS+=	asloperands.c
SRCS+=	aslpredef.c
SRCS+=	aslresource.c
SRCS+=	aslrestype1.c
SRCS+=	aslrestype1i.c
SRCS+=	aslrestype2.c
SRCS+=	aslrestype2d.c
SRCS+=	aslrestype2e.c
SRCS+=	aslrestype2q.c
SRCS+=	aslrestype2w.c
SRCS+=	aslstartup.c
SRCS+=	asltree.c
SRCS+=	aslutils.c
SRCS+=	asltransform.c
SRCS+=	aslfold.c
SRCS+=	aslstubs.c
SRCS+=	aslopt.c
SRCS+=	dtcompile.c
SRCS+=	dtfield.c
SRCS+=	dtio.c
SRCS+=	dtsubtable.c
SRCS+=	dttable.c
SRCS+=	dtutils.c
d36 10
a45 37
SRCS+=	getopt.c
.PATH: ${TOPDIR}/../utilities
SRCS+=	utalloc.c
SRCS+=	utcache.c
SRCS+=	utcopy.c
SRCS+=	utdebug.c
SRCS+=	utdelete.c
SRCS+=	utglobal.c
SRCS+=	utinit.c
SRCS+=	utlock.c
SRCS+=	utobject.c
SRCS+=	utmisc.c
SRCS+=	utmath.c
SRCS+=	utmutex.c
SRCS+=	utresrc.c
SRCS+=	utstate.c
SRCS+=	utxface.c
.PATH: ${TOPDIR}/../namespace
SRCS+=	nsaccess.c
SRCS+=	nsalloc.c
SRCS+=	nsdump.c
SRCS+=	nsnames.c
SRCS+=	nsobject.c
SRCS+=	nsparse.c
SRCS+=	nssearch.c
SRCS+=	nsutils.c
SRCS+=	nswalk.c
SRCS+=	nsxfobj.c
.PATH: ${TOPDIR}/../parser
SRCS+=	psargs.c
SRCS+=	psloop.c
SRCS+=	psopcode.c
SRCS+=	psparse.c
SRCS+=	psscope.c
SRCS+=	pstree.c
SRCS+=	psutils.c
SRCS+=	pswalk.c
d47 4
a50 9
SRCS+=	dmextern.c
SRCS+=	dswscope.c
SRCS+=	dswstate.c
SRCS+=	dsfield.c
SRCS+=	dsobject.c
SRCS+=	dsopcode.c
SRCS+=	dsutils.c
SRCS+=	dswexec.c
SRCS+=	dswload.c
d52 9
a60 40
SRCS+=	exconvrt.c
SRCS+=	excreate.c
SRCS+=	exdump.c
SRCS+=	exmisc.c
SRCS+=	exmutex.c
SRCS+=	exnames.c
SRCS+=	exoparg1.c
SRCS+=	exoparg2.c
SRCS+=	exoparg3.c
SRCS+=	exoparg6.c
SRCS+=	exprep.c
SRCS+=	exregion.c
SRCS+=	exresnte.c
SRCS+=	exresolv.c
SRCS+=	exresop.c
SRCS+=	exstore.c
SRCS+=	exstoren.c
SRCS+=	exstorob.c
SRCS+=	exsystem.c
SRCS+=	exutils.c
.PATH: ${TOPDIR}/../common
SRCS+=	adfile.c
SRCS+=	adisasm.c
SRCS+=	adwalk.c
SRCS+=	dmrestag.c
SRCS+=	dmtable.c
SRCS+=	dmtbinfo.c
SRCS+=	dmtbdump.c
.PATH: ${TOPDIR}/../debugger
SRCS+=	dbfileio.c
.PATH: ${TOPDIR}/../disassembler
SRCS+=	dmbuffer.c
SRCS+=	dmnames.c
SRCS+=	dmopcode.c
SRCS+=	dmobject.c
SRCS+=	dmresrc.c
SRCS+=	dmresrcl.c
SRCS+=	dmresrcs.c
SRCS+=	dmutils.c
SRCS+=	dmwalk.c
d62 12
a73 4
SRCS+=	tbfadt.c
SRCS+=	tbinstal.c
SRCS+=	tbutils.c
SRCS+=	tbxface.c
d84 2
a85 1
CLEANFILES+=	aslcompilerlex.c aslcompilerparse.c aslcompiler.y.h aslcompilerparse.output
@


1.1.2.1
log
@file Makefile was added on branch bouyer-quota2 on 2011-02-17 11:57:26 +0000
@
text
@d1 166
@


1.1.2.2
log
@Sync with HEAD
@
text
@a0 166
# $NetBSD: Makefile,v 1.1 2011/02/17 07:48:16 jruoho Exp $

.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64")
PROG=	iasl
.endif
BINDIR=	/usr/bin
MAN=	iasl.8
WARNS=	0
TOPDIR=	${NETBSDSRCDIR}/sys/external/bsd/acpica/dist/compiler

.include <bsd.own.mk>

CPPFLAGS+=	-I${TOPDIR}/../include -I${TOPDIR} -I.
CPPFLAGS+=	-D_LINUX -DACPI_ASL_COMPILER -DACPI_USE_ALTERNATE_TIMEOUT
CPPFLAGS+=	-D_USE_BERKELEY_YACC
LDADD+=		-ll -ly -lrt -lpthread
DPADD+=		${LIBL} ${LIBY} ${LIBRT} ${LIBPTHREAD}

DPSRCS=	aslcompilerparse.c
DPSRCS+=aslcompilerlex.c

.PATH:	${TOPDIR}
SRCS=	aslcompilerparse.c
SRCS+=	aslcompilerlex.c
SRCS+=	aslanalyze.c
SRCS+=	aslcodegen.c
SRCS+=	aslcompile.c
SRCS+=	aslerror.c
SRCS+=	aslfiles.c
SRCS+=	asllength.c
SRCS+=	asllisting.c
SRCS+=	aslload.c
SRCS+=	asllookup.c
SRCS+=	aslmain.c
SRCS+=	aslmap.c
SRCS+=	aslopcodes.c
SRCS+=	asloperands.c
SRCS+=	aslpredef.c
SRCS+=	aslresource.c
SRCS+=	aslrestype1.c
SRCS+=	aslrestype1i.c
SRCS+=	aslrestype2.c
SRCS+=	aslrestype2d.c
SRCS+=	aslrestype2e.c
SRCS+=	aslrestype2q.c
SRCS+=	aslrestype2w.c
SRCS+=	aslstartup.c
SRCS+=	asltree.c
SRCS+=	aslutils.c
SRCS+=	asltransform.c
SRCS+=	aslfold.c
SRCS+=	aslstubs.c
SRCS+=	aslopt.c
SRCS+=	dtcompile.c
SRCS+=	dtfield.c
SRCS+=	dtio.c
SRCS+=	dtsubtable.c
SRCS+=	dttable.c
SRCS+=	dtutils.c
.PATH: ${TOPDIR}/../common
SRCS+=	getopt.c
.PATH: ${TOPDIR}/../utilities
SRCS+=	utalloc.c
SRCS+=	utcache.c
SRCS+=	utcopy.c
SRCS+=	utdebug.c
SRCS+=	utdelete.c
SRCS+=	utglobal.c
SRCS+=	utinit.c
SRCS+=	utlock.c
SRCS+=	utobject.c
SRCS+=	utmisc.c
SRCS+=	utmath.c
SRCS+=	utmutex.c
SRCS+=	utresrc.c
SRCS+=	utstate.c
SRCS+=	utxface.c
.PATH: ${TOPDIR}/../namespace
SRCS+=	nsaccess.c
SRCS+=	nsalloc.c
SRCS+=	nsdump.c
SRCS+=	nsnames.c
SRCS+=	nsobject.c
SRCS+=	nsparse.c
SRCS+=	nssearch.c
SRCS+=	nsutils.c
SRCS+=	nswalk.c
SRCS+=	nsxfobj.c
.PATH: ${TOPDIR}/../parser
SRCS+=	psargs.c
SRCS+=	psloop.c
SRCS+=	psopcode.c
SRCS+=	psparse.c
SRCS+=	psscope.c
SRCS+=	pstree.c
SRCS+=	psutils.c
SRCS+=	pswalk.c
.PATH: ${TOPDIR}/../dispatcher
SRCS+=	dmextern.c
SRCS+=	dswscope.c
SRCS+=	dswstate.c
SRCS+=	dsfield.c
SRCS+=	dsobject.c
SRCS+=	dsopcode.c
SRCS+=	dsutils.c
SRCS+=	dswexec.c
SRCS+=	dswload.c
.PATH: ${TOPDIR}/../executer
SRCS+=	exconvrt.c
SRCS+=	excreate.c
SRCS+=	exdump.c
SRCS+=	exmisc.c
SRCS+=	exmutex.c
SRCS+=	exnames.c
SRCS+=	exoparg1.c
SRCS+=	exoparg2.c
SRCS+=	exoparg3.c
SRCS+=	exoparg6.c
SRCS+=	exprep.c
SRCS+=	exregion.c
SRCS+=	exresnte.c
SRCS+=	exresolv.c
SRCS+=	exresop.c
SRCS+=	exstore.c
SRCS+=	exstoren.c
SRCS+=	exstorob.c
SRCS+=	exsystem.c
SRCS+=	exutils.c
.PATH: ${TOPDIR}/../common
SRCS+=	adfile.c
SRCS+=	adisasm.c
SRCS+=	adwalk.c
SRCS+=	dmrestag.c
SRCS+=	dmtable.c
SRCS+=	dmtbinfo.c
SRCS+=	dmtbdump.c
.PATH: ${TOPDIR}/../debugger
SRCS+=	dbfileio.c
.PATH: ${TOPDIR}/../disassembler
SRCS+=	dmbuffer.c
SRCS+=	dmnames.c
SRCS+=	dmopcode.c
SRCS+=	dmobject.c
SRCS+=	dmresrc.c
SRCS+=	dmresrcl.c
SRCS+=	dmresrcs.c
SRCS+=	dmutils.c
SRCS+=	dmwalk.c
.PATH: ${TOPDIR}/../tables
SRCS+=	tbfadt.c
SRCS+=	tbinstal.c
SRCS+=	tbutils.c
SRCS+=	tbxface.c
.PATH: ${TOPDIR}/..
SRCS+=	osunixxf.c

aslcompilerparse.c: ${TOPDIR}/aslcompiler.y
	${YACC} -v -d -o${.TARGET} -pAslCompiler ${.ALLSRC}
	mv -f ${.PREFIX}.h aslcompiler.y.h

aslcompilerlex.c: ${TOPDIR}/aslcompiler.l
	${LEX} -i -PAslCompiler -o${.TARGET} ${.ALLSRC}

CLEANFILES+=	aslcompilerlex.c aslcompilerparse.c aslcompiler.y.h aslcompilerparse.output

.include <bsd.prog.mk>
@


1.1.2.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.2.2 2011/02/17 11:57:26 bouyer Exp $
d14 1
a14 1
CPPFLAGS+=	-D__NetBSD__ -DACPI_ASL_COMPILER -DACPI_USE_ALTERNATE_TIMEOUT
d19 1
a19 1
DPSRCS= aslcompilerparse.c
d23 106
a128 12
SRCS+=  aslcompilerparse.c aslcompilerlex.c adfile.c \
	aslanalyze.c aslbtypes.c aslcodegen.c aslcompile.c      \
	aslerror.c aslfiles.c aslfold.c asllength.c             \
	asllisting.c aslload.c asllookup.c aslmain.c aslmap.c   \
	aslopcodes.c asloperands.c aslopt.c aslpredef.c         \
	aslresource.c aslrestype1.c aslrestype1i.c              \
	aslrestype2.c aslrestype2d.c aslrestype2e.c             \
	aslrestype2q.c aslrestype2w.c aslstartup.c aslstubs.c   \
	asltransform.c asltree.c aslutils.c asluuid.c           \
	aslwalks.c dtcompile.c dtexpress.c dtfield.c dtio.c     \
	dtsubtable.c dttable.c dttemplate.c dtutils.c

d130 7
a136 3
SRCS+=  adisasm.c adwalk.c dmextern.c dmrestag.c dmtable.c \
	dmtbdump.c dmtbinfo.c getopt.c

d138 1
a138 2
SRCS+=  dbfileio.c

d140 9
a148 18
SRCS+=  dmbuffer.c dmnames.c dmobject.c dmopcode.c dmresrc.c    \
	dmresrcl.c dmresrcs.c dmutils.c dmwalk.c

.PATH: ${TOPDIR}/../dispatcher
SRCS+=  dsargs.c dscontrol.c dsfield.c dsobject.c dsopcode.c    \
	dsutils.c dswexec.c dswload.c dswload2.c dswscope.c     \
	dswstate.c

.PATH: ${TOPDIR}/../executer
SRCS+=  exconvrt.c excreate.c exdump.c exmisc.c exmutex.c       \
	exnames.c exoparg1.c exoparg2.c exoparg3.c exoparg6.c   \
	exprep.c exregion.c exresnte.c exresolv.c exresop.c     \
	exstore.c exstoren.c exstorob.c exsystem.c exutils.c

.PATH: ${TOPDIR}/../parser
SRCS+=  psargs.c psloop.c psopcode.c psparse.c psscope.c        \
	pstree.c psutils.c pswalk.c

d150 4
a153 12
SRCS+=	tbfadt.c tbinstal.c tbutils.c tbxface.c

.PATH: ${TOPDIR}/../namespace
SRCS+=  nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c      \
	nsparse.c nssearch.c nsutils.c nswalk.c nsxfobj.c

.PATH: ${TOPDIR}/../utilities
SRCS+=  utalloc.c utcache.c utcopy.c utdebug.c utdecode.c       \
	utdelete.c utglobal.c utinit.c utlock.c utmath.c        \
	utmisc.c utmutex.c utobject.c utosi.c utresrc.c         \
	utstate.c utxface.c utxferror.c

d164 1
a164 2
CLEANFILES+=	aslcompilerlex.c aslcompilerparse.c \
		aslcompiler.y.h aslcompilerparse.output
@


