27 lines
850 B
Diff
27 lines
850 B
Diff
--- acpica-unix-20061109/compiler/Makefile.deps 2006-11-09 15:56:22.000000000 -0500
|
|
+++ acpica-unix-20061109/compiler/Makefile 2007-01-26 06:00:48.000000000 -0500
|
|
@@ -87,6 +87,7 @@ SRCS= aslcompilerparse.c aslcompilerlex.
|
|
../tables/tbutils.c \
|
|
../tables/tbxface.c \
|
|
../osunixxf.c
|
|
+OBJS = $(SRCS:%.c=%.o)
|
|
|
|
NOMAN= YES
|
|
CFLAGS+= -Wall -O2 -Wstrict-prototypes -D_LINUX -DACPI_ASL_COMPILER -I../include
|
|
@@ -103,9 +104,12 @@ YFLAGS+= -y -pAslCompiler
|
|
#CFLAGS+= -D_USE_BERKELEY_YACC
|
|
#.endif
|
|
|
|
-aslmain : $(patsubst %.c,%.o, $(SRCS))
|
|
- $(CC) $(LDFLAGS) $(patsubst %.c,%.o, $(SRCS)) \
|
|
- $(LOADLIBES) $(LDLIBS) -o iasl
|
|
+aslmain: aslcompilerparse.c
|
|
+ $(MAKE) $(PROG)
|
|
+
|
|
+$(PROG): $(OBJS)
|
|
+ $(CC) $(LDFLAGS) $(OBJS) \
|
|
+ $(LOADLIBES) $(LDLIBS) -o $@
|
|
|
|
CLEANFILES= y.output y.tab.c y.tab.h aslcompiler.y.h \
|
|
aslcompilerparse.c aslcompilerlex.c iasl
|