Skip to content

Instantly share code, notes, and snippets.

@evilactually
Last active June 1, 2020 03:37

Revisions

  1. evilactually revised this gist Jun 1, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion addmakefile.mk
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@ CXX ?= g++
    CLSNAME = am_modulator
    URI_PREFIX = https://evilactually.github.com
    build:manifest.ttl $(CLSNAME).ttl $(CLSNAME).so
    $(CLSNAME).cpp:am-modulator.dsp
    $(CLSNAME).cpp:$(CLSNAME).dsp
    faust -i -a /usr/share/faust/lv2.cpp -cn $(CLSNAME) $< -o $@
    $(CLSNAME).so:$(CLSNAME).cpp
    $(CXX) -shared -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' -fPIC '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $@
  2. evilactually revised this gist Jun 1, 2020. 1 changed file with 10 additions and 10 deletions.
    20 changes: 10 additions & 10 deletions addmakefile.mk
    Original file line number Diff line number Diff line change
    @@ -4,19 +4,19 @@ CLSNAME = am_modulator
    URI_PREFIX = https://evilactually.github.com
    build:manifest.ttl $(CLSNAME).ttl $(CLSNAME).so
    $(CLSNAME).cpp:am-modulator.dsp
    faust -i -a /usr/share/faust/lv2.cpp -cn $(CLSNAME) $< -o $@
    faust -i -a /usr/share/faust/lv2.cpp -cn $(CLSNAME) $< -o $@
    $(CLSNAME).so:$(CLSNAME).cpp
    $(CXX) -shared -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' -fPIC '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $@
    $(CXX) -shared -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' -fPIC '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $@
    manifest.ttl:manifest.ttl.in
    sed -e"s?@name@?$(CLSNAME)?g" -e"s?@uri@?$(URI_PREFIX)/$(CLSNAME)?g" -e"s?@dllext@?.so?g" > "manifest.ttl" < manifest.ttl.in
    sed -e"s?@name@?$(CLSNAME)?g" -e"s?@uri@?$(URI_PREFIX)/$(CLSNAME)?g" -e"s?@dllext@?.so?g" > "manifest.ttl" < manifest.ttl.in
    $(CLSNAME).ttl:$(CLSNAME).cpp
    g++ -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $(CLSNAME)
    ./$(CLSNAME) > $(CLSNAME).ttl
    g++ -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $(CLSNAME)
    ./$(CLSNAME) > $(CLSNAME).ttl
    clean:
    rm *.cpp -f
    rm *.so -f
    rm *.ttl -f
    rm *.cpp -f
    rm *.so -f
    rm *.ttl -f
    install: build
    install -d $(DESTDIR)$(PREFIX)/usr/local/lib/lv2/$(CLSNAME).lv2
    install -m 644 *.so *.ttl $(DESTDIR)$(PREFIX)/usr/local/lib/lv2/$(CLSNAME).lv2/
    install -d $(DESTDIR)$(PREFIX)/usr/local/lib/lv2/$(CLSNAME).lv2
    install -m 644 *.so *.ttl $(DESTDIR)$(PREFIX)/usr/local/lib/lv2/$(CLSNAME).lv2/
    EOF
  3. evilactually revised this gist Jun 1, 2020. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions addmakefile.mk
    Original file line number Diff line number Diff line change
    @@ -4,19 +4,19 @@ CLSNAME = am_modulator
    URI_PREFIX = https://evilactually.github.com
    build:manifest.ttl $(CLSNAME).ttl $(CLSNAME).so
    $(CLSNAME).cpp:am-modulator.dsp
    faust -i -a /usr/share/faust/lv2.cpp -cn $(CLSNAME) $< -o $@
    faust -i -a /usr/share/faust/lv2.cpp -cn $(CLSNAME) $< -o $@
    $(CLSNAME).so:$(CLSNAME).cpp
    $(CXX) -shared -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' -fPIC '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $@
    $(CXX) -shared -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' -fPIC '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $@
    manifest.ttl:manifest.ttl.in
    sed -e"s?@name@?$(CLSNAME)?g" -e"s?@uri@?$(URI_PREFIX)/$(CLSNAME)?g" -e"s?@dllext@?.so?g" > "manifest.ttl" < manifest.ttl.in
    sed -e"s?@name@?$(CLSNAME)?g" -e"s?@uri@?$(URI_PREFIX)/$(CLSNAME)?g" -e"s?@dllext@?.so?g" > "manifest.ttl" < manifest.ttl.in
    $(CLSNAME).ttl:$(CLSNAME).cpp
    g++ -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $(CLSNAME)
    ./$(CLSNAME) > $(CLSNAME).ttl
    g++ -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $(CLSNAME)
    ./$(CLSNAME) > $(CLSNAME).ttl
    clean:
    rm *.cpp -f
    rm *.so -f
    rm *.ttl -f
    rm *.so -f
    rm *.ttl -f
    install: build
    install -d $(DESTDIR)$(PREFIX)/usr/local/lib/lv2/$(CLSNAME).lv2
    install -m 644 *.so *.ttl $(DESTDIR)$(PREFIX)/usr/local/lib/lv2/$(CLSNAME).lv2/
    install -d $(DESTDIR)$(PREFIX)/usr/local/lib/lv2/$(CLSNAME).lv2
    install -m 644 *.so *.ttl $(DESTDIR)$(PREFIX)/usr/local/lib/lv2/$(CLSNAME).lv2/
    EOF
  4. evilactually revised this gist Jun 1, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion addmakefile.mk
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ $(CLSNAME).ttl:$(CLSNAME).cpp
    g++ -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $(CLSNAME)
    ./$(CLSNAME) > $(CLSNAME).ttl
    clean:
    rm *.cpp -f
    rm *.cpp -f
    rm *.so -f
    rm *.ttl -f
    install: build
  5. evilactually renamed this gist Jun 1, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. evilactually created this gist Jun 1, 2020.
    22 changes: 22 additions & 0 deletions addmakefile.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    cat <<'EOF' > ./Makefile
    CXX ?= g++
    CLSNAME = am_modulator
    URI_PREFIX = https://evilactually.github.com
    build:manifest.ttl $(CLSNAME).ttl $(CLSNAME).so
    $(CLSNAME).cpp:am-modulator.dsp
    faust -i -a /usr/share/faust/lv2.cpp -cn $(CLSNAME) $< -o $@
    $(CLSNAME).so:$(CLSNAME).cpp
    $(CXX) -shared -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' -fPIC '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $@
    manifest.ttl:manifest.ttl.in
    sed -e"s?@name@?$(CLSNAME)?g" -e"s?@uri@?$(URI_PREFIX)/$(CLSNAME)?g" -e"s?@dllext@?.so?g" > "manifest.ttl" < manifest.ttl.in
    $(CLSNAME).ttl:$(CLSNAME).cpp
    g++ -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $(CLSNAME)
    ./$(CLSNAME) > $(CLSNAME).ttl
    clean:
    rm *.cpp -f
    rm *.so -f
    rm *.ttl -f
    install: build
    install -d $(DESTDIR)$(PREFIX)/usr/local/lib/lv2/$(CLSNAME).lv2
    install -m 644 *.so *.ttl $(DESTDIR)$(PREFIX)/usr/local/lib/lv2/$(CLSNAME).lv2/
    EOF