blob: 3f987f5cfa8327b55df59e3ae5bc37979dc61cee (
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
36
37
38
|
# written by Alex Norman
# added by Mathieu Bouchard
# because there are several people who want to compile mrpeach/osc without pd-extended
#change these to your liking
prefix = /usr/local/
libdir = $(DESTDIR)/$(prefix)/lib/pd/extra/
docdir = $(DESTDIR)/$(prefix)/lib/pd/doc/5.reference/
INCLUDES += -I/usr/local/include/
CFLAGS += ${INCLUDES} -shared
SUFFIX = pd_linux
INSTALL = install
SRC = packOSC.c \
pipelist.c \
routeOSC.c \
unpackOSC.c
TARGETS = ${SRC:.c=.${SUFFIX}}
build: ${TARGETS}
configure:
#build the libraries
%.${SUFFIX}: %.c
${CC} ${CFLAGS} -o $*.${SUFFIX} $<
#install the libraries and documentation
install: ${TARGETS}
${INSTALL} -t ${libdir} ${TARGETS}
${INSTALL} -t ${docdir} *.pd
clean:
rm -f ${TARGETS}
|