aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2017-12-01 00:24:32 +0000
committers-ol <s-ol@users.noreply.github.com>2017-12-01 00:24:32 +0000
commit617af54c62f31a1238729e25f18cfc455944d005 (patch)
treef7374dad0001dfe5ed0dd53e696045c79b96f0a4 /Makefile
downloadvcvmods-617af54c62f31a1238729e25f18cfc455944d005.tar.gz
vcvmods-617af54c62f31a1238729e25f18cfc455944d005.zip
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e93e47b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,30 @@
+
+# FLAGS will be passed to both the C and C++ compiler
+FLAGS +=
+CFLAGS +=
+CXXFLAGS +=
+
+# Careful about linking to libraries, since you can't assume much about the user's environment and library search path.
+# Static libraries are fine.
+LDFLAGS +=
+
+# Add .cpp and .c files to the build
+SOURCES = $(wildcard src/*.cpp)
+
+
+# Must include the VCV plugin Makefile framework
+include ../../plugin.mk
+
+
+# Convenience target for including files in the distributable release
+DIST_NAME = Template
+.PHONY: dist
+dist: all
+ifndef VERSION
+ $(error VERSION must be defined when making distributables)
+endif
+ mkdir -p dist/$(DIST_NAME)
+ cp LICENSE* dist/$(DIST_NAME)/
+ cp $(TARGET) dist/$(DIST_NAME)/
+ cp -R res dist/$(DIST_NAME)/
+ cd dist && zip -5 -r $(DIST_NAME)-$(VERSION)-$(ARCH).zip $(DIST_NAME)