Makefile revision 118698
1285SN/A# $FreeBSD: head/usr.sbin/acpi/iasl/Makefile 118698 2003-08-09 19:11:20Z marcel $
2790Saefimov
3285SN/APROG=	iasl
4285SN/ASRCS+=	aslcompilerparse.c aslcompilerlex.c aslanalyze.c aslcodegen.c \
5285SN/A	aslcompile.c aslerror.c aslfiles.c asllength.c \
6285SN/A	asllisting.c aslload.c asllookup.c aslmain.c \
7285SN/A	aslmap.c aslopcodes.c asloperands.c aslresource.c \
8285SN/A	aslrestype1.c aslrestype2.c asltree.c aslutils.c \
9285SN/A	asltransform.c aslfold.c aslstubs.c aslopt.c
10285SN/ASRCS+=	adisasm.c getopt.c osunixxf-xxx.c
11285SN/ASRCS+=	dbfileio.c dmbuffer.c dmnames.c dmopcode.c dmobject.c \
12285SN/A        dmresrc.c dmresrcl.c dmresrcs.c dmutils.c dmwalk.c \
13285SN/A        dsopcode.c dsutils.c dswexec.c dswload.c \
14285SN/A	dswscope.c dswstate.c dsfield.c dsobject.c \
15285SN/A        exconvrt.c excreate.c exdump.c exmisc.c \
16285SN/A        exmutex.c exnames.c exoparg1.c exoparg2.c \
17285SN/A        exoparg3.c exoparg6.c exprep.c exregion.c \
18285SN/A        exresnte.c exresolv.c exresop.c exstore.c \
19285SN/A        exstoren.c exstorob.c exsystem.c exutils.c \
20285SN/A        nsaccess.c nsalloc.c nsdump.c nsnames.c nsobject.c \
21285SN/A	nsparse.c nssearch.c nsutils.c nswalk.c nsxfobj.c \
22285SN/A        psargs.c psopcode.c psparse.c psscope.c \
23285SN/A        pstree.c psutils.c pswalk.c \
24285SN/A        tbinstal.c tbutils.c \
25285SN/A	utalloc.c utcopy.c utdebug.c utdelete.c \
26285SN/A        utglobal.c utobject.c utmisc.c utmath.c
27285SN/A
28285SN/AMAN=	iasl.8
29611Smkos
30285SN/ACFLAGS+= -D_ACPI_ASL_COMPILER -I.
31285SN/AYFLAGS+= -v -d -pAslCompiler
32611SmkosLFLAGS+= -i
33611Smkos
34611Smkos.if $(YACC) == "bison"
35285SN/AYFLAGS+= -y
36285SN/A.else
37611SmkosCFLAGS+= -D_USE_BERKELEY_YACC
38611Smkos.endif
39285SN/A
40285SN/ACLEANFILES= y.output y.tab.c y.tab.h aslcompiler.y.h \
41790Saefimov	aslcompilerparse.c aslcompilerlex.c iasl
42521SN/A
43285SN/Aaslcompilerparse.c: aslcompiler.y
44285SN/A	${YACC} ${YFLAGS} ${ACPICA_DIR}/compiler/aslcompiler.y
45285SN/A	cp y.tab.c aslcompilerparse.c
46285SN/A	cp y.tab.h aslcompiler.y.h
47285SN/A
48285SN/Aaslcompilerlex.c: aslcompiler.l
49285SN/A	${LEX} ${LFLAGS} -PAslCompiler -oaslcompilerlex.c \
50790Saefimov		${ACPICA_DIR}/compiler/aslcompiler.l
51285SN/A
52285SN/A# The following band-aid is also present in ../acpidb/Makefile
53285SN/ACLEANFILES+= osunixxf-xxx.c
54611Smkososunixxf-xxx.c: osunixxf.c
55285SN/A	cat ${.ALLSRC} | sed -e 's/UINT32 *length/ACPI_SIZE length/g' -e 's/UINT32 *size/ACPI_SIZE size/g' -e 's/(UINT32) where/(uintptr_t)where/g' > ${.TARGET}
56285SN/A
57611Smkos.include <bsd.prog.mk>
58611Smkos