blob: 12401f648886c8b0433e57b7a4e89259ffba31f1 (
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
|
CC=gcc
pd_linux: input_noticer.pd_linux
clean: ; rm -f *.pd_linux *.o *~
# installs all compiled externals.
# you'll want to change this to match where your externals live
install: ; sudo cp *.pd_linux /usr/lib/pd/extra
# installs the input_noticer
# you'll want to change this to match where your externals live
install_noticer: ; cp input_noticer.pd_linux /usr/lib/pd/extra
# ----------------------- LINUX i386 -----------------------
.SUFFIXES: .pd_linux
LINUXLDFLAGS = `pkg-config --libs glib-2.0 hal dbus-glib-1` -lpthread -lgthread-2.0 -lglib-2.0
# LINUXLDFLAGS = `pkg-config --libs glib-2.0 hal dbus-glib-1 gthread-2.0`
LINUXCFLAGS = -DUNIX -DPD -O2 -funroll-loops -fomit-frame-pointer \
-Wall -W -Wshadow -Wstrict-prototypes -Werror \
-Wno-unused -Wno-parentheses -Wno-switch \
`pkg-config --cflags --libs glib-2.0 hal dbus-glib-1 gthread-2.0`
LINUXINCLUDE = -I/usr/local/lib/pd/include -I/usr/lib/pd/src -I/usr/local/include
.c.pd_linux:
$(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
ld -export_dynamic -shared -o $*.pd_linux $*.o -lc -lm $(LINUXLDFLAGS)
strip --strip-unneeded $*.pd_linux
rm $*.o
|