blob: f8050aef6f9d02ccf018842aea601b547c59d82a (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
#make file for motex Pd externals - Iain Mott
current:
echo make pd_linux
# ----------------------- LINUX i386 -----------------------
pd_linux: pan~.pd_linux pansig~.pd_linux polygate~.pd_linux shuffle.pd_linux system.pd_linux ln~.pd_linux rec2pol~.pd_linux pol2rec~.pd_linux getenv.pd_linux
.SUFFIXES: .pd_linux
# -------------- postgres ----------------------
#SRCDIR= /usr/src/pgsql/postgresql-7.0.3/src
#EXTERNALDIR= /home/iain/puredata/summon2/externals/
TARGDIR= ./
#include Makefile.global #needed for postgresql stuff
CFLAGS+= -I$(LIBPQDIR)
LDFLAGS+= -L$(LIBPQDIR) -lpq
#-----------------------------------------------
EXSRCDIR= .
LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
-Wall -W -Wshadow -Wstrict-prototypes -Werror \
-Wno-unused -Wno-parentheses -Wno-switch
# LINUXINCLUDE = -I/home/iain/puredata/pd029/src
LINUXINCLUDE = -I/home/iain/puredata/pd032/src
#LINUXINCLUDE+= -I/usr/include/g++-2
#-------------
#LINUXCFLAG+=CFLAGS
#LINUXINCLUDE+= -I/usr/local/pgsql/include
#--------------
.c.pd_linux:
cc $(LINUXCFLAGS) $(LINUXINCLUDE) -o $(EXSRCDIR)$*.o -c $*.c
ld -export_dynamic -shared -o $(TARGDIR)$*.pd_linux $(EXSRCDIR)$*.o -lc -lm $(LDFLAGS)
strip --strip-unneeded $(TARGDIR)$*.pd_linux
rm $(EXSRCDIR)$*.o
# cp $(TARGDIR)$*.pd_linux $(EXTERNALDIR)
#clean:
# rm -f foo1.pd_linux burstan.pd_linux burstan~.pd_linux
|