blob: 340660a37db11ae23f70085e6304b74b2cb6e3f2 (
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
|
# ----------Pd-Sdif makefile, using the makefile--------------
# ---------from example Pd externals--------------------------
# *** Make sure the pd header files and sdif library can
# *** be found by including the right directory
# - this external will probably work on windows if you can
# get the SDIF IRCAM library installed, but I couldn't
# use the pd/doc/6.extern/makefile and link with -lsdif
current:
echo make pd_linux
clean: ; rm -f *.pd_linux *.o
# ----------------------- LINUX i386 -----------------------
pd_linux: sdiflists.pd_linux
.SUFFIXES: .pd_linux
LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
-Wall -W -Wshadow -Wstrict-prototypes -Werror \
-Wno-unused -Wno-parentheses -Wno-switch
LINUXINCLUDE = -I /usr/local/include
.c.pd_linux:
cc $(LINUXCFLAGS) $(LINUXINCLUDE) -o $*.o -c $*.c
ld -lsdif --export-dynamic -shared -o $*.pd_linux $*.o -lc -lm
strip --strip-unneeded $*.pd_linux
rm $*.o
# ----------------------- Mac OSX -----------------------
pd_darwin: sdiflists.pd_darwin
.SUFFIXES: .pd_darwin
DARWINCFLAGS = -DPD -O2 -Wall -W -Wshadow -Wstrict-prototypes \
-Wno-unused -Wno-parentheses -Wno-switch
DARWIN_INCLUDE = -I /usr/local/include
.c.pd_darwin:
cc $(DARWINCFLAGS) $(DARWIN_INCLUDE) -o $*.o -c $*.c
cc -bundle -undefined suppress -lsdif -flat_namespace -o $*.pd_darwin $*.o
rm -f $*.o
|