From 194676e190b827c6b12318213261d4e47ec7e6aa Mon Sep 17 00:00:00 2001 From: Vee9ahd1 <> Date: Tue, 11 May 2021 15:29:40 -0400 Subject: initial commit --- Makefile.sccompile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Makefile.sccompile (limited to 'Makefile.sccompile') diff --git a/Makefile.sccompile b/Makefile.sccompile new file mode 100644 index 0000000..9357afb --- /dev/null +++ b/Makefile.sccompile @@ -0,0 +1,30 @@ +BUILD_DIR ?= ./build + +CXXFLAGS := $(CXXFLAGS) +LFLAGS := -fPIC -shared $(LFLAGS) + +scbuilddir := $(BUILD_DIR)/Supercollider +extdir := $(scbuilddir)/Extensions + +dspsrc := $(wildcard *.dsp) +scfiles := $(addprefix $(extdir)/, $(dspsrc:.dsp=.sc)) +sofiles := $(addprefix $(extdir)/, $(dspsrc:.dsp=.so)) + +archfile := /usr/share/faust/supercollider.cpp +scincludes := -I/usr/include/SuperCollider/plugin_interface -I/usr/include/SuperCollider/common + +all: $(sofiles) $(scfiles) + +%.cpp: %.dsp + faust -a $(archfile) $< -o $@ + +$(extdir)/%.so: %.cpp + mkdir -p $(extdir) + $(CXX) $(CXXFLAGS) $(scincludes) $(OPTFLAGS) $(LFLAGS) $< -o $@ + +$(extdir)/%.sc: %.dsp.xml + mkdir -p $(extdir) + faust2sc --prefix="" $< --output=$@ + +%.dsp.xml: %.dsp + faust --xml -o /dev/null $< -- cgit v1.2.1