blob: ce51efedbab7c35fd0a93319f662f3cb89426d98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
Index: acpica-unix-20080701.old/compiler/Makefile
===================================================================
--- acpica-unix-20080701.old.orig/compiler/Makefile
+++ acpica-unix-20080701.old/compiler/Makefile
@@ -1,7 +1,7 @@
PROG= iasl
-SRCS= aslcompilerparse.c aslcompilerlex.c aslanalyze.c aslcodegen.c \
+SRCS= aslcompiler.y.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 aslstartup.c \
@@ -89,6 +89,7 @@ SRCS= aslcompilerparse.c aslcompilerlex.
../tables/tbutils.c \
../tables/tbxface.c \
../osunixxf.c
+OBJS = $(patsubst %.c,%.o, $(SRCS))
NOMAN= YES
CFLAGS+= -Wall -O2 -Wstrict-prototypes -D_LINUX -DACPI_ASL_COMPILER -I../include
@@ -105,17 +106,19 @@ YFLAGS+= -y -pAslCompiler
#CFLAGS+= -D_USE_BERKELEY_YACC
#.endif
-aslmain : $(patsubst %.c,%.o, $(SRCS))
+aslmain : $(OBJS)
$(CC) $(LDFLAGS) $(patsubst %.c,%.o, $(SRCS)) \
$(LOADLIBES) $(LDLIBS) -o iasl
+$(OBJS): aslcompiler.y.h
+
CLEANFILES= y.output y.tab.c y.tab.h aslcompiler.y.h \
- aslcompilerparse.c aslcompilerlex.c iasl
+ aslcompiler.y.c aslcompilerlex.c iasl
+
+aslcompiler.y.h: aslcompiler.y.c
-aslcompilerparse.c: aslcompiler.y
- ${YACC} ${YFLAGS} aslcompiler.y
- cp y.tab.c aslcompilerparse.c
- cp y.tab.h aslcompiler.y.h
+aslcompiler.y.c: aslcompiler.y
+ ${YACC} ${YFLAGS} aslcompiler.y -o aslcompiler.y.c
aslcompilerlex.c: aslcompiler.l
${LEX} ${LFLAGS} -PAslCompiler -oaslcompilerlex.c aslcompiler.l
|