]> Pileus Git - aweather/blobdiff - src/examples/plugin/mkfile
Removing ridge plugin and moving exmaple plugin
[aweather] / src / examples / plugin / mkfile
diff --git a/src/examples/plugin/mkfile b/src/examples/plugin/mkfile
new file mode 100644 (file)
index 0000000..2c63d6d
--- /dev/null
@@ -0,0 +1,14 @@
+CFLAGS=`{pkg-config --cflags libgis}
+LDFLAGS=`{pkg-config --libs libgis}
+LIB=teapot.so
+default:V: $LIB
+%.so: %.o
+       gcc $CFLAGS -fPIC -shared -o $target $prereq $LDFLAGS
+%.o: %.c
+       gcc $CFLAGS -fPIC -c -o $target $prereq
+clean:V:
+       rm -f *.o *.so
+install:V:
+       cp $LIB /usr/lib/gis/
+uninstall:V:
+       rm /usr/lib/gis/$LIB