summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..09d18cd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+BUNDLE = super_saw.lv2
+INSTALL_DIR = ./build
+
+
+$(BUNDLE): manifest.ttl super_saw.ttl super_saw.so
+ rm -rf $(BUNDLE)
+ mkdir $(BUNDLE)
+ cp $^ $(BUNDLE)
+
+super_saw.so: super_saw.cpp super_saw.peg
+ g++ -shared -fPIC -DPIC super_saw.cpp `pkg-config --cflags --libs lv2-plugin` -o super_saw.so
+
+super_saw.peg: super_saw.ttl
+ lv2peg super_saw.ttl super_saw.peg
+
+install: $(BUNDLE)
+ mkdir -p $(INSTALL_DIR)
+ rm -rf $(INSTALL_DIR)/$(BUNDLE)
+ cp -R $(BUNDLE) $(INSTALL_DIR)
+
+clean:
+ rm -rf $(BUNDLE) super_saw.so super_saw.peg
+