blob: 82cb05112e25a388e8a7565a2bcdfd553e5d14cc (
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
35
|
PD_SRC=../../../pd/src
FFMPEG_HEADERS=-I/usr/include/ffmpeg
NAME=videogrid
CSYM=videogrid
current: pd_linux
# ----------------------- LINUX -----------------------
pd_linux: $(NAME).pd_linux
.SUFFIXES: .pd_linux
LINUXCFLAGS = -fPIC -DPD -DUNIX -DICECAST -O2 -funroll-loops -fomit-frame-pointer \
-Wall -W -Wno-shadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
LINUXINCLUDE = -I$(PD_SRC) -I/usr/include/
.cc.pd_linux:
g++ $(FFMPEG_HEADERS) -I$(PD_SRC) -fPIC -c -O -o videogrid.o videogrid.cc
# ./tk2c.bash < $*.tk > $*.tk2c
g++ $(FFMPEG_HEADERS) -export_dynamic -shared -o videogrid.pd_linux videogrid.o -lavformat -lavcodec -lavutil -lquicktime
rm -f $*.o
# ----------------------------------------------------------
install:
cp *-help.pd ../../../doc/5.reference
clean:
rm -f *.o *.pd_* so_locations
|