Index: testcases/kernel/syscalls/io_getevents/Makefile
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/io_getevents/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- testcases/kernel/syscalls/io_getevents/Makefile	20 Jan 2009 10:48:41 -0000	1.3
+++ testcases/kernel/syscalls/io_getevents/Makefile	3 Jul 2009 00:40:05 -0000
@@ -20,15 +20,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			+= $(AIO_LIBS) -L$(srcdir)/lib
+LDLIBS			+= -lltp
 
-SRCS    = $(wildcard *.c)
-TARGETS = $(patsubst %.c,%,$(SRCS))
-
-CFLAGS += -I../../../../include -Wall
-LDLIBS += $(AIO_LIBS) -L../../../../lib -lltp
+TARGETS 		:= $(patsubst %.c,%,$(wildcard *.c))
 
 all: $(TARGETS)
 
