Index: testcases/kernel/syscalls/eventfd/Makefile
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/eventfd/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- testcases/kernel/syscalls/eventfd/Makefile	16 Jan 2009 09:03:14 -0000	1.6
+++ testcases/kernel/syscalls/eventfd/Makefile	3 Jul 2009 00:39:52 -0000
@@ -16,15 +16,17 @@
 #  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #
 
+srcdir			?= ../../../../..
 
-include ../../../../config.mk
+ifneq ($(MAKECMDGOALS),clean)
+include $(srcdir)/config.mk
+endif
 
+CFLAGS			+= -I$(srcdir)/include -Wall
+LDFLAGS			+= -L$(srcdir)/lib
+LDLIBS			:= $(AIO_LIBS) -lltp
 
-CFLAGS += -I../../../../include -Wall
-LDLIBS += -L../../../../lib $(AIO_LIBS) -lltp
-
-SRCS    = $(wildcard *.c)
-TARGETS = $(patsubst %.c, %, $(wildcard *.c))
+TARGETS			:= $(patsubst %.c, %, $(wildcard *.c))
 
 all: $(TARGETS)
 
