aboutsummaryrefslogtreecommitdiff
path: root/plugins/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/makefile')
-rw-r--r--plugins/makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/makefile b/plugins/makefile
new file mode 100644
index 0000000..6b413db
--- /dev/null
+++ b/plugins/makefile
@@ -0,0 +1,13 @@
+.PHONY: all clean
+PLUGINS = backend_file.so
+
+CFLAGS += -fPIC -I../
+LDFLAGS += -shared
+
+%.so :: %.c %.h
+ $(CC) $(CFLAGS) $(LDLIBS) $< -o $@ $(LDFLAGS)
+
+all: $(PLUGINS)
+
+clean:
+ $(RM) $(PLUGINS)