blob: a891ba279c753900b52e60e18b9e8b91c139a552 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#
# Copyright (C) 2004 Hans-Christoph Steiner
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
EXT=o
LIBS = -lm -lc
LIBOSC = ../libOSC/@LIBOSC@
CFLAGS = @CFLAGS@
INCLUDES = @INCLUDES@
LDFLAGS = @LDFLAGS@
prefix=$(DESTDIR)/usr
SOURCES = OSC-pattern-match.c OSC.c dumpOSC.c htmsocket.c OSCroute.c sendOSC.c OSC-system-dependent.c
TARGETS = $(SOURCES:.c=.o)
EXTS=sendOSC.@pd_suffix@ dumpOSC.@pd_suffix@ OSCroute.@pd_suffix@ OSC.@pd_suffix@
# ----------------------- autoconf -----------------------
all: $(EXTS)
dumpOSC.@pd_suffix@: dumpOSC.o
cc $(LDFLAGS) -o dumpOSC.@pd_suffix@ $? -lc -lm
sendOSC.@pd_suffix@: sendOSC.o htmsocket.o OSC-system-dependent.o
cc $(LDFLAGS) -o sendOSC.@pd_suffix@ $? -lc -lm $(LIBOSC)
OSCroute.@pd_suffix@: OSCroute.o OSC-pattern-match.o OSC-system-dependent.o
cc $(LDFLAGS) -o OSCroute.@pd_suffix@ $? -lc -lm
OSC.@pd_suffix@: OSC.o sendOSC.o dumpOSC.o OSCroute.o htmsocket.o OSC-pattern-match.o OSC-system-dependent.o
cc $(LDFLAGS) -o OSC.@pd_suffix@ $? -lc -lm $(LIBOSC)
$(TARGETS): %.o : %.c
cc $(CFLAGS) $(INCLUDES) -c -o $*.o $*.c
# ----------------------------------------------------------
install-doc:
@test -d $(prefix)/lib/pd/doc/5.reference || mkdir -p $(prefix)/lib/pd/doc/5.reference
cp -r ../doc/* $(prefix)/lib/pd/doc/5.reference/
install: install-doc
@test -d $(prefix)/lib/pd/extra || mkdir -p $(prefix)/lib/pd/extra
install -m644 *.@pd_suffix@ $(prefix)/lib/pd/extra
clean:
rm -rf *.$(EXT) *.@pd_suffix@
|