Index: testcases/kernel/io/aio/aio02/Makefile
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/io/aio/aio02/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- testcases/kernel/io/aio/aio02/Makefile	18 Jun 2009 17:06:59 -0000	1.6
+++ testcases/kernel/io/aio/aio02/Makefile	3 Jul 2009 00:39:57 -0000
@@ -1,12 +1,43 @@
-include ../../../../../config.mk
+#
+#    Makefile for: kernel/io/aio/aio2 testcase.
+#
+#    Copyright (C) 2009, Cisco Systems Inc.
+#
+#    This program is free software; you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation; either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License along
+#    with this program; if not, write to the Free Software Foundation, Inc.,
+#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Garrett Cooper, July 2009
+#
+# Copyright (c) 2009 by Cisco Systems, Inc.
+# All rights reserved
+#
+
+srcdir			?= ../../../../..
+
+ifneq ($(MAKECMDGOALS),clean)
+include $(srcdir)/config.mk
+endif
+
+CFLAGS			+= -Wall -g -O -I$(srcdir)/include -Wall
+LDFLAGS			+= -L$(srcdir)/lib
+LDLIBS			+= -lltp $(AIO_LIBS)
+
 # foo.
-TEST_SRCS:=$(shell find cases/ -name \*.c | sort -n -t/ -k2)
-PROGS:=$(patsubst %.c,%,$(TEST_SRCS))
-HARNESS_SRCS:=main.c
+PROGS			:= $(patsubst %.c,%,$(wildcard cases/*.c))
+HARNESS_SRCS		:= main.c
 # io_queue.c
 
-CFLAGS+=-Wall  -g -O -I../../../../../include -Wall
-LDFLAGS+=-L../../../../../lib -lltp $(AIO_LIBS)
 #-lpthread -lrt
 all: $(PROGS)
 
@@ -16,5 +47,5 @@
 clean:
 	rm -f $(PROGS) *.o runtests.out rofile wofile rwfile
 
-install:
+install: ;
 
