remove unneeded headers
[software/lv2-mdametapiano.git] / src / Makefile
1 BUNDLE = lv2-mdaPiano.lv2
2 INSTALL_DIR = /usr/local/lib/lv2
3
4 SOURCES = *.cpp
5 FLAGS = -fPIC -DPIC -O $(WARNINGS)
6 WARNINGS = #-g -Wall -pedantic
7
8 $(BUNDLE): manifest.ttl mdaPiano.ttl mdaPiano.so presets data/*.raw
9 rm -rf $(BUNDLE)
10 mkdir $(BUNDLE)
11 cp -r $^ $(BUNDLE)
12
13 mdaPiano.so: $(SOURCES) mdaPiano.peg
14 $(CXX) $(FLAGS) -shared $(SOURCES) `pkg-config --cflags --libs lv2-plugin` -o $@
15
16 mdaPiano.peg: mdaPiano.ttl
17 lv2peg $^ mdaPiano.peg
18
19 install: $(BUNDLE)
20 mkdir -p $(INSTALL_DIR)
21 rm -rf $(INSTALL_DIR)/$(BUNDLE)
22 cp -R $(BUNDLE) $(INSTALL_DIR)
23
24 clean:
25 rm -rf $(BUNDLE) mdaPiano.so mdaPiano.peg