summaryrefslogtreecommitdiff
path: root/src/Makefile
blob: ece96d5949fca4809e0b6c37643ee891fa0184b9 (about) (plain)
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
BUNDLE = lv2-mdaPiano.lv2
INSTALL_DIR = /usr/local/lib/lv2

SOURCES = *.cpp
FLAGS = -fPIC -DPIC -O $(WARNINGS)
WARNINGS = #-g -Wall -pedantic

$(BUNDLE): manifest.ttl mdaPiano.ttl mdaPiano.so presets data/*.raw
	rm -rf $(BUNDLE)
	mkdir $(BUNDLE)
	cp -r $^ $(BUNDLE)

mdaPiano.so: $(SOURCES) mdaPiano.peg
	$(CXX) $(FLAGS) -shared $(SOURCES) `pkg-config --cflags --libs lvtk-plugin-1` -o $@

mdaPiano.peg: mdaPiano.ttl
	ttl2c $^ mdaPiano.peg

install: $(BUNDLE)
	mkdir -p $(INSTALL_DIR)
	rm -rf $(INSTALL_DIR)/$(BUNDLE)
	cp -R $(BUNDLE) $(INSTALL_DIR)

clean:
	rm -rf $(BUNDLE) mdaPiano.so mdaPiano.peg