blob: 2d30c935ec3b6ceb916492087cdd458e90a974d2 (
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
33
34
|
NAME=stk
current: pd_linux
# TARGETS += stk
PDDIR = /usr/local/lib/pd
INSTALLPATH = $(PDDIR)/extra
VERSION = \"0.16\"
# ----------------------- Linux -----------------------
pd_linux: $(NAME).pd_linux
.SUFFIXES: .pd_linux
LINUXCFLAGS = -ggdb -DPD -O3 -fPIC -funroll-loops -fomit-frame-pointer \
-W -Wshadow -Wno-unused -Wno-parentheses -Wno-switch
LINUXINCLUDE = -I/usr/include -I/usr/local/include/stk
.cpp.pd_linux:
g++ $(LINUXCFLAGS) $(LINUXINCLUDE) -c $(NAME).cpp
g++ -Wl,--export-dynamic -shared -o $(NAME).pd_linux $(NAME).o -lc -lstk
strip --strip-unneeded $(NAME).pd_linux
rm -f *.o
# -------------------------------------------------------
clean:
rm *.pd_linux
install:
cp $(NAME).pd_* $(INSTALLPATH)
install -d $(PDDIR)/doc/5.reference/$(NAME)-help.pd
|