summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 09d18cdcfcfbb0c37f582c3fa4aac093788aea49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
BUNDLE = super_saw.lv2
INSTALL_DIR = ./build


$(BUNDLE): manifest.ttl super_saw.ttl super_saw.so
	rm -rf $(BUNDLE)
	mkdir $(BUNDLE)
	cp $^ $(BUNDLE)

super_saw.so: super_saw.cpp super_saw.peg
	g++ -shared -fPIC -DPIC super_saw.cpp `pkg-config --cflags --libs lv2-plugin` -o super_saw.so

super_saw.peg: super_saw.ttl
	lv2peg super_saw.ttl super_saw.peg

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

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