-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
45 lines (41 loc) · 991 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
36
37
38
39
40
41
42
43
44
45
OBJECTS= \
threadpool.o \
queue.o \
buffer.o \
ffmpeg.o \
bgpoint.o \
debug.o \
driver.o \
effect.o \
player.o \
fir.o \
tapdistortion.o \
componentmanager.o \
component.o \
eq.o \
shibatch/equ.o \
shibatch/ooura_fft.o \
util/mutil.o \
util/sharedmem.o \
alsa.o \
pulse.o \
notify.o \
notifier_impl.o \
vumeter.o \
jbufferout.o \
common.o
PY_OBJECTS= \
py_exposer.o
CC=gcc
CXX=g++
INCLUDE= -I/usr/include/python3.9 -I/usr/include/x86_64-linux-gnu/python3.9 -I/usr/include/ffmpeg
CFLAGS= -g -O2 -fPIC -DUSE_OOURA $(INCLUDE) -DDEBUG
CXXFLAGS= -g -O2 -fPIC -std=c++11 -DUSE_OOURA $(INCLUDE) -DDEBUG
LDFLAGS= -shared -lavformat -lavcodec -lavutil -lao -lasound -lboost_python39 -lboost_numpy39 -lm -lpthread -lpulse-simple
LIBNAME_PY = vrok.so
$(LIBNAME_PY): $(OBJECTS) $(PY_OBJECTS)
$(CC) $(OBJECTS) $(PY_OBJECTS) -o $@ $(LDFLAGS)
all: $(EXECUTABLE)
clean:
rm *.o
rm vrok.so