patch-2.4.0-prerelease linux/drivers/acpi/events/Makefile

Next file: linux/drivers/acpi/events/evevent.c
Previous file: linux/drivers/acpi/ec.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test12/linux/drivers/acpi/events/Makefile linux/drivers/acpi/events/Makefile
@@ -2,25 +2,13 @@
 # Makefile for all Linux ACPI interpreter subdirectories
 #
 
-SUB_DIRS        := 
-MOD_SUB_DIRS    := $(SUB_DIRS)
-MOD_IN_SUB_DIRS :=
-ALL_SUB_DIRS    := $(SUB_DIRS)
-
 O_TARGET := ../$(shell basename `pwd`).o
-O_OBJS   :=
-M_OBJS   :=
 
-ACPI_OBJS := $(patsubst %.c,%.o,$(wildcard *.c))
+obj-$(CONFIG_ACPI) := $(patsubst %.c,%.o,$(wildcard *.c))
 
 EXTRA_CFLAGS += -I../include
 
 EXTRA_CFLAGS += $(ACPI_CFLAGS)
-
-# if the interpreter is used, it overrides arch/i386/kernel/acpi.c
-ifeq ($(CONFIG_ACPI_INTERPRETER),y)
-  O_OBJS := $(ACPI_OBJS)
-endif
 
 include $(TOPDIR)/Rules.make
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)