blob: f7a60def9a678ad88905ee2410852c1c167443ff (
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
|
EXTERNALS = $(shell ls ../src)
all: $(EXTERNALS:.c=.pd_linux)
.SUFFIXES: .pd_linux
LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
-Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
LINUXINCLUDE = -I.. -I../../../pd/src
%.pd_linux: ../src/%.c
$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c ../src/$*.c
ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm
chmod a-x $*.pd_linux
# strip --strip-unneeded $*.pd_linux
rm -f $*.o
clean:
-rm *.pd_linux *~
install:
install -m644 *.pd_linux $(prefix)/lib/pd/extra
|