-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
35 lines (24 loc) · 867 Bytes
/
Makefile
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
33
34
35
CXXFLAGS+=-O3 -ffast-math -Wall -Winline -fPIC -DPIC `pkg-config lv2core lv2-plugin fftw3f --cflags --libs`
LDFLAGS +=-shared `pkg-config lv2core lv2-plugin fftw3f --libs`
BUNDLE = kn0ck0ut.lv2
INSTALL_DIR = $(DESTDIR)/usr/lib/lv2
all: $(BUNDLE)
$(BUNDLE): manifest.ttl kn0ck0ut.ttl libkn0ck0ut.so
rm -rf $(BUNDLE)
mkdir $(BUNDLE)
cp manifest.ttl kn0ck0ut.ttl libkn0ck0ut.so $(BUNDLE)
kn0ck0ut6.o: kn0ck0ut6.cpp kn0ck0ut6.hpp kn0ck0ut.peg
$(CXX) -c $(CXXFLAGS) kn0ck0ut6.cpp -o kn0ck0ut6.o
kn0ck0ut.peg: kn0ck0ut.ttl
lv2peg kn0ck0ut.ttl kn0ck0ut.peg
install: $(BUNDLE)
mkdir -p $(INSTALL_DIR)
rm -rf $(INSTALL_DIR)/$(BUNDLE)
cp -R $(BUNDLE) $(INSTALL_DIR)
uninstall:
rm -rf $(INSTALL_DIR)/$(BUNDLE)
libkn0ck0ut.so: kn0ck0ut6.o
$(CXX) kn0ck0ut6.o $(LDFLAGS) -o libkn0ck0ut.so
clean:
rm -rf $(BUNDLE) *.so *.o *.peg
.phony: clean all install