-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
30 lines (20 loc) · 752 Bytes
/
makefile
File metadata and controls
30 lines (20 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.PHONY: all install clean
VERSION = v2
PREFIX ?= /usr/local
INSTALLDIR ?= $(PREFIX)/lib/lv2
all: svf-$(VERSION).so manifest.ttl svf.ttl
svf.cc: svf.cc.in
cat svf.cc.in | sed -e 's/VERSION/$(VERSION)/g' > svf.cc
svf.ttl: svf.ttl.in
cat svf.ttl.in | sed -e 's/VERSION/$(VERSION)/g' > svf.ttl
manifest.ttl: manifest.ttl.in
cat manifest.ttl.in | sed -e 's/VERSION/$(VERSION)/g' > manifest.ttl
svf-$(VERSION).so: common.cc svf.cc submodules
g++ -O3 -ffast-math -Wall -Wextra -o svf-$(VERSION).so -shared svf.cc
submodules:
make -C state-variable-filter
install: all
install -d $(INSTALLDIR)/svf-$(VERSION)
cp -f manifest.ttl svf.ttl svf-$(VERSION).so $(INSTALLDIR)/svf-$(VERSION)
clean:
rm -f manifest.ttl svf.ttl svf-$(VERSION).so svf.cc