mirror of
https://github.com/acpica/acpica/
synced 2024-12-27 04:39:46 +03:00
7974d9dae8
date 2002.12.06.18.05.00; author agrover; state Exp;
110 lines
3.2 KiB
Makefile
110 lines
3.2 KiB
Makefile
|
|
|
|
PROG= iasl
|
|
SRCS= aslcompilerparse.c aslcompilerlex.c aslanalyze.c aslcodegen.c \
|
|
aslcompile.c aslerror.c aslfiles.c asllength.c \
|
|
asllisting.c aslload.c asllookup.c aslmain.c aslmap.c aslopcodes.c \
|
|
asloperands.c aslresource.c aslrestype1.c aslrestype2.c \
|
|
asltree.c aslutils.c asltransform.c aslfold.c aslstubs.c aslopt.c \
|
|
../common/getopt.c \
|
|
../utilities/utalloc.c \
|
|
../utilities/utcopy.c \
|
|
../utilities/utdebug.c \
|
|
../utilities/utdelete.c \
|
|
../utilities/utglobal.c \
|
|
../utilities/utobject.c \
|
|
../utilities/utmisc.c \
|
|
../utilities/utmath.c \
|
|
../namespace/nsaccess.c \
|
|
../namespace/nsalloc.c \
|
|
../namespace/nsdump.c \
|
|
../namespace/nsnames.c \
|
|
../namespace/nsobject.c \
|
|
../namespace/nsparse.c \
|
|
../namespace/nssearch.c \
|
|
../namespace/nsutils.c \
|
|
../namespace/nswalk.c \
|
|
../namespace/nsxfobj.c \
|
|
../interpreter/parser/psargs.c \
|
|
../interpreter/parser/psopcode.c \
|
|
../interpreter/parser/psparse.c \
|
|
../interpreter/parser/psscope.c \
|
|
../interpreter/parser/pstree.c \
|
|
../interpreter/parser/psutils.c \
|
|
../interpreter/parser/pswalk.c \
|
|
../interpreter/dispatcher/dswscope.c \
|
|
../interpreter/dispatcher/dswstate.c \
|
|
../interpreter/dispatcher/dsfield.c \
|
|
../interpreter/dispatcher/dsobject.c \
|
|
../interpreter/dispatcher/dsopcode.c \
|
|
../interpreter/dispatcher/dsutils.c \
|
|
../interpreter/dispatcher/dswexec.c \
|
|
../interpreter/dispatcher/dswload.c \
|
|
../interpreter/executer/exconvrt.c \
|
|
../interpreter/executer/excreate.c \
|
|
../interpreter/executer/exdump.c \
|
|
../interpreter/executer/exmisc.c \
|
|
../interpreter/executer/exmutex.c \
|
|
../interpreter/executer/exnames.c \
|
|
../interpreter/executer/exoparg1.c \
|
|
../interpreter/executer/exoparg2.c \
|
|
../interpreter/executer/exoparg3.c \
|
|
../interpreter/executer/exoparg6.c \
|
|
../interpreter/executer/exprep.c \
|
|
../interpreter/executer/exregion.c \
|
|
../interpreter/executer/exresnte.c \
|
|
../interpreter/executer/exresolv.c \
|
|
../interpreter/executer/exresop.c \
|
|
../interpreter/executer/exstore.c \
|
|
../interpreter/executer/exstoren.c \
|
|
../interpreter/executer/exstorob.c \
|
|
../interpreter/executer/exsystem.c \
|
|
../interpreter/executer/exutils.c \
|
|
../common/adisasm.c \
|
|
../debugger/dbfileio.c \
|
|
../disassembler/dmbuffer.c \
|
|
../disassembler/dmnames.c \
|
|
../disassembler/dmopcode.c \
|
|
../disassembler/dmresrc.c \
|
|
../disassembler/dmresrcl.c \
|
|
../disassembler/dmresrcs.c \
|
|
../disassembler/dmutils.c \
|
|
../disassembler/dmwalk.c \
|
|
../tables/tbinstal.c \
|
|
../tables/tbutils.c \
|
|
../osunixxf.c
|
|
|
|
NOMAN= YES
|
|
CFLAGS+= -Wall -O2 -Wstrict-prototypes -D_LINUX -D_ACPI_ASL_COMPILER -I../include
|
|
|
|
#YACC= yacc
|
|
YACC= bison
|
|
YFLAGS+= -v -d
|
|
LEX= flex
|
|
LFLAGS+= -i
|
|
|
|
#.if $(YACC) == "bison"
|
|
YFLAGS+= -y -pAslCompiler
|
|
#.else
|
|
#CFLAGS+= -D_USE_BERKELEY_YACC
|
|
#.endif
|
|
|
|
aslmain : $(patsubst %.c,%.o, $(SRCS))
|
|
$(CC) $(LDFLAGS) $(patsubst %.c,%.o, $(SRCS)) \
|
|
$(LOADLIBES) $(LDLIBS) -o iasl
|
|
|
|
CLEANFILES= y.output y.tab.c y.tab.h aslcompiler.y.h \
|
|
aslcompilerparse.c aslcompilerlex.c iasl
|
|
|
|
aslcompilerparse.c: aslcompiler.y
|
|
${YACC} ${YFLAGS} aslcompiler.y
|
|
cp y.tab.c aslcompilerparse.c
|
|
cp y.tab.h aslcompiler.y.h
|
|
|
|
aslcompilerlex.c: aslcompiler.l
|
|
${LEX} ${LFLAGS} -PAslCompiler -oaslcompilerlex.c aslcompiler.l
|
|
|
|
clean :
|
|
rm -f $(CLEANFILES) $(patsubst %.c,%.o, $(SRCS))
|
|
|