blob: 173db4f3a3eac74d81aa5136bde9418a22feeddb (
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
26
27
28
29
30
31
32
|
TYPE = mdaPiano
ifeq ($(TYPE),mdaPiano)
BUILD_TYPE = PIANO
else
BUILD_TYPE = EPIANO
endif
BUNDLE = lv2-$(TYPE).lv2
INSTALL_DIR = /usr/local/lib/lv2
SOURCES = *.cpp
FLAGS = -fPIC -DPIC -O $(WARNINGS) -D$(BUILD_TYPE)
WARNINGS = -g -Wall -pedantic
$(BUNDLE): manifest.ttl $(TYPE).ttl $(TYPE).so $(TYPE)/presets $(TYPE)/data/*.raw
rm -rf $(BUNDLE)
mkdir $(BUNDLE)
cp -r $^ $(BUNDLE)
$(TYPE).so: $(SOURCES) ports.peg
$(CXX) $(FLAGS) -shared $(SOURCES) `pkg-config --cflags --libs lvtk-plugin-1` -o $@
ports.peg: $(TYPE).ttl
ttl2c $^ ports.peg
install: $(BUNDLE)
mkdir -p $(INSTALL_DIR)
rm -rf $(INSTALL_DIR)/$(BUNDLE)
cp -R $(BUNDLE) $(INSTALL_DIR)
clean:
rm -rf $(BUNDLE) $(TYPE).so ports.peg
|