]> git.elephly.net Git - software/lv2-mdametapiano.git/blob - src/Makefile
update license to GPLv3+
[software/lv2-mdametapiano.git] / src / Makefile
1 TYPE = mdaPiano
2 ifeq ($(TYPE),mdaPiano)
3 BUILD_TYPE = PIANO
4 else
5 BUILD_TYPE = EPIANO
6 endif
7
8 BUNDLE = lv2-$(TYPE).lv2
9 INSTALL_DIR = /usr/local/lib/lv2
10
11 SOURCES = *.cpp
12 FLAGS = -fPIC -DPIC -O $(WARNINGS) -D$(BUILD_TYPE)
13 WARNINGS = -g -Wall -pedantic
14
15 $(BUNDLE): $(TYPE)/manifest.ttl $(TYPE)/$(TYPE).ttl $(TYPE).so $(TYPE)/presets $(TYPE)/data/*.raw
16 rm -rf $(BUNDLE)
17 mkdir $(BUNDLE)
18 cp -r $^ $(BUNDLE)
19
20 $(TYPE).so: $(SOURCES) ports.peg
21 $(CXX) $(FLAGS) -shared $(SOURCES) `pkg-config --cflags --libs lvtk-plugin-1` -o $@
22
23 ports.peg: $(TYPE)/$(TYPE).ttl
24 ttl2c $^ ports.peg
25
26 install: $(BUNDLE)
27 mkdir -p $(INSTALL_DIR)
28 rm -rf $(INSTALL_DIR)/$(BUNDLE)
29 cp -R $(BUNDLE) $(INSTALL_DIR)
30
31 clean:
32 rm -rf $(BUNDLE) $(TYPE).so ports.peg