--- a/LIME-examples/simple-test/Makefile
+++ b/LIME-examples/simple-test/Makefile
@@ -1,4 +1,6 @@
 ##################################################################
+#Copyright 2008 Pjotr Kourzanov
+#
 #This file is part of LIME.
 #
 #LIME is free software: you can redistribute it and/or modify
@@ -13,9 +15,19 @@
 #You should have received a copy of the GNU General Public License
 #along with LIME.  If not, see <http://www.gnu.org/licenses/>.
 ##################################################################
+d?=Pthread
+
 r=../..
-components = source.c sink.c
-headers = source_state.h
+components = source.c sink.c copy.c delay.c
+headers = state.h
 graphs = test.graph
 
 include ../Makerules
+
+all:: test-full.dot
+
+all:: gen
+	r=$^ CFLAGS=-I$^ make -f $^/Makefile $@
+
+clean::
+	rm -f *.[ao]