--- /dev/null
+# See README in this directory for more information about this
+# Makefile.
+
+CC=gcc
+CFLAGS=-Wall -Werror -O2
+
+INCLUDE=-I../src
+LIB_INTERASPECT=../src/.libs/libinteraspect.a
+
+all :
+ @echo Use \"make libhello.so\" to compile a plug-in named hello.c.
+ @echo See README in this directory for more information.
+
+clean :
+ -rm *.o lib*.so.1.0.0 lib*.so 2> /dev/null
+
+$(LIB_INTERASPECT) :
+ @echo Cannot find libinteraspect.a.
+ @echo Make sure InterAspect is compiled.
+ @echo You may need to check the README file to see how to pass the
+ @echo location of libinteraspect.a to this Makefile.
+ @false
+
+%.o : %.c
+ gcc $(CFLAGS) $(INCLUDE) -fPIC -c -o $@ $<
+
+lib%.so : %.o $(LIB_INTERASPECT)
+ gcc -shared -Wl,-soname,lib$*.so.1 -o lib$*.so $*.o $(LIB_INTERASPECT)
+
+.PHONY : all clean